/* ==========================================
   Corporate Light Theme Stylesheet
   Inspired by workshopwebsite Design Aesthetics
   ========================================== */

/* Import Outfit and Inter Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --border-color: #ddd;
    --border-input: #ccc;
    
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;
    
    --color-primary: #1976d2;
    --color-primary-hover: #1565c0;
    
    --color-success: #2e7d32;
    --color-success-hover: #1b5e20;
    --bg-success-light: #e8f5e9;
    --border-success-light: #c8e6c9;
    
    --color-danger: #e53935;
    --color-danger-hover: #c62828;
    --bg-danger-light: #ffebee;
    --border-danger-light: #ffcdd2;
    
    --color-info: #0d47a1;
    --bg-info-light: #e3f2fd;
    --border-info-light: #bbdefb;
    
    --font-heading: 'Outfit', Arial, sans-serif;
    --font-body: Arial, sans-serif;
    --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 4px 15px rgba(0, 0, 0, 0.2);
    --radius-standard: 8px;
    --radius-inner: 6px;
    
    --transition-fast: all 0.2s ease-in-out;
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Hide Animated Backdrops */
.grid-overlay,
.spotlight-1,
.spotlight-2 {
    display: none !important;
}

/* Outer Screen Wrappers */
.app-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.app-screen {
    display: none;
    flex-direction: column;
    flex: 1;
    width: 100%;
    animation: fade-in 0.3s ease-out forwards;
}

.app-screen.active {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container Formatting */
.app-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.app-container.compact {
    max-width: 480px;
}

/* Header & Footer Banner Images (styled identical to workshopwebsite) */
.brand-image-wrapper {
    width: 100%;
    background: #ffffff;
    text-align: center;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-image-wrapper.footer-wrapper {
    max-width: 480px;
    margin: 0 auto 2em;
    padding: 1em 0;
    background: #ffffff;
    border-radius: 0 0 var(--radius-standard) var(--radius-standard);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid var(--border-color);
    border-top: none;
}

.brand-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: none;
}

.header-logo {
    max-height: none;
    filter: none;
}

.footer-logo {
    max-height: none;
    filter: none;
    opacity: 1;
}

.brand-image:hover {
    transform: none;
    filter: none;
}

/* Public Lookup Header */
.public-header {
    text-align: center;
    margin: 1.5em 0 1em;
}

.public-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.public-header p {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto;
}

/* Lookup Container Card */
.lookup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 2em;
    box-shadow: var(--shadow-card);
    transition: none;
    text-align: left;
}

.lookup-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-card);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
}

.form-group input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-input);
    border-radius: 4px;
    padding: 0.75em;
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Public Search Button */
.search-btn {
    display: block;
    width: 100%;
    padding: 0.75em;
    margin: 0.5em 0;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
    justify-content: center;
    box-shadow: none;
}

.search-btn:hover {
    background: var(--color-primary-hover);
    transform: none;
    box-shadow: none;
}

/* Search Status Message Box */
.search-message-box {
    display: none;
    padding: 0.75em;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
    border: 1px solid transparent;
    animation: fade-in 0.2s ease;
}

.search-message-box.info {
    background: var(--bg-info-light);
    color: var(--color-info);
    border-color: var(--border-info-light);
}

.search-message-box.success {
    background: var(--bg-success-light);
    color: var(--color-success);
    border-color: var(--border-success-light);
}

.search-message-box.error {
    background: var(--bg-danger-light);
    color: var(--color-danger);
    border-color: var(--border-danger-light);
}

/* Verification Search Results Panel */
.results-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    background: var(--bg-card);
    padding: 2em;
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.results-panel.active {
    display: flex;
}

.results-summary {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0 0 20px 0;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .results-summary {
        flex-direction: column;
        text-align: center;
    }
}

.user-info-card h3 {
    margin: 0 0 5px 0;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-success);
    letter-spacing: normal;
}

.user-info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.user-info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.hours-glow-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-success-light);
    border: 1px solid var(--border-success-light);
    border-radius: var(--radius-standard);
    width: 90px;
    height: 90px;
    box-shadow: none;
    flex-shrink: 0;
    animation: none;
}

.hours-num {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: bold;
    color: var(--color-success);
    line-height: 1;
}

.hours-lbl {
    font-size: 0.65em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-success);
    margin-top: 2px;
    text-align: center;
}

.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 10px;
}

.sessions-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.badge {
    background: var(--bg-info-light);
    border: 1px solid var(--border-info-light);
    color: var(--color-info);
    font-size: 0.8em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
}

/* 30-Sessions Clean List Format */
.sessions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.session-badge-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-inner);
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-fast);
}

.session-badge-card.attended {
    border-color: var(--border-success-light);
    background: var(--bg-success-light);
    box-shadow: none;
}

.session-badge-card.attended:hover {
    border-color: #a5d6a7;
    box-shadow: none;
    transform: none;
}

.session-badge-card.absent {
    opacity: 0.8;
}

.session-badge-card.absent:hover {
    border-color: #ced4da;
    transform: none;
    opacity: 1;
}

.badge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-idx {
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-muted);
}

.session-badge-card.attended .session-idx {
    color: var(--color-success);
}

.status-pill {
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-pill.present {
    background: var(--color-success);
    color: #ffffff;
    border: none;
    box-shadow: none;
}

.status-pill.absent {
    background: var(--text-muted);
    color: #ffffff;
    border: none;
}

.session-badge-card h4 {
    margin: 0;
    font-size: 0.95em;
    font-weight: bold;
    line-height: 1.4;
    color: var(--text-primary);
}

.session-time-meta {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.session-presenter-meta {
    font-size: 0.75em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 4px;
}

/* Secure Admin Entry Trigger Link Button */
.admin-entry-container {
    text-align: center;
    margin: 20px auto;
}

.btn-admin-trigger {
    background: none;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    backdrop-filter: none;
    transition: var(--transition-fast);
}

.btn-admin-trigger:hover {
    color: var(--color-primary-hover);
    border-color: transparent;
    background: none;
    box-shadow: none;
    transform: none;
}


/* ==========================================
   SECURE ADMIN SYSTEM LIGHT LAYOUTS
   ========================================== */

.admin-header-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .admin-header-bar {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.25em;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.admin-badge {
    background: var(--bg-info-light);
    border: 1px solid var(--border-info-light);
    color: var(--color-info);
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .admin-nav-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.admin-nav-actions .connection-badge {
    margin-top: 0;
    padding: 6px 16px;
    font-size: 0.75em;
}

/* Connection Badges */
.connection-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    font-weight: bold;
    border: 1px solid transparent;
}

.connection-badge.offline {
    background: var(--bg-danger-light);
    color: var(--color-danger);
    border-color: var(--border-danger-light);
}

.connection-badge.online {
    background: var(--bg-success-light);
    color: var(--color-success);
    border-color: var(--border-success-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.btn-logout {
    background: var(--color-danger);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: var(--color-danger-hover);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Admin Tabs Layout */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-top: 15px;
    gap: 10px;
}

.admin-tab-btn {
    font-family: var(--font-heading);
    font-size: 1em;
    font-weight: bold;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover {
    color: var(--text-primary);
}

.admin-tab-btn.active {
    color: var(--color-primary);
}

.admin-tab-btn::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.admin-tab-btn.active::after {
    transform: scaleX(1);
    box-shadow: none;
}

/* Tab Display Content */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fade-in 0.2s ease;
}

.tab-content.active {
    display: flex;
}


/* ==========================================
   SYNC DASHBOARD TAB (LIGHT THEME)
   ========================================== */

.control-hub {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: none;
}

.control-hub:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-card);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group h3 {
    margin: 0;
    font-size: 0.85em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: bold;
}

.sync-filters {
    display: flex;
    gap: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    color: var(--text-primary);
    transition: var(--transition-fast);
    user-select: none;
}

.filter-label:hover {
    background: #e9ecef;
    border-color: #ced4da;
    color: var(--text-primary);
}

.filter-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: var(--transition-fast);
}

.filter-label input[type="checkbox"]::before {
    content: "";
    width: 8px;
    height: 8px;
    transform: scale(0);
    transition: 100ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--color-primary);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform-origin: bottom left;
}

.filter-label input[type="checkbox"]:checked {
    border-color: var(--color-primary);
    background: #ffffff;
}

.filter-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Primary Action Buttons */
.btn-action {
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 0.95em;
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}

.btn-sync {
    background: var(--color-primary);
}

.btn-sync:hover {
    transform: none;
    box-shadow: none;
    background: var(--color-primary-hover);
    filter: none;
}

.btn-sync:active {
    transform: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.panel-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 500px;
    max-height: 600px;
    transition: none;
}

.panel-card:hover {
    border-color: var(--border-color);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header .device-icon {
    font-size: 1.2em;
}

.file-count-badge {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
}

.search-container {
    margin-bottom: 15px;
    position: relative;
}

.search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95em;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.file-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbars styling for high fidelity */
.file-scroll::-webkit-scrollbar,
body::-webkit-scrollbar,
.registrants-scroll::-webkit-scrollbar,
.attendance-pane::-webkit-scrollbar,
.console-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.file-scroll::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.registrants-scroll::-webkit-scrollbar-track,
.attendance-pane::-webkit-scrollbar-track,
.console-box::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}
.file-scroll::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.registrants-scroll::-webkit-scrollbar-thumb,
.attendance-pane::-webkit-scrollbar-thumb,
.console-box::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}
.file-scroll::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.registrants-scroll::-webkit-scrollbar-thumb:hover,
.attendance-pane::-webkit-scrollbar-thumb:hover,
.console-box::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: var(--radius-inner);
    transition: var(--transition-fast);
}

.file-item:hover {
    background: #f1f3f5;
    border-color: #ced4da;
    transform: none;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.file-ext-icon {
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.file-name {
    font-weight: bold;
    font-size: 0.9em;
    color: var(--text-primary);
    word-break: break-all;
    padding-right: 10px;
}

.file-specs {
    font-size: 0.75em;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.file-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-file-sync {
    background: var(--bg-info-light);
    border: 1px solid var(--border-info-light);
    color: var(--color-info);
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 0.8em;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-file-sync:hover {
    background: var(--border-info-light);
    color: var(--color-info);
    border-color: var(--border-info-light);
    box-shadow: none;
    transform: none;
}

.btn-file-sync:active {
    transform: none;
}

/* Diagnostic Logger Console */
.console-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: none;
}

.console-panel:hover {
    border-color: var(--border-color);
}

.console-title {
    font-family: var(--font-heading);
    font-size: 0.95em;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.console-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-inner);
    padding: 15px;
    font-family: 'Fira Code', Consolas, monospace;
    font-size: 0.85em;
    color: var(--text-primary);
    min-height: 150px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.console-line {
    word-break: break-all;
    line-height: 1.4;
}

.console-line .timestamp {
    color: var(--text-muted);
    margin-right: 8px;
}

.console-line.info { color: var(--color-success); }
.console-line.cmd { color: var(--color-primary); }
.console-line.warn { color: #f57c00; }
.console-line.err { color: var(--color-danger); }


/* ==========================================
   PARTICIPANT MANAGER TAB (LIGHT THEME)
   ========================================== */

.manager-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    min-height: 550px;
    margin-top: 10px;
}

@media (max-width: 950px) {
    .manager-layout {
        grid-template-columns: 1fr;
    }
}

.registrants-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.sidebar-count {
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-muted);
}

.registrants-scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.sidebar-info-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 40px;
}

.sidebar-info-msg.error {
    color: var(--color-danger);
}

.registrant-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-inner);
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.registrant-sidebar-item:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: none;
}

.registrant-sidebar-item.active {
    background: var(--bg-info-light);
    border-color: var(--border-info-light);
    box-shadow: none;
}

.reg-sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    padding-right: 10px;
}

.reg-sidebar-name {
    font-weight: bold;
    font-size: 0.9em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reg-sidebar-email {
    font-size: 0.75em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registrant-sidebar-item.active .reg-sidebar-email {
    color: var(--color-info);
}

.reg-sidebar-hours {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.8em;
    background: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.registrant-sidebar-item.active .reg-sidebar-hours {
    background: var(--color-primary);
    border-color: var(--color-primary-hover);
    color: #ffffff;
}

/* Attendance detailed switches pane */
.attendance-pane {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 25px;
    box-shadow: var(--shadow-card);
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pane-empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05em;
    max-width: 350px;
    margin: auto;
    line-height: 1.5;
}

.pane-content {
    display: none;
    width: 100%;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .pane-header {
        flex-direction: column;
        text-align: center;
    }
}

.pane-user-info h2 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.pane-user-info p {
    margin: 0 0 10px 0;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: normal;
}

.detail-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.pane-hours-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-info-light);
    border: 1px solid var(--border-info-light);
    border-radius: var(--radius-standard);
    width: 90px;
    height: 90px;
    box-shadow: none;
    flex-shrink: 0;
}

.pane-hours-card .hours-num {
    font-size: 2em;
    color: var(--color-info);
}

.pane-hours-card .hours-lbl {
    font-size: 0.65em;
    color: var(--color-info);
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.attendance-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-primary);
}

.pane-attended-count {
    font-size: 0.8em;
    font-weight: bold;
    background: #f1f3f5;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

/* 30 session toggles grid */
.toggles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.toggle-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--radius-inner);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.toggle-card:hover {
    background: #e9ecef;
}

.toggle-card.active {
    background: var(--bg-success-light);
    border-color: var(--border-success-light);
}

.toggle-label-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.toggle-sess-idx {
    font-size: 0.72em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-muted);
}

.toggle-card.active .toggle-sess-idx {
    color: var(--color-success);
}

.toggle-card h4 {
    margin: 0;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.toggle-sess-meta {
    font-size: 0.75em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toggle Glow-free Slider Switch (Clean CSS Slider) */
.glow-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

.glow-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.glow-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border: none;
    transition: .2s;
    border-radius: 20px;
}

.glow-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .2s;
    border-radius: 50%;
}

.glow-switch input:checked + .slider {
    background-color: var(--color-success);
    box-shadow: none;
}

.glow-switch input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
    box-shadow: none;
}


/* ==========================================
   DIALOG MODALS (LIGHT THEME)
   ========================================== */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fade-in 0.2s ease;
}

.login-modal.active {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    width: 100%;
    max-width: 400px;
    padding: 25px;
    box-shadow: var(--shadow-modal);
    animation: zoom-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-error-msg {
    color: var(--color-danger);
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-input);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-cancel:hover {
    background: #f1f3f5;
    color: var(--text-primary);
}
