/* assets/css/style.css */
/* E-Learning PPDS IPD - Custom Styles */

:root {
    --primary: #0d6efd;
    --sidebar-width: 260px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

main { flex: 1; }

/* ---- CARD ---- */
.card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border-radius: .75rem;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-weight: 600;
}

/* ---- STAT CARD (dashboard) ---- */
.stat-card {
    border-radius: 1rem;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: .85;
}

/* ---- KATEGORI BADGE ---- */
.badge-kategori {
    font-size: .7rem;
    font-weight: 600;
    padding: .3em .65em;
    border-radius: 6px;
}

/* ---- MATERI CARD ---- */
.materi-card {
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.materi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.materi-card .tipe-icon {
    font-size: 2rem;
}

/* ---- QUIZ / UJIAN ---- */
.soal-card {
    border-left: 4px solid var(--primary);
}
.pilihan-label {
    cursor: pointer;
    transition: background .15s;
    border-radius: .5rem;
    padding: .65rem 1rem;
    margin-bottom: .4rem;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.pilihan-label:hover { background: #e7f1ff; border-color: var(--primary); }
.pilihan-label input[type=radio]:checked + span { font-weight: 600; }
.pilihan-label.benar { background: #d1e7dd; border-color: #198754; }
.pilihan-label.salah  { background: #f8d7da; border-color: #dc3545; }
.pilihan-label.benar-missed { background: #fff3cd; border-color: #ffc107; }

/* ---- TIMER ---- */
#timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
#timer-display.warning { color: #dc3545; animation: pulse 1s infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* ---- PROGRESS BAR ---- */
.progress { border-radius: 10px; }
.progress-bar { border-radius: 10px; }

/* ---- PEMBAHASAN ---- */
.pembahasan-box {
    background: #f0f9ff;
    border-left: 4px solid #0dcaf0;
    border-radius: 0 .5rem .5rem 0;
    padding: 1rem 1.25rem;
    display: none;
}
.pembahasan-box.show { display: block; }

/* ---- TABEL ---- */
.table th { font-weight: 600; font-size: .875rem; }
.table td { vertical-align: middle; font-size: .875rem; }

/* ---- LOGIN / REGISTER ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #053399 100%);
}
.auth-card {
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    max-width: 480px;
    width: 100%;
}
.auth-logo { font-size: 3rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 576px) {
    .stat-card { margin-bottom: .75rem; }
    #timer-display { font-size: 1.2rem; }
}
