/* ============================================================
   SISTEM UJIAN ONLINE — SMP NEGERI 1 BUKATEJA
   Custom Styles
   ============================================================ */

/* --- General --- */
body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Card Enhancements --- */
.card {
    border: none;
    border-radius: 12px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* --- Stat Cards --- */
.stat-card {
    border-left: 4px solid;
    border-radius: 12px;
}

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

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* --- Table Enhancements --- */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* --- Form Styles --- */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* --- Navbar --- */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1rem;
}

/* --- Badge --- */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* --- Exam Browser --- */
.exam-container {
    max-width: 900px;
    margin: 0 auto;
}

.exam-question {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.exam-question .q-number {
    background: #0d6efd;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 12px;
}

.exam-question .q-type {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-question .q-poin {
    background: #e9ecef;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #495057;
}

.exam-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 12px 20px;
    min-width: 140px;
}

.exam-timer.warning {
    border: 2px solid #ffc107;
}

.exam-timer.danger {
    border: 2px solid #dc3545;
    animation: pulse 1s infinite;
}

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

.exam-timer .timer-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* --- Login Page --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --- Pilihan Jawaban --- */
.pilihan-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.pilihan-item:hover {
    border-color: #0d6efd;
    background: #f8f9ff;
}

.pilihan-item.selected {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.pilihan-item input[type="radio"],
.pilihan-item input[type="checkbox"] {
    margin-right: 12px;
}

/* --- Alert --- */
.alert {
    border-radius: 10px;
    border: none;
}

/* --- Button --- */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-lg {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.4rem;
    }
    
    .exam-timer {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 16px;
        text-align: center;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
