/**
 * ULTRA LIGHT EXAM LAUNCHER (SMP EDITION - KELAS 7, 8, 9)
 * File: assets/style.css
 * Desain:
 * - Siswa: Ultra-Simple, Boxless (Tanpa Box), Typographic Minimalist
 * - Admin: Executive Modern Dashboard (KPI, Statistik Tingkat 7/8/9, Tabel Rapi)
 */

:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-bg: #dcfce7;
    --success-text: #15803d;
    --success-border: #86efac;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --danger-text: #b91c1c;
    --neutral-bg: #f1f5f9;
    --neutral-text: #475569;
    --radius: 12px;
}

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

[hidden] {
    display: none !important;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ============================================================================
   TOPBAR & NAVIGASI (RINGKAS 1 BARIS DI LAYAR HP KECIL)
   ============================================================================ */
.topbar {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-badge {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.74rem;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.brand-title {
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.15;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.server-clock {
    background-color: var(--primary-soft);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clock-dot {
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
}

.admin-nav {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--primary-soft);
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary);
    color: #ffffff;
}

.main-content {
    flex: 1;
    padding: 14px 0 28px;
}

/* ============================================================================
   UI SISWA & LOGIN: ULTRA-SIMPLE, TANPA BOX, PAS DI LAYAR HP KECIL
   ============================================================================ */
.login-minimal {
    max-width: 380px;
    margin: 12px auto;
    padding: 4px 2px;
}

.login-minimal-head {
    margin-bottom: 18px;
}

.login-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.login-minimal-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-main);
}

.login-minimal-sub {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.login-minimal-form {
    margin-top: 6px;
}

.form-control-clean {
    border: 0 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    padding: 10px 2px !important;
    font-size: 16px !important; /* Mencegah auto-zoom di browser HP */
}

.form-control-clean:focus {
    outline: none !important;
    border-bottom-color: var(--primary) !important;
}

.btn-pill {
    border-radius: 999px !important;
    margin-top: 10px;
}

.login-minimal-foot {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Auto-Suggest Nama Siswa di Halaman Login (Gaya Aplikasi Android) */
.suggest-wrapper {
    position: relative;
}

.suggest-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
}

.suggest-dropdown[hidden] {
    display: none !important;
}

.suggest-item {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.suggest-item:last-child {
    border-bottom: 0;
}

.suggest-item:hover,
.suggest-item:active {
    background-color: var(--primary-soft);
}

.suggest-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.suggest-item-Right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.suggest-item-nis {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
}

.suggest-empty {
    padding: 12px 14px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.selected-student-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.selected-student-box[hidden] {
    display: none !important;
}

.selected-student-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.btn-clear-suggest {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

/* Kartu Radio Pilihan Metode Login di Admin */
.method-option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #f8fafc;
}

.method-option-card.is-selected {
    border-color: var(--primary);
    background-color: var(--primary-soft);
}

.method-option-card input[type="radio"] {
    margin-top: 4px;
}

.method-option-body {
    flex: 1;
}

.method-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

/* Dashboard Siswa Gaya Aplikasi Android (Padat, Minim Teks, Highlight per Poin) */
.android-app-shell {
    max-width: 600px;
    margin: 0 auto;
}

.android-profile-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.android-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.android-student-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.android-icon-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    flex-shrink: 0;
}

.android-chip-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hl-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    line-height: 1.2;
}

.hl-chip-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.hl-chip-neutral {
    background-color: #e2e8f0;
    color: #1e293b;
}

.hl-chip-time {
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.android-exam-list {
    display: flex;
    flex-direction: column;
}

.android-exam-row {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.android-exam-row.row-active {
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
}

.android-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.hl-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

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

.hl-status.status-active {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.hl-status.status-upcoming {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.hl-status.status-finished {
    background-color: #e2e8f0;
    color: #475569;
}

.hl-status.status-locked {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

.android-row-highlights {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.hl-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.hl-tag-today {
    background-color: #dbeafe;
    color: #1e40af;
}

.hl-tag-date {
    background-color: #f1f5f9;
    color: #475569;
}

.hl-tag-clock {
    background-color: #0f172a;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.hl-tag-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

.android-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.android-subject-wrap {
    min-width: 0;
    flex: 1;
}

.android-subject-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
}

.android-exam-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

.android-cta-wrap {
    flex-shrink: 0;
}

.btn-android-start {
    background-color: var(--primary);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.btn-android-start:active {
    transform: scale(0.97);
}

.btn-android-locked {
    display: inline-block;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.android-empty {
    padding: 28px 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ============================================================================
   UI ADMIN: EXECUTIVE MODERN DASHBOARD
   ============================================================================ */
.admin-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 26px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.admin-hero-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.admin-hero-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
}

.admin-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-light-solid {
    background-color: #ffffff;
    color: var(--primary);
}

.btn-light-solid:hover {
    background-color: #eff6ff;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.kpi-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-card-live {
    border-color: var(--success-border);
    background-color: #f0fdf4;
}

.kpi-card-warn {
    border-color: #fca5a5;
    background-color: #fef2f2;
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kpi-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.kpi-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-soft);
    padding: 2px 8px;
    border-radius: 999px;
}

.kpi-number {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 8px 0 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.kpi-foot {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Kartu Sebaran Tingkat 7, 8, 9 */
.tingkat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.tingkat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px;
}

.tingkat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tingkat-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.tingkat-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.tingkat-count {
    text-align: right;
}

.tingkat-count strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.tingkat-count span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--neutral-bg);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 999px;
    min-width: 4%;
}

.tingkat-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================================================
   KOMPONEN UMUM ADMIN (CARD, FORM, TABEL, BADGE, BUTTON)
   ============================================================================ */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
}

.card-accent-blue {
    border-top: 4px solid var(--primary);
}

.card-title {
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.card-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.class-pill {
    display: inline-block;
    background-color: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-right: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.status-Badge,
.status-upcoming {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.status-active {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.status-finished {
    background-color: var(--neutral-bg);
    color: var(--neutral-text);
}

.status-locked {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

/* Tombol */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

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

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

.btn-outline {
    background-color: #ffffff;
    color: var(--text-main);
    border-color: #cbd5e1;
}

.btn-outline:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.btn-outline-light {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.topbar .btn-outline-light {
    color: var(--text-main);
    border-color: #cbd5e1;
}

.topbar .btn-outline-light:hover {
    background-color: #f1f5f9;
}

.btn-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-color: #fcd34d;
}

.btn-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border-color: #fca5a5;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 0.98rem;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 0.78rem;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Formulir & Tabel */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.form-control:focus {
    outline: 2px solid var(--primary);
    border-color: var(--primary);
}

.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row-2,
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    background-color: #f8fafc;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-inline {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-inline .form-control {
    flex: 1;
    min-width: 140px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #fcd34d;
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fca5a5;
}

.error-list,
.sync-log {
    padding-left: 18px;
    font-size: 0.86rem;
}

.inline-form {
    display: inline-block;
}

.nowrap {
    white-space: nowrap;
}

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

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

.text-danger {
    color: var(--danger);
}

.text-small {
    font-size: 0.8rem;
}

.link-primary {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
}

.empty-state h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

.code-box {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    overflow-x: auto;
    margin-top: 8px;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: transparent;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================================
   RUANG UJIAN TERPROTEKSI (ruang_ujian.php - 100% LAYAR HP OPTIMIZED)
   ============================================================================ */
.exam-room-body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none; /* Cegah Pull-to-Refresh tidak sengaja di Chrome Android */
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
}

.exam-room-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 6px 10px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
    border-bottom: 1px solid #1e293b;
    z-index: 20;
}

.exam-room-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.exam-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    flex-shrink: 0;
}

.exam-room-mapel {
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-room-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.exam-violation-counter {
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 0.72rem;
    padding: 4px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.exam-violation-counter.has-warn {
    background-color: #dc2626;
    color: #ffffff;
}

.exam-timer-pill {
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 0.72rem;
    padding: 4px 7px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.btn-room {
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-room-outline {
    background-color: transparent;
    color: #e2e8f0;
    border-color: #334155;
}

.btn-room-exit {
    background-color: #dc2626;
    color: #ffffff;
}

.exam-iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.exam-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.violation-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.96);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow-y: auto;
}

.violation-overlay[hidden] {
    display: none !important;
}

.violation-modal {
    max-width: 380px;
    width: 100%;
    background-color: #ffffff;
    border-top: 5px solid #dc2626;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
}

.violation-siren-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.violation-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 8px;
}

.violation-desc {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.45;
}

.violation-stats-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.violation-subnote {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.btn-resume-mobile {
    padding: 12px 16px;
    font-size: 0.92rem;
    min-height: 46px;
}

/* ============================================================================
   SWEETALERT2 ULTRA-LIGHT ENGINE (SWAL2 POPUP, ANIMATED ICONS, LOADER & TOAST)
   0 External CDN Request - Super Ringan & Cepat di Layar HP
   ============================================================================ */
.queue-overlay,
.swal2-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: swal2FadeIn 0.18s ease-out;
}

.queue-overlay[hidden],
.swal2-backdrop[hidden] {
    display: none !important;
}

.queue-card,
.swal2-popup {
    max-width: 350px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 26px 22px 22px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
    animation: swal2Show 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes swal2FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes swal2Show {
    0% {
        transform: scale(0.75);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* SweetAlert2 Animated Icons */
.swal2-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
    user-select: none;
}

.swal2-icon-loading {
    border: 4px solid #e0e7ff;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: examSpin 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.swal2-icon-loading::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #60a5fa;
    animation: examSpin 1.2s linear infinite reverse;
}

.swal2-icon-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 3px solid #86efac;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.swal2-icon-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 3px solid #fca5a5;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12);
    animation: swal2Shake 0.4s ease-in-out;
}

.swal2-icon-warning {
    background-color: #fef3c7;
    color: #d97706;
    border: 3px solid #fcd34d;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.swal2-icon-info {
    background-color: #dbeafe;
    color: var(--primary);
    border: 3px solid #93c5fd;
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.1);
}

@keyframes swal2Shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.queue-spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border: 4px solid #e0e7ff;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: examSpin 0.75s linear infinite;
}

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

.queue-title,
.swal2-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.queue-subtitle,
.swal2-html-container {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.queue-progress-bar {
    width: 100%;
    height: 7px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.queue-progress-fill {
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    border-radius: 999px;
    transition: width 0.45s ease;
}

.queue-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 4px 12px;
    border-radius: 999px;
}

.swal2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.swal2-btn {
    flex: 1;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 11px 16px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.swal2-btn:active {
    transform: scale(0.97);
}

.swal2-confirm {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.swal2-confirm-danger {
    background-color: var(--danger);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.swal2-cancel {
    background-color: #f1f5f9;
    color: #475569;
}

/* SweetAlert2 Floating Toast Notification */
.swal2-toast-container {
    position: fixed;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.swal2-toast {
    pointer-events: auto;
    max-width: 360px;
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    animation: swal2Show 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swal2-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Loading Overlay di dalam Area Iframe Google Form (ruang_ujian.php) */
.iframe-loading-overlay {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.iframe-loading-overlay[hidden] {
    display: none !important;
}

.iframe-loading-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.iframe-loading-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (TABLET & DESKTOP)
   ============================================================================ */
@media (min-width: 640px) {
    .admin-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tingkat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-grid {
        grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto;
    }
}

@media (min-width: 960px) {
    .admin-split-grid {
        grid-template-columns: 1fr 1.65fr;
    }
}

/* ============================================================================
   GOOGLE MATERIAL DESIGN 3 (MATERIAL YOU) - DASHBOARD SISWA CBT
   - Dominasi Soft Lavender, Putih, dan Biru Keunguan
   - Background lembut dengan gradasi halus
   - Rounded corners konsisten (16-24px), border aksen ungu halus
   - 1 Single Featured Card menonjol untuk ujian terdekat yang belum selesai
   - Android List View sederhana tanpa card untuk jadwal berikutnya
   ============================================================================ */

:root {
    --m3-primary: #6750A4;
    --m3-on-primary: #FFFFFF;
    --m3-primary-container: #EADDFF;
    --m3-on-primary-container: #21005D;
    --m3-secondary: #625B71;
    --m3-secondary-container: #E8DEF8;
    --m3-on-secondary-container: #1D192B;
    --m3-tertiary: #7D5260;
    --m3-tertiary-container: #FFD8E4;
    --m3-surface: #FEF7FF;
    --m3-surface-dim: #DED8E1;
    --m3-surface-bright: #FEF7FF;
    --m3-surface-container-lowest: #FFFFFF;
    --m3-surface-container-low: #F7F2FA;
    --m3-surface-container: #F3EDF7;
    --m3-surface-container-high: #ECE6F0;
    --m3-surface-container-highest: #E6E0E9;
    --m3-on-surface: #1D1B20;
    --m3-on-surface-variant: #49454F;
    --m3-outline: #79747E;
    --m3-outline-variant: #CAC4D0;
    --m3-shadow: 0 4px 20px -2px rgba(103, 80, 164, 0.08);
    --m3-shadow-hover: 0 8px 26px -4px rgba(103, 80, 164, 0.16);
}

/* 1. Body Khusus Siswa: Soft Lavender Gradient & Antigravity Typography */
body.m3-student-body {
    background: linear-gradient(180deg, #FAF7FD 0%, #F4EEF8 360px, #F1EBF5 100%);
    background-attachment: fixed;
    color: var(--m3-on-surface);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

body.m3-student-body .main-content {
    flex: 1;
    padding: 8px 0 24px;
}

body.m3-student-body .footer {
    background: transparent;
    border-top: 1px solid rgba(103, 80, 164, 0.08);
    color: #79747E;
    font-size: 0.72rem;
    padding: 16px 0 24px;
}

/* 2. Topbar Material 3 */
.m3-topbar {
    background-color: rgba(254, 247, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(103, 80, 164, 0.12);
    box-shadow: 0 1px 3px rgba(103, 80, 164, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 0;
}

.m3-cbt-icon {
    background: linear-gradient(135deg, #6750A4 0%, #4F378B 100%);
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(103, 80, 164, 0.28);
    flex-shrink: 0;
}

.m3-cbt-icon svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
}

.m3-topbar .brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.m3-topbar .brand-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #1D192B;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.m3-topbar .brand-sub {
    font-size: 0.72rem;
    color: #625B71;
    font-weight: 600;
    line-height: 1.2;
}

.m3-clock-pill {
    background-color: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(103, 80, 164, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.m3-clock-pill .clock-dot {
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
    border-radius: 50%;
    animation: m3PulseDot 2s infinite ease-in-out;
}

@keyframes m3PulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.75; }
}

/* 3. Dashboard Container (Mobile First, Max-Width 580px) */
.m3-dashboard-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 8px 12px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 4. Profil Siswa */
.m3-profile-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.m3-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.m3-profile-greeting {
    flex: 1;
    min-width: 130px;
}

.m3-profile-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.m3-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--m3-primary);
    display: block;
    margin-bottom: 2px;
}

.m3-student-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1D192B;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
}

.m3-refresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FFFFFF;
    color: var(--m3-primary);
    border: 1px solid rgba(103, 80, 164, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(103, 80, 164, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 36px;
    touch-action: manipulation;
}

.m3-refresh-pill:active {
    background-color: var(--m3-primary-container);
    transform: scale(0.97);
}

.m3-refresh-pill svg {
    transition: transform 0.3s ease;
}

.m3-refresh-pill:hover svg {
    transform: rotate(180deg);
}

.m3-logout-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FFFFFF;
    color: #8E1D41;
    border: 1px solid rgba(142, 29, 65, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(142, 29, 65, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-height: 36px;
    touch-action: manipulation;
}

.m3-logout-pill:active {
    background-color: #FFD8E4;
    transform: scale(0.97);
}

/* Material Chips */
.m3-chip-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.m3-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 10px;
    line-height: 1.3;
}

.m3-chip svg {
    flex-shrink: 0;
}

.m3-chip-tonal {
    background-color: var(--m3-secondary-container);
    color: var(--m3-on-secondary-container);
    font-weight: 700;
    border: 1px solid rgba(103, 80, 164, 0.12);
}

.m3-chip-surface {
    background-color: #FFFFFF;
    color: var(--m3-on-surface-variant);
    border: 1px solid var(--m3-outline-variant);
}

/* 5. Featured Card (Jadwal Terdekat) */
.m3-featured-section {
    display: flex;
    flex-direction: column;
}

.m3-featured-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 20px 20px 18px;
    border: 1.5px solid rgba(103, 80, 164, 0.16);
    box-shadow: 0 4px 20px -2px rgba(103, 80, 164, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Aksen Saat Ujian Aktif / Sedang Berlangsung */
.m3-featured-card.is-running {
    border: 2px solid #6750A4;
    box-shadow: 0 6px 24px -2px rgba(103, 80, 164, 0.18), 0 0 0 3px rgba(103, 80, 164, 0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF7FD 100%);
}

.m3-featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.m3-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--m3-primary);
    text-transform: uppercase;
}

.m3-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--m3-primary);
    display: inline-block;
}

.m3-featured-card.is-running .m3-label-dot {
    background-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    animation: m3PulseDot 1.6s infinite ease-in-out;
}

.m3-featured-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.m3-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.m3-status-pill.status-active {
    background-color: #D3EFD9;
    color: #146C2E;
}

.m3-status-pill.status-upcoming {
    background-color: #FFECC4;
    color: #7A4D00;
}

.m3-status-pill.status-finished {
    background-color: #E6E0E9;
    color: #49454F;
}

.m3-status-pill.status-locked {
    background-color: #FFD8E4;
    color: #8E1D41;
}

/* Baris Ikon Subjek Besar & Judul */
.m3-featured-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.m3-subject-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.m3-subject-icon-lg svg {
    width: 32px;
    height: 32px;
}

.m3-featured-titles {
    flex: 1;
    min-width: 0;
}

.m3-featured-subject {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1D192B;
    line-height: 1.25;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
    word-break: break-word;
}

.m3-featured-type {
    font-size: 0.82rem;
    color: #625B71;
    font-weight: 600;
    margin: 0;
}

/* Meta Informasi (Tanggal & Jam) */
.m3-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--m3-surface-container-low);
    border-radius: 16px;
    padding: 10px 14px;
    border: 1px solid rgba(103, 80, 164, 0.08);
}

.m3-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #49454F;
}

.m3-meta-item svg {
    color: var(--m3-primary);
    flex-shrink: 0;
}

.m3-meta-item strong {
    color: #1D192B;
    font-weight: 700;
}

/* Action Area (Tombol Mulai Ujian / Tonal Disabled) */
.m3-featured-action {
    display: flex;
    flex-direction: column;
}

.m3-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    background: linear-gradient(135deg, #6750A4 0%, #50378D 100%);
    color: #FFFFFF;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(103, 80, 164, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    touch-action: manipulation;
}

.m3-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 1px 6px rgba(103, 80, 164, 0.25);
}

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

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

.m3-btn-tonal-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    background-color: var(--m3-surface-container-high);
    color: var(--m3-outline);
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(121, 116, 126, 0.2);
    cursor: not-allowed;
    user-select: none;
}

.m3-btn-tonal-disabled svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Empty State Material 3 */
.m3-empty-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 32px 20px;
    border: 1px solid rgba(103, 80, 164, 0.12);
    box-shadow: var(--m3-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.m3-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--m3-primary-container);
    color: var(--m3-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.m3-empty-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1D192B;
    margin: 0;
}

.m3-empty-desc {
    font-size: 0.82rem;
    color: #625B71;
    line-height: 1.45;
    margin: 0;
    max-width: 380px;
}

/* 6. List Section: "Jadwal Berikutnya" (Android Simple List Menu) */
.m3-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m3-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.m3-list-heading {
    font-size: 0.96rem;
    font-weight: 800;
    color: #1D192B;
    letter-spacing: -0.2px;
    margin: 0;
}

.m3-list-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--m3-primary);
    background-color: var(--m3-primary-container);
    padding: 2px 8px;
    border-radius: 999px;
}

/* List View Container: Tanpa Card, Tanpa Shadow, Background Transparan / Menyatu */
.m3-list-view {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.m3-list-form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.m3-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(121, 116, 126, 0.16);
    background: transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
    width: 100%;
    touch-action: manipulation;
}

.m3-list-item:last-child,
.m3-list-form:last-child .m3-list-item {
    border-bottom: none;
}

.m3-list-item:active {
    background-color: rgba(103, 80, 164, 0.08);
    border-radius: 12px;
}

.m3-list-item-btn {
    appearance: none;
    border: none;
    border-bottom: 1px solid rgba(121, 116, 126, 0.16);
    text-align: left;
    font-family: inherit;
}

.m3-subject-icon-sm {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.m3-subject-icon-sm svg {
    width: 22px;
    height: 22px;
}

.m3-list-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m3-list-subject {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1D192B;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m3-list-sub {
    font-size: 0.74rem;
    color: #625B71;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m3-inline-status {
    font-weight: 700;
}

.m3-inline-status.is-active {
    color: #146C2E;
}

.m3-inline-status.is-done {
    color: #79747E;
}

.m3-list-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    text-align: right;
}

.m3-list-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1D192B;
    line-height: 1.2;
}

.m3-list-time {
    font-size: 0.72rem;
    color: #625B71;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.m3-list-chevron {
    color: #79747E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    margin-left: -2px;
}

.m3-list-item:active .m3-list-chevron {
    opacity: 1;
    color: var(--m3-primary);
}

/* 7. Optimasi Smartphone Layar Kecil (Mobile 320px - 360px) */
@media (max-width: 360px) {
    .m3-dashboard-container {
        padding: 6px 8px 28px;
        gap: 16px;
    }

    .m3-student-name {
        font-size: 1.18rem;
    }

    .m3-featured-card {
        padding: 16px 14px 14px;
        border-radius: 20px;
    }

    .m3-subject-icon-lg {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .m3-subject-icon-lg svg {
        width: 26px;
        height: 26px;
    }

    .m3-featured-subject {
        font-size: 1.1rem;
    }

    .m3-list-item {
        padding: 10px 2px;
        gap: 8px;
    }

    .m3-subject-icon-sm {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .m3-subject-icon-sm svg {
        width: 18px;
        height: 18px;
    }

    .m3-list-subject {
        font-size: 0.86rem;
    }

    .m3-list-date {
        font-size: 0.75rem;
    }

    .m3-list-time {
        font-size: 0.68rem;
    }
}
