/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-hover: #1648b8;
    --primary-light: #dbeafe;
    --primary-ghost: #eff6ff;
    --accent: #0891b2;
    --accent-light: #cffafe;
    --bg: #f0f5ff;
    --bg-soft: #f8faff;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.05);
    --shadow: 0 1px 3px rgba(30, 41, 59, 0.08), 0 1px 2px rgba(30, 41, 59, 0.04);
    --shadow-md: 0 4px 6px rgba(30, 41, 59, 0.07), 0 2px 4px rgba(30, 41, 59, 0.04);
    --shadow-lg: 0 10px 15px rgba(30, 41, 59, 0.08), 0 4px 6px rgba(30, 41, 59, 0.04);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --transition: 200ms ease;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== LAYOUT WRAPPER ===== */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR (Admin) ===== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f2b6e 0%, #1a3f8a 50%, #1e4faa 100%);
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(15, 43, 110, 0.15);
}

.sidebar-brand {
    padding: 24px 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand h2 .brand-icon {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sidebar-brand p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    padding-left: 44px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.sidebar-footer a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px 36px 48px;
    min-height: 100vh;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ===== CARDS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
}

.card-body {
    padding: 22px;
}

.card-body.no-pad {
    padding: 0;
}

/* ===== STAT CARDS (Dashboard) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.cyan { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }

.stat-info h4 {
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.2;
    color: var(--text);
}

.stat-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

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

table thead th {
    background: var(--primary-ghost);
    color: var(--text);
    font-weight: 650;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-strong);
    white-space: nowrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

table tbody tr:hover {
    background: var(--primary-ghost);
}

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

.empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 32px 16px !important;
    font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.4;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 5px;
}

.btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}
.btn-edit:hover {
    background: var(--primary);
    color: #fff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    margin-top: 20px;
}
.btn-back:hover {
    background: var(--primary-ghost);
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ===== TABS (Juara) ===== */
.tabs-container {
    margin-bottom: 0;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-ghost);
}

.tab-panel {
    display: none;
    padding: 24px;
    animation: fadeIn 250ms ease;
}

.tab-panel.active {
    display: block;
}

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

/* ===== RANKING SECTION ===== */
.ranking-section {
    margin-bottom: 28px;
}

.ranking-section:last-child {
    margin-bottom: 0;
}

.ranking-section h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-section h4 .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ===== MEDAL BADGE ===== */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.medal-gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.medal-silver { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #475569; }
.medal-bronze { background: linear-gradient(135deg, #fdba74, #fb923c); color: #7c2d12; }
.medal-default { background: var(--bg); color: var(--text-muted); }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c1f4d 0%, #16337e 40%, #1a56db 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.login-box {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.login-box .login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-box .login-logo .logo-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3);
}

.login-box h2 {
    font-size: 1.3rem;
    font-weight: 750;
    color: var(--text);
    letter-spacing: -0.02em;
}

.login-box .login-subtitle {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 4px;
}

.login-box .form-group {
    margin-bottom: 16px;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.92rem;
    border-radius: var(--radius);
    margin-top: 4px;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.login-success {
    background: var(--success-bg);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* ===== PESERTA DASHBOARD ===== */
.peserta-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1f4d 0%, #16337e 50%, #1a56db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.peserta-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.peserta-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.peserta-card-header {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    padding: 28px 30px;
    color: #fff;
}

.peserta-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.peserta-card-header p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.peserta-card-body {
    padding: 28px 30px;
}

.peserta-card-body .score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.score-item {
    text-align: center;
    padding: 16px 10px;
    background: var(--primary-ghost);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.score-item .score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.score-item .score-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.score-item.total {
    background: linear-gradient(135deg, var(--primary), #2563eb);
    border-color: transparent;
}

.score-item.total .score-value {
    color: #fff;
}

.score-item.total .score-label {
    color: rgba(255,255,255,0.8);
}

.peserta-card-body .desc-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.87rem;
    color: var(--text);
    margin-bottom: 20px;
    min-height: 50px;
}

.peserta-card-body .desc-box .desc-label {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.peserta-card-footer {
    padding: 0 30px 24px;
}

.peserta-card-footer .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}
.peserta-card-footer .btn-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.3);
}

/* ===== TINGKAT BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.badge-sd { background: #dbeafe; color: #1d4ed8; }
.badge-smp { background: #d1fae5; color: #047857; }
.badge-sma { background: #ede9fe; color: #6d28d9; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 20px;
}

.section-divider:first-child {
    margin-top: 0;
}

.section-divider h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-divider .tingkat-count {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 650;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.gap-3 { gap: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
        padding: 24px 20px 40px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .peserta-card-body .score-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 576px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 300ms ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
        padding: 20px 16px 36px;
    }
    .mobile-toggle {
        display: flex !important;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .peserta-card-body .score-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== MOBILE TOGGLE (hidden on desktop) ===== */
.mobile-toggle {
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

/* ===== OVERLAY (mobile sidebar) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.sidebar-overlay.show {
    display: block;
}

/* ===== NILAI HIGHLIGHT ===== */
.nilai-highlight {
    font-weight: 700;
    color: var(--primary);
}

.nilai-total {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

/* ===== ALERT ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}
/* Default untuk desktop */
.score-box {
  flex: 1;
  min-width: 180px;
  padding: 20px;
  margin: 10px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1rem;
}
/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #0c1f4d 0%, #16337e 40%, #1a56db 100%);
  color: #1e293b;
  min-height: 100vh;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-box {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 360px;   /* lebih kecil agar pas di HP */
  padding: 24px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.login-box h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 8px;
}

.login-box .login-subtitle {
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 16px;
  color: #64748b;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.8rem;
  margin-bottom: 4px;
  display: block;
}

.form-control {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  background: #1a56db;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ===== PESERTA DASHBOARD ===== */
.peserta-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.peserta-card {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;   /* pas di HP */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.peserta-card-header {
  background: #1a56db;
  color: #fff;
  padding: 16px;
  border-radius: 10px 10px 0 0;
}

.peserta-card-header h2 {
  font-size: 1rem;
}

.peserta-card-header p {
  font-size: 0.75rem;
  opacity: 0.8;
}

.peserta-card-body {
  padding: 16px;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 kolom di HP */
  gap: 10px;
}

.score-item {
  background: #f8faff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  padding: 12px;
}

.score-item .score-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a56db;
}

.score-item .score-label {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 4px;
}

.score-item.total {
  background: #1a56db;
  color: #fff;
}

.peserta-card-body .desc-box {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #1e293b;
}

.peserta-card-footer {
  padding: 12px;
  text-align: center;
}

.peserta-card-footer .btn-logout {
  font-size: 0.8rem;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
}
.login-logo .logo-circle {
    display: none;
}