/* ============================================================
   Platform Shared Styles
   Extracted from style.css without selector renames.
   ============================================================ */

html {
    height: 100%;
    font-size: 85%;
}

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #0056b3;
    --primary-color-rgb: 0, 86, 179;
    --danger-color: #c0392b;
    --success-color: #28a745;
    --success-color-rgb: 40, 167, 69;
    --info-color: #17a2b8;
    --info-color-rgb: 23, 162, 184;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --bg-color: #f1f3f4;
    --bg-secondary: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --body-bg: #f7f8fa;
    --panel-bg: #ffffff;
    
    /* Waiting Room specific variables */
    --wr-primary-color: #0066CC;
    --wr-primary-light: #F0F7FF;
    --wr-success-color: #10B981;
    --wr-text-primary: #1F2937;
    --wr-text-secondary: #6B7280;
    --wr-bg-primary: #FFFFFF;
    --wr-bg-secondary: #F9FAFB;
    --wr-border-color: #E5E7EB;
    --border-color: #d1d9e0;
    --board-bg-color: rgba(255, 255, 255, 0.65);
    --board-border-color: rgba(255, 255, 255, 0.8);
    --dot-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.95);
    --avatar-facilitator: #28a745; /* Green - from index.html */
    --avatar-patient: #e91e63;     /* Pink - for patient character */
    --avatar-student-1: #007bff;   /* Blue - from index.html */
    --avatar-student-2: #dc3545;   /* Red - from index.html */
    --avatar-student-3: #fd7e14;   /* Orange - from index.html */
    --avatar-student-4: #6f42c1;   /* Purple - from index.html */
    --avatar-student-5: #9b59b6;   /* Light Purple */
    --avatar-student-6: #6610f2;   /* Indigo */
    --avatar-student-7: #16a085;   /* Teal */
    --avatar-student-8: #d35400;   /* Dark Orange */
    --avatar-student-9: #2c3e50;   /* Navy */
    --avatar-student-10: #8e44ad;  /* Purple variant */
    --avatar-student-11: #c0392b;  /* Dark Red */
    --avatar-student-12: #f1c40f;  /* Yellow */
    --table-color: #eef3f1;
    --icon-color: #5a716a;
    --text-color: #2f3e3a;
    --glow-color: #30d5c8;
    --speech-bubble-bg: #f3f6f5; 
    --speech-bubble-text: #2f3e3a;
}

/* --- User Profile in Header --- */
.app-header {
    padding: 1rem 1.5rem 0.5rem;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: transparent;
    position: relative;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.app-header h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: -0.01em;
}

/* Desktop: show full title, hide mobile title */
.mobile-header-title {
    display: none;
}

.desktop-header-title {
    display: inline;
}

.contact-admin {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

#user-profile {
    display: none; /* Hidden until user logs in */
    align-items: center;
    gap: 8px;
}

#user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

#user-display-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

#user-display-name:hover {
    background-color: rgba(9, 105, 218, 0.1);
    text-decoration: underline;
}

#sign-out-btn {
    background: none;
    border: 1px solid #d1d5da;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}
#sign-out-btn:hover {
    background-color: #f3f4f6;
}


body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    margin: 0;
    color: #333;
    height: 100%; /* Ensure body takes full height of html */
}

#app-container {
    display: flex;
    flex-direction: column;
    height: 100%; /* Changed from 100vh for better compatibility */
}


/* Language Selector */
#language-selection-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#language-selection-container label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}
#language-selector {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
#language-selector:hover {
    border-color: var(--primary-color);
}
#language-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
