/* ==========================================================================
   Lab Management System - Premium Design System (Vanilla CSS)
   Optimized for Mobile PWA & Desktop with Glassmorphism & Neon Dark Mode
   ========================================================================== */

:root {
    /* Color Palette - Deep Navy Dark Mode with Cyber / Neon Accents */
    --bg-main: #080c14;
    --bg-surface: #0f1623;
    --bg-card: rgba(19, 28, 46, 0.6);
    --bg-card-hover: rgba(28, 41, 66, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    
    /* Brand Accents */
    --color-cyan: #00f2fe;
    --color-cyan-glow: rgba(0, 242, 254, 0.3);
    --color-indigo: #4facfe;
    --color-amber: #f6d365;
    --color-amber-glow: rgba(246, 211, 101, 0.3);
    --color-orange: #fda085;
    
    /* Semantic Colors */
    --color-emerald: #10b981;
    --color-emerald-bg: rgba(16, 185, 129, 0.15);
    --color-rose: #f43f5e;
    --color-rose-bg: rgba(244, 63, 94, 0.15);
    --color-purple: #8b5cf6;
    
    /* Typography & Neutral Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Elevations & Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
    --shadow-amber: 0 0 25px rgba(246, 211, 101, 0.25);

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo-text h1, .stat-value {
    font-family: 'Outfit', sans-serif;
}

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

/* Background Ambient Glows */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    animation: floatGlow 20s ease-in-out infinite alternate;
}

.bg-glow-1 {
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--color-purple) 0%, var(--color-amber) 70%, transparent 100%);
    animation-delay: -10s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* Utility Classes */
.hidden { display: none !important; }
.text-cyan { color: var(--color-cyan); }
.text-emerald { color: var(--color-emerald); }
.text-amber { color: var(--color-amber); }
.text-rose { color: var(--color-rose); }
.font-bold { font-weight: 700; }
.required { color: var(--color-rose); margin-left: 2px; }

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.logo-area:hover {
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-indigo));
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Status Badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--color-emerald);
    box-shadow: 0 0 8px var(--color-emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--color-emerald); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Role Switcher */
.user-switcher {
    display: flex;
    background: rgba(15, 22, 35, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 4px;
}

.role-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

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

.role-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Main Layout & Views
   ========================================================================== */
.main-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.view-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: none;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   VIEW 1: LAB SELECTION PORTAL
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(15, 22, 35, 0.7), rgba(19, 28, 46, 0.4));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    max-width: 750px;
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 28px;
    min-width: 160px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Portal Grid & Lab Cards */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 28px;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    backdrop-filter: blur(12px);
}

.lab-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.lab-computer:hover {
    box-shadow: var(--shadow-cyan);
    border-color: rgba(0, 242, 254, 0.4);
}

.lab-workshop:hover {
    box-shadow: var(--shadow-amber);
    border-color: rgba(246, 211, 101, 0.4);
}

.card-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    transition: var(--transition);
}

.lab-computer .card-glow { background: var(--color-cyan); }
.lab-workshop .card-glow { background: var(--color-amber); }

.lab-card:hover .card-glow {
    opacity: 0.35;
    transform: scale(1.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.lab-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-sm);
}

.cyan-gradient { background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2)); border: 1px solid rgba(0, 242, 254, 0.3); }
.amber-gradient { background: linear-gradient(135deg, rgba(246, 211, 101, 0.2), rgba(253, 160, 133, 0.2)); border: 1px solid rgba(246, 211, 101, 0.3); }

.lab-badge {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
}

.badge-cyan { background: rgba(0, 242, 254, 0.15); color: var(--color-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.badge-amber { background: rgba(246, 211, 101, 0.15); color: var(--color-amber); border: 1px solid rgba(246, 211, 101, 0.3); }
.badge-rose { background: rgba(244, 63, 94, 0.15); color: var(--color-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-outline { background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border-color); }

.card-body h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lab-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.lab-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.lab-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lab-features span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.lab-status-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.lab-status-info strong {
    color: #fff;
    font-size: 16px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cyan {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-indigo));
    color: #080c14;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-cyan:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    transform: translateX(3px);
}

.btn-amber {
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    color: #080c14;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.3);
}

.btn-amber:hover {
    box-shadow: 0 6px 20px rgba(246, 211, 101, 0.5);
    transform: translateX(3px);
}

.btn-primary .arrow {
    transition: transform 0.2s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}


/* ==========================================================================
   VIEW 2: LAB DASHBOARD
   ========================================================================== */
.dashboard-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    background: rgba(15, 22, 35, 0.6);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
}

.btn-back {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--border-hover);
}

.current-lab-info {
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.lab-title-icon {
    font-size: 32px;
}

.lab-title-text h2 {
    font-size: 22px;
    font-weight: 700;
}

.lab-title-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 28px;
    align-items: start;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.card-title h3 {
    font-size: 18px;
    font-weight: 700;
}

/* Forms & Dropzone */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.form-select, .form-input {
    width: 100%;
    background: rgba(8, 12, 20, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-select:focus, .form-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

/* Camera Dropzone */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: rgba(8, 12, 20, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dropzone:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.03);
}

.camera-icon-circle {
    width: 56px;
    height: 56px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px auto;
}

.camera-icon-circle.small {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.drop-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drop-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.dropzone-preview {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 220px;
}

.dropzone-preview img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dropzone:hover .preview-overlay {
    opacity: 1;
}

.change-photo-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Compression Notice Banner */
.compression-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 13px;
    animation: fadeIn 0.3s ease;
}

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

.notice-icon {
    font-size: 20px;
}

.notice-text strong {
    color: var(--color-emerald);
    display: block;
    margin-bottom: 2px;
}

.notice-text p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Submit Buttons */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-indigo));
    color: #080c14;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: var(--transition);
}

.btn-submit:hover {
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-end-submit {
    background: linear-gradient(135deg, var(--color-emerald), #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-end-submit:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

/* Admin Alert Panel */
.admin-alert-card {
    border-color: rgba(244, 63, 94, 0.3);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.05), rgba(15, 22, 35, 0.6));
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.alert-warn {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.alert-info {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.alert-icon { font-size: 18px; }

.alert-content { flex: 1; }
.alert-content strong { display: block; margin-bottom: 4px; font-size: 14px; }
.alert-content p { color: var(--text-secondary); line-height: 1.4; }

.btn-xs {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-outline-rose {
    background: transparent;
    border: 1px solid var(--color-rose);
    color: var(--color-rose);
}

.btn-outline-rose:hover {
    background: var(--color-rose);
    color: #fff;
}


/* ==========================================================================
   Sessions List Area
   ========================================================================== */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.tabs-group {
    display: flex;
    gap: 8px;
    background: rgba(8, 12, 20, 0.6);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.tab-count {
    background: rgba(0, 242, 254, 0.2);
    color: var(--color-cyan);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 12px;
}

.search-filter input {
    background: rgba(8, 12, 20, 0.8);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 260px;
    outline: none;
    transition: var(--transition);
}

.search-filter input:focus {
    border-color: var(--color-cyan);
    width: 300px;
}

/* Session Item Cards */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.session-item {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    position: relative;
}

.session-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    background: rgba(15, 22, 35, 0.8);
}

.session-item.active-glow {
    border-left: 4px solid var(--color-emerald);
}

.session-item.completed-glow {
    border-left: 4px solid var(--text-muted);
}

.session-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.user-details h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.session-meta {
    display: flex;
    gap: 28px;
    align-items: center;
}

.meta-box {
    text-align: right;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.timer-live {
    font-family: monospace;
    font-size: 16px;
    color: var(--color-emerald);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Photo Thumbnails in List */
.photo-thumbs {
    display: flex;
    gap: 8px;
}

.thumb-box {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.thumb-box:hover img {
    transform: scale(1.15);
}

.thumb-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    font-size: 9px;
    color: #fff;
    text-align: center;
    padding: 1px 0;
}

/* Action Buttons in List */
.btn-end-action {
    background: linear-gradient(135deg, var(--color-emerald), #059669);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-end-action:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}


/* ==========================================================================
   Modals (End Session & Photo Viewer)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 { font-size: 18px; font-weight: 700; }
.btn-close { background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; transition: color 0.2s; }
.btn-close:hover { color: #fff; }

.modal-body { padding: 24px; }
.modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }

.session-summary-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
}

.session-summary-box p { margin-bottom: 4px; color: var(--text-secondary); }
.session-summary-box strong { color: #fff; }

.dropzone-modal { padding: 32px 16px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(8, 12, 20, 0.5);
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* Viewer Modal */
.viewer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    max-width: 760px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.viewer-header h4 { font-size: 16px; font-weight: 600; }

.viewer-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
    display: block;
}

.viewer-footer {
    padding: 16px 24px;
    background: rgba(8, 12, 20, 0.8);
    font-size: 13px;
    color: var(--text-secondary);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    background: rgba(8, 12, 20, 0.9);
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Mobile Dedicated UI (Smartphone & Tablet Native App Feel)
   ========================================================================== */
@media (max-width: 992px) {
    .dashboard-grid, .portal-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .navbar { padding: 12px 16px; }
    .main-container { padding: 20px 16px; }
}

@media (max-width: 768px) {
    /* Navbar Mobile Layout */
    .nav-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .nav-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo-icon { width: 40px; height: 40px; font-size: 24px; }
    .logo-text h1 { font-size: 18px; }
    .logo-sub { display: none; } /* 모바일 화면 확보를 위해 부제 숨김 */

    /* Portal Cards Mobile Layout */
    .portal-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .lab-card {
        min-height: auto;
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }
    .card-header { margin-bottom: 16px; }
    .lab-icon-box { width: 52px; height: 52px; font-size: 26px; }
    .card-body h4 { font-size: 22px; }
    .lab-features { gap: 6px; }
    .lab-features span { font-size: 12px; padding: 4px 10px; }
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 20px;
    }
    .btn-primary { width: 100%; justify-content: center; padding: 14px; }

    /* Dashboard & Topbar Mobile Layout */
    .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 16px;
    }
    .btn-back { width: 100%; justify-content: center; }
    .current-lab-info { gap: 12px; }
    .lab-title-icon { font-size: 32px; }
    .lab-title-text h2 { font-size: 20px; }
    .lab-title-text p { font-size: 13px; }

    /* Forms & Sidebar Mobile Layout */
    .dashboard-sidebar, .dashboard-main { width: 100%; }
    .glass-card { padding: 20px 16px; }
    .form-input, .form-select, .form-textarea {
        font-size: 16px; /* 모바일 아이폰/갤럭시 인풋 터치 자동 확대 방지 */
        padding: 12px 14px;
    }
    .btn-submit { padding: 14px; font-size: 16px; }
    
    /* Photo Dropzone Mobile Layout */
    .photo-dropzone { padding: 24px 16px; min-height: 180px; }
    .dropzone-icon { font-size: 36px; }
    .btn-camera-trigger { width: 100%; padding: 12px; }

    /* Tabs & Session Lists Mobile Layout */
    .session-tabs {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 16px;
    }
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }
    .session-item {
        padding: 16px;
        gap: 12px;
    }
    .session-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .session-user { gap: 10px; }
    .session-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    .meta-box { width: 100%; text-align: left; }
    .btn-end-action {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding: 12px;
    }

    /* Modals Mobile Layout */
    .modal-content {
        width: 95% !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    .modal-footer button { width: 100%; justify-content: center; }
    .user-manage-table th, .user-manage-table td { padding: 10px 8px; font-size: 13px; }
}

/* ==========================================================================
   Auth & Admin User Management Modal Styles (New Added)
   ========================================================================== */
.small-modal {
    max-width: 440px;
}

.large-modal {
    max-width: 850px;
    width: 95%;
}

.flex-gap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout {
    border-color: rgba(244, 63, 94, 0.4);
    color: var(--color-rose);
}
.btn-logout:hover {
    background: var(--color-rose-bg);
    border-color: var(--color-rose);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.user-manage-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.user-manage-table th, .user-manage-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-manage-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.user-manage-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.user-manage-table td {
    color: var(--text-primary);
    vertical-align: middle;
}

.role-badge-admin {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.role-badge-user {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.btn-table-action {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    margin-right: 4px;
}

.btn-table-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-action-delete {
    color: var(--color-rose);
    border-color: rgba(244, 63, 94, 0.3);
}

.btn-action-delete:hover {
    background: var(--color-rose-bg);
}

/* ==========================================================================
   OASIS EDITORIAL MINIMALIST THEME (WHITE & BLACK HIGH-CONTRAST)
   Inspired by Oasis 30th Anniversary Official Website
   ========================================================================== */
:root {
    --bg-main: #ffffff !important;
    --bg-surface: #fafafa !important;
    --bg-card: #ffffff !important;
    --bg-card-hover: #f4f4f4 !important;
    --bg-glass: #ffffff !important;
    --bg-glass-border: #000000 !important;
    
    /* Monochrome High Contrast */
    --color-cyan: #000000 !important;
    --color-cyan-glow: rgba(0, 0, 0, 0.05) !important;
    --color-indigo: #111111 !important;
    --color-amber: #000000 !important;
    --color-amber-glow: rgba(0, 0, 0, 0.05) !important;
    --color-orange: #222222 !important;
    
    /* Semantic Colors */
    --color-emerald: #137333 !important;
    --color-emerald-bg: #e6f4ea !important;
    --color-rose: #c5221f !important;
    --color-rose-bg: #fce8e6 !important;
    --color-purple: #000000 !important;
    
    /* Typography & Borders */
    --text-primary: #000000 !important;
    --text-secondary: #444444 !important;
    --text-muted: #666666 !important;
    --border-color: #000000 !important;
    --border-hover: #000000 !important;
    
    /* Editorial Shadows & 0px Sharp Radii */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    --shadow-md: 4px 4px 0px #000000 !important;
    --shadow-lg: 8px 8px 0px #000000 !important;
    --shadow-cyan: 6px 6px 0px #000000 !important;
    --shadow-amber: 6px 6px 0px #000000 !important;

    --radius-sm: 0px !important;
    --radius-md: 0px !important;
    --radius-lg: 0px !important;
    --radius-xl: 0px !important;
}

body {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Remove Glowing Circles */
.bg-glow, .card-glow {
    display: none !important;
}

/* Navbar */
.navbar {
    background: #ffffff !important;
    border-bottom: 2px solid #000000 !important;
    backdrop-filter: none !important;
}
.logo-icon {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    box-shadow: 2px 2px 0px #000000 !important;
}
.logo-text h1, .hero-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
    font-weight: 800 !important;
}
.status-badge {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: 2px 2px 0px #000000 !important;
}
.user-switcher {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    border-radius: 0px !important;
    box-shadow: 2px 2px 0px #000000 !important;
}
.role-btn {
    border-radius: 0px !important;
    color: #000000 !important;
    font-weight: 600 !important;
}
.role-btn.active {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
}

/* Cards & Hero Banner */
.hero-banner, .lab-card, .glass-card, .stat-card, .dashboard-topbar, .modal-content {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    box-shadow: 6px 6px 0px #000000 !important;
    backdrop-filter: none !important;
}
.hero-tag {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 0px !important;
}

/* Buttons (Oasis style box buttons!) */
.btn-primary, .btn-submit, .btn-cyan, .btn-amber, .btn-back, .btn-excel {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0px #000000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.btn-primary:hover, .btn-submit:hover, .btn-cyan:hover, .btn-amber:hover, .btn-back:hover, .btn-excel:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: translate(-2px, -2px) !important;
    box-shadow: 5px 5px 0px #000000 !important;
}

/* Form Inputs */
.form-select, .form-input, .search-input {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0px !important;
}
.form-select:focus, .form-input:focus, .search-input:focus {
    box-shadow: 3px 3px 0px #000000 !important;
}

/* Dropzone & Tables */
.dropzone {
    background: #fafafa !important;
    border: 2px dashed #000000 !important;
    border-radius: 0px !important;
}
.table-responsive, .table-container {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 0px !important;
    box-shadow: 4px 4px 0px #000000 !important;
}
.user-manage-table th, .session-table th {
    background: #f4f4f4 !important;
    color: #000000 !important;
    border-bottom: 2px solid #000000 !important;
    font-weight: 800 !important;
}
.user-manage-table td, .session-table td {
    border-bottom: 1px solid #dddddd !important;
    color: #000000 !important;
}
.user-manage-table tr:hover, .session-table tr:hover {
    background: #f9f9f9 !important;
}

/* Status Badges */
.badge-approved {
    background: #e6f4ea !important;
    color: #137333 !important;
    border: 1.5px solid #137333 !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    display: inline-block !important;
}
.badge-pending {
    background: #fef7e0 !important;
    color: #b06000 !important;
    border: 1.5px solid #b06000 !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    display: inline-block !important;
}
.badge-rejected {
    background: #fce8e6 !important;
    color: #c5221f !important;
    border: 1.5px solid #c5221f !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    display: inline-block !important;
}
.btn-table-action {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0px !important;
    font-weight: 600 !important;
    box-shadow: 2px 2px 0px #000000 !important;
    padding: 4px 10px !important;
}
.btn-table-action:hover {
    background: #000000 !important;
    color: #ffffff !important;
}
