/* ============================================================
   PILKADES BALUNG LOR — STYLE VIBRANT CLARITY 2026
   Modern, Senior-Friendly, Bento Grids, High Contrast
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #4338ca;
    --primary-glow: rgba(67, 56, 202, 0.4);
    --secondary: #0d9488;
    --accent: #f97316;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 20px -5px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.12);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   KARTU LOGOUT
   ============================================================ */
.menu-card.logout-card {
    border-color: #dc2626;
    max-width: 320px;
    margin: 0 auto;
}

.menu-card.logout-card .icon {
    color: #dc2626;
}

.menu-card.logout-card .title {
    color: #dc2626;
}

.menu-card.logout-card::before {
    background: rgba(220, 38, 38, 0.2);
}

.menu-card.logout-card:hover {
    border-color: #b91c1c;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
}

/* ============================================================
   CONTAINER & TIPOGRAFI
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

h1 { font-size: 2rem; margin-bottom: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
h2 { font-size: 1.35rem; margin-bottom: 20px; font-weight: 700; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 700; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

/* ============================================================
   TOMBOL BACK
   ============================================================ */
.btn-back {
    background: #e2e8f0;
    color: var(--text);
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    vertical-align: middle;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-back:hover {
    background: #cbd5e1;
    transform: translateX(-2px);
}

/* ============================================================
   BENTO MENU CARDS (Dashboard)
   ============================================================ */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.menu-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-glow);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 0;
}

.menu-card:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.menu-card .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.menu-card .title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.menu-card .desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.menu-card.scan-card { border-color: var(--secondary); }
.menu-card.scan-card .title { color: var(--secondary); }
.menu-card.scan-card::before { background: rgba(13, 148, 136, 0.2); }

.menu-card.papan-card { border-color: var(--accent); }
.menu-card.papan-card .title { color: var(--accent); }
.menu-card.papan-card::before { background: rgba(249, 115, 22, 0.2); }

/* ============================================================
   STATISTIK
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.stat-card.green { border-left-color: var(--success); }
.stat-card.orange { border-left-color: var(--warning); }
.stat-card.purple { border-left-color: var(--purple); }

.stat-icon { font-size: 2rem; line-height: 1; }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text);
    letter-spacing: -0.03em;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ============================================================
   CARD UMUM
   ============================================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

/* ============================================================
   TOMBOL
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: #f1f5f9;
    color: var(--text);
    transition: var(--transition);
    min-height: 46px;
    font-family: inherit;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.98); }
.btn:hover { background: #e2e8f0; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #3730a3; color: white; box-shadow: 0 4px 12px var(--primary-glow); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; color: white; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }

.btn-info { background: var(--secondary); color: white; }
.btn-info:hover { background: #0f766e; color: white; box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); }

.btn-reset { background: var(--purple); color: white; }
.btn-reset:hover { background: #7c3aed; color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    min-height: 54px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    min-height: 38px;
}

/* ============================================================
   FORM
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    min-height: 48px;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group input[type="file"] {
    padding: 10px;
    background: #f8fafc;
}

.preview-foto {
    margin-top: 12px;
    max-width: 180px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

/* ============================================================
   TABEL
   ============================================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.95rem;
}

.table thead {
    background: var(--primary);
    color: white;
}

.table th {
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* Row hijau untuk yang sudah hadir */
tr.row-hadir { background: #f0fdf4; }
tr.row-hadir:hover { background: #dcfce7 !important; }

.thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

.thumb-placeholder {
    width: 48px;
    height: 48px;
    background: #e2e8f0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #94a3b8;
}

.action-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-success::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Info waktu hadir */
.waktu-hadir {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

/* Role badge */
.role-badge {
    display: inline-block;
    background: #ede9fe;
    color: #6d28d9;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================================
   ALERT
   ============================================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 24px;
    border-left: 5px solid;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: var(--danger);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #4338ca 0%, #0d9488 100%);
    padding: 24px;
}

.login-box {
    background: var(--card-bg);
    padding: 40px 36px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-box h1 {
    font-size: 1.6rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.login-box > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.login-box .form-group { margin-bottom: 20px; }

.login-box small {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================================
   SEARCH & PROGRESS
   ============================================================ */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 48px;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-info {
    background: #eff6ff;
    border-left: 4px solid #1e40af;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 600;
}

.progress-bar {
    height: 24px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--success));
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ============================================================
   PAPAN INFORMASI
   ============================================================ */
.papan-body {
    background: #0f172a;
    color: white;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

.papan-header {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #4338ca, #0d9488);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.papan-header h1 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.papan-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.papan-header .clock {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    opacity: 0.95;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(16,185,129,0.5); }
    50% { box-shadow: 0 0 30px rgba(16,185,129,1); }
}

.papan-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.calon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.calon-card {
    background: white;
    color: #0f172a;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calon-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    background: #f1f5f9;
}

.calon-card .foto-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.calon-card .nomor {
    display: inline-block;
    background: #4338ca;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 999px;
    margin-bottom: 12px;
    align-self: center;
    letter-spacing: 0.05em;
}

.calon-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.calon-card .visi {
    font-style: italic;
    color: #64748b;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-top: auto;
}

.stat-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-big {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 14px;
    padding: 18px 16px;
    color: white;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stat-big h2 {
    font-size: 2.2rem;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-big p {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.95;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-big.glow {
    animation: pulseGlow 2s infinite;
}

.papan-table {
    background: white;
    color: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.papan-table h2 {
    background: #4338ca;
    color: white;
    padding: 16px 20px;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.papan-table table {
    width: 100%;
    border-collapse: collapse;
}

.papan-table th {
    background: #f1f5f9;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.papan-table td {
    padding: 12px 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.papan-table tr.new-row {
    background: linear-gradient(90deg, #fef3c7 0%, transparent 60%);
    font-weight: 700;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   SCAN / KIOSK — FULL SCREEN
   ============================================================ */
.ktp-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}
.ktp-modal.active { display: flex; }

.ktp-modal-content {
    background: white;
    border-radius: 20px;
    padding: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
}

.ktp-modal h2 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.ktp-video-wrap {
    position: relative;
    width: 100%;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16/10;
}

#ktpVideo, #ktpPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ktp-frame {
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    bottom: 10%;
    border: 3px dashed #10b981;
    border-radius: 12px;
    pointer-events: none;
}

.ktp-frame::before {
    content: "📷 Posisikan KTP di dalam kotak";
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.ktp-modal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ktp-modal-buttons .btn {
    flex: 1;
    min-width: 140px;
    padding: 14px;
    font-size: 1rem;
    min-height: 50px;
}

.ktp-status {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}
.ktp-status.active { display: block; }
.ktp-status.info { background: #dbeafe; color: #1e40af; }
.ktp-status.success { background: #d1fae5; color: #065f46; }
.ktp-status.error { background: #fee2e2; color: #991b1b; }

.ktp-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
    display: none;
}
.ktp-progress.active { display: block; }

.ktp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    width: 0%;
    transition: width 0.3s;
}

.ktp-tips {
    background: #fef3c7;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #92400e;
    margin-top: 12px;
    border-left: 4px solid #f59e0b;
}

.btn-scan-ktp {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    min-height: 56px;
    margin-bottom: 20px;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-scan-ktp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
    .papan-grid {
        grid-template-columns: 1fr;
    }
    .stat-column {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 20px 16px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.15rem; }
    .page-header { gap: 12px; }
    .menu-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .menu-card { padding: 24px 16px; min-height: 150px; }
    .menu-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
    .menu-card .title { font-size: 1rem; }
    .menu-card .desc { font-size: 0.78rem; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-icon { font-size: 1.5rem; }
    .stat-info h3 { font-size: 1.4rem; }
    .stat-info p { font-size: 0.7rem; }
    .action-cell { flex-direction: column; }
    .action-cell .btn,
    .action-cell form { width: 100%; }
    .action-cell .btn { width: 100%; }
    .papan-header h1 { font-size: 1.5rem; }
    .papan-header p { font-size: 0.95rem; }
    .stat-big h2 { font-size: 1.8rem; }
    .calon-grid { grid-template-columns: 1fr; }
    .btn { padding: 10px 18px; font-size: 0.88rem; min-height: 42px; }
    .btn-block { padding: 14px; font-size: 1rem; min-height: 48px; }
}

@media (max-width: 600px) {
    .top-header {
        padding: 12px 16px;
    }
    .top-header-brand {
        font-size: 1rem;
    }
    .top-header-user .user-name {
        font-size: 0.8rem;
    }
    .btn-logout-mini {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .btn-back {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}