/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.3);
    --color-purple: #8b5cf6;
    --color-purple-glow: rgba(139, 92, 246, 0.3);
    --color-green: #10b981;
    --color-green-glow: rgba(16, 185, 129, 0.2);
    --color-red: #ef4444;
    --color-red-glow: rgba(239, 68, 68, 0.2);
    --color-orange: #f59e0b;
    
    --font-heading: 'Outfit', 'Inter', 'Noto Sans JP', sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glow Effects */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
}

/* Common Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Accent texts & Badges */
.accent-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

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

.logo i {
    font-size: 1.75rem;
    color: #60a5fa;
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

.group-badge {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
    text-align: right;
}

.btn-reset {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* Admin Mode Styles */
.btn-admin {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-admin:hover, .btn-admin.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.live-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.monitor-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.monitor-card:hover {
    border-color: rgba(96, 165, 250, 0.2);
}

.monitor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.monitor-student-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.monitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.monitor-name {
    font-weight: 600;
    font-size: 1rem;
}

.monitor-status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-idle {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-testing {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.monitor-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.monitor-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.monitor-value {
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-value.warning {
    color: var(--color-red);
    font-weight: 700;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }
    100% {
        opacity: 0.8;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.btn-block {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Dashboard View
   ========================================================================== */

/* Overview Stats */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Sections Section Header */
.section-title {
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title h2 i {
    color: #60a5fa;
}

/* Member Cards Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.member-card {
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.member-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    flex-shrink: 0;
}

.member-card-header.oshin .member-avatar {
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    color: white;
}
.member-card-header.putra .member-avatar {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: white;
}
.member-card-header.ikbal .member-avatar {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
}
.member-card-header.kabe .member-avatar {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
}

.member-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.member-role {
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.3;
}

.member-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.progress-item {
    font-size: 0.85rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.progress-label span:first-child {
    line-height: 1.3;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.progress-fill.passed {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.progress-fill.failed {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.progress-fill.not-taken {
    background: var(--text-muted);
}

.progress-score-badge {
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-passed {
    color: #34d399;
}

.badge-failed {
    color: #f87171;
}

.badge-not-taken {
    color: var(--text-muted);
}

/* Two Columns Dashboard Layout */
.dashboard-cols {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.dashboard-col {
    padding: 1.75rem;
}

.dashboard-col h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.3;
}

.dashboard-col h3 i {
    color: #a78bfa;
}

/* Form Styling */
.launcher-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 0.8rem 1.8rem 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Score Board Table */
.table-container {
    overflow-x: auto;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.scoreboard-table th {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.3;
}

.scoreboard-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scoreboard-table tr:last-child td {
    border-bottom: none;
}

.scoreboard-table td.score-cell {
    font-weight: 600;
}

.summary-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Activities Log */
.panel-activities {
    padding: 1.75rem;
}

.panel-activities h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-activities h3 i {
    color: #60a5fa;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--text-muted);
    font-size: 0.85rem;
    gap: 1rem;
}

.activity-item.passed {
    border-left-color: var(--color-green);
    background: rgba(16, 185, 129, 0.02);
}

.activity-item.failed {
    border-left-color: var(--color-red);
    background: rgba(239, 68, 68, 0.02);
}

.activity-user {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-details {
    color: var(--text-secondary);
}

.activity-score {
    font-weight: 700;
    flex-shrink: 0;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Test Environment View
   ========================================================================== */
.test-header {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-label {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

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

.test-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 5px;
    transition: width 0.3s ease-out;
}

.test-question-area {
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease;
}

.question-card {
    padding: 2.2rem;
}

.question-category {
    font-size: 0.72rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
    word-break: break-word;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1.5;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.option-btn.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.option-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.option-btn.selected .option-marker {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.test-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Test Result View
   ========================================================================== */
.result-summary {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .result-summary {
        grid-template-columns: 1fr;
    }
}

.result-status-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.result-status-card.passed .result-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-status-card.failed .result-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-status-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.result-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.score-circle-container {
    background: rgba(22, 28, 45, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-status-card.passed + .score-circle-container .score-circle {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.result-status-card.failed + .score-circle-container .score-circle {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.score-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.score-total {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.score-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    gap: 0.5rem;
}

.detail-item .label {
    color: var(--text-secondary);
}

.detail-item .value {
    font-weight: 600;
    white-space: nowrap;
}

.result-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Review List */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.75rem;
    border-left: 4px solid var(--text-muted);
}

.review-item.correct {
    border-left-color: var(--color-green);
    background: rgba(16, 185, 129, 0.02);
}

.review-item.incorrect {
    border-left-color: var(--color-red);
    background: rgba(239, 68, 68, 0.02);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-status-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.review-item.correct .review-status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.review-item.incorrect .review-status-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.review-question {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.review-option {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    line-height: 1.4;
}

.review-option.correct-ans {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-weight: 500;
}

.review-option.user-ans-wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-weight: 500;
}

.review-explanation {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.review-explanation strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.app-footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-view {
    display: none;
}

.app-view.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* ==========================================================================
   Overlay & Modal for Cheat Prevention & Admin Detail (New Features)
   ========================================================================== */
.overlay-container, .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.warning-box {
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(30, 27, 46, 0.7);
}

.warning-title {
    color: #f87171;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.warning-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.warning-text-id {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.warning-count-box {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Modal styling */
.modal-box {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(21, 28, 48, 0.8);
}

.modal-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

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

.modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-meta-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-question-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.modal-q-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 4px solid var(--text-muted);
    font-size: 0.85rem;
}

.modal-q-item.correct {
    border-left-color: var(--color-green);
    background: rgba(16, 185, 129, 0.02);
}

.modal-q-item.incorrect {
    border-left-color: var(--color-red);
    background: rgba(239, 68, 68, 0.02);
}

.modal-q-item.unanswered {
    border-left-color: var(--text-muted);
}

.modal-q-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

/* Dynamic Grid for Candidate Answer Dots */
.monitor-dots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
}

.monitor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    cursor: help;
}

.monitor-dot.correct {
    background: var(--color-green);
    box-shadow: 0 0 4px var(--color-green);
}

.monitor-dot.incorrect {
    background: var(--color-red);
    box-shadow: 0 0 4px var(--color-red);
}

.monitor-dot.answered {
    background: #3b82f6;
    box-shadow: 0 0 4px #3b82f6;
}

/* Tooltip on hover */
.monitor-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.monitor-dot:hover::after {
    opacity: 1;
    visibility: visible;
}
