:root {
    --navy: #0a2342;
    --teal: #009ca6;
    --gold: #ffd700;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --text-dark: #1a2a3a;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --danger-red: #dc3545;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar (Copied from landing.css for consistency) */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--white);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.highlight { color: var(--gold); }

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 750;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.navbar a:hover { color: var(--gold); }

/* Lobby Specific Styles */
.lobby-container {
    width: min(100%, 1720px);
    padding: 2rem 1.75rem;
    margin: 0 auto;
}

.lobby-hero {
    background: linear-gradient(135deg, var(--teal) 0%, #006b70 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.lobby-hero h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
}

.proctoring-notice {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.lobby-grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two-thirds for content, one-third for side panel */
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem; /* Spacing between cards in a column */
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Exam Tracker */
.tracker-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--teal);
}

.tab-btn.active {
    color: var(--teal);
    border-bottom: 3px solid var(--teal);
}

.tracker-content {
    max-height: 400px;
    overflow-y: auto;
}

.tracker-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.tracker-item:last-child {
    border-bottom: none;
}

.tracker-item strong {
    color: var(--navy);
}

.tracker-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tracker-item.selected {
    background-color: #e6f2f2; /* Light teal background for selected item */
    border-radius: 5px;
    padding: 0.8rem;
    margin: 0.5rem 0;
}

.tracker-item:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.no-items {
    text-align: center;
    color: #888;
    padding: 2rem;
}

/* PDF Generator */
.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-box.is-dragover,
.upload-box.has-file {
    border-color: var(--teal);
    background: #eef9fa;
    transform: translateY(-2px);
}

.upload-box label {
    display: inline-block;
    margin-bottom: 1rem;
}

.upload-box p {
    margin-top: 0.5rem;
    color: #666;
}

.generated-questions-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f7f7;
    border-radius: 8px;
    border: 1px solid var(--teal);
}

.generated-questions-preview ol {
    margin-left: 1.5rem;
}

.generated-questions-preview li {
    margin-bottom: 0.5rem;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--teal);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    color: var(--success-green);
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

/* System Checks & Face Verification */
.system-checks ul {
    list-style: none;
    padding: 0;
}

.system-checks li {
    display: flex;
    justify-content: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.system-checks li:last-child {
    border-bottom: none;
}

.system-checks span {
    font-weight: bold;
}

.face-verification video {
    width: 100%;
    max-height: 200px;
    background: #000;
    border-radius: 8px;
    margin-top: 1rem;
}

.face-verification #face-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--navy);
}

.face-verification #face-status.verified {
    color: var(--success-green);
}

/* Buttons (Copied from landing.css for consistency) */
.btn-primary, .btn-gold {
    background: var(--teal);
    color: var(--white);
    border: none; padding: 1rem 2rem;
    border-radius: 50px; font-weight: bold; cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-gold { background: var(--gold); color: var(--navy); }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--teal); /* Changed from white to teal for better visibility on white background */
    color: var(--teal);
    padding: 0.8rem 1.5rem; /* Slightly smaller for labels */
    border-radius: 50px; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover, .btn-gold:hover { transform: translateY(-3px); opacity: 0.9; }

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-small:hover {
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Footer (Copied from landing.css for consistency) */
.main-footer {
    background: var(--navy); color: var(--white);
    padding: 2rem; text-align: center; border-top: 5px solid var(--gold);
    margin-top: 2rem;
}
.main-footer a { color: var(--gold); text-decoration: none; }

.main-footer .powered-by {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .lobby-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .lobby-container {
        padding: 1.25rem 0.85rem;
    }

    .lobby-hero,
    .card {
        padding: 1.35rem;
    }
}
