/* 1. IMPORT FONT MONTSERRAT */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root { 
    /* Tema Utama Post-Test: Biru UGM (Navy) */
    --ugm-primary: #003D79; 
    --ugm-primary-hover: #002d59;
    
    /* Tema sekunder/aksen: Orange Pekat */
    --ugm-orange: #D35400; 
    
    /* Tema background: Biru/Abu Sangat Lembut */
    --gform-bg: #f0f4f8; 
    --gform-border: #dce4ec;
}

body { 
    background-color: var(--gform-bg) !important; 
    /* FONT DIUBAH KE MONTSERRAT */
    font-family: 'Montserrat', sans-serif !important; 
    user-select: none; 
    overflow-x: hidden;
    color: #2C3E50;
}

input, select, button, textarea, .form-control {
    font-family: 'Montserrat', sans-serif !important;
}

#mainWrapper { transition: filter 0.4s ease; }
.swal2-container { z-index: 999999 !important; font-family: 'Montserrat', sans-serif !important; }
.is-blurred { filter: blur(12px); pointer-events: none; }

/* --- KARTU & LAYOUT FORM --- */
.gform-container { max-width: 640px; margin: 40px auto; padding: 0 15px; }

.gform-header-card {
    background: white; 
    border-radius: 12px;
    border: 1px solid var(--gform-border);
    padding: 30px 24px;
    margin-bottom: 15px;
    border-top: 8px solid var(--ugm-primary); /* Garis atas tebal khas Post-Test */
}
.gform-title { font-size: 2.2rem; color: #1a252f; line-height: 1.2; margin-bottom: 10px; font-weight: 800; letter-spacing: -0.5px;}
.gform-subtitle { font-size: 1rem; color: #5f6368; }
.gform-divider { border-bottom: 1px solid var(--gform-border); margin: 20px 0; }
.gform-required-info { font-size: 0.9rem; color: #d93025; font-weight: 500;}

.gform-card {
    background: white; border-radius: 12px;
    border: 1px solid var(--gform-border);
    padding: 24px; margin-bottom: 15px;
    transition: all 0.3s ease;
}
.gform-card:focus-within {
    box-shadow: 0 8px 15px rgba(0, 61, 121, 0.08);
    border-color: #b3cce6;
    transform: translateY(-2px);
}

.gform-label { font-size: 1.1rem; color: #2c3e50; margin-bottom: 8px; display: block; font-weight: 700; }
.gform-desc { font-size: 0.95rem; color: #5f6368; margin-bottom: 15px; }
.asterisk { color: #d93025; }

/* Kustomisasi Input Form Modern */
.custom-input { 
    border-radius: 8px; border: 2px solid #e2e8f0; 
    transition: all 0.3s ease; background-color: #f8fafc; 
    font-weight: 500;
}
.custom-input:focus { 
    border-color: var(--ugm-primary); background-color: white; 
    box-shadow: 0 0 0 0.25rem rgba(0, 61, 121, 0.15); 
}

/* =========================================================
   MEMAKSA SEMUA ELEMEN BOOTSTRAP MENJADI BIRU (POST-TEST)
========================================================== */
.text-primary { color: var(--ugm-primary) !important; }
.bg-primary { background-color: var(--ugm-primary) !important; }

.btn-primary { 
    background-color: var(--ugm-primary) !important; 
    border-color: var(--ugm-primary) !important; 
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.btn-primary:hover { 
    background-color: var(--ugm-primary-hover) !important; 
    border-color: var(--ugm-primary-hover) !important; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 61, 121, 0.2);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--ugm-primary) !important;
    color: white !important;
}
.nav-pills .nav-link { color: var(--ugm-primary); font-weight: 600; }
.nav-pills .nav-link:hover { color: var(--ugm-primary-hover); background-color: rgba(0, 61, 121, 0.05); }

.btn-outline-primary { border-color: var(--ugm-primary) !important; color: var(--ugm-primary) !important; font-weight: 600; }
.btn-outline-primary:hover { background-color: var(--ugm-primary) !important; color: white !important; }

/* KOTAK JAWABAN (MODERN CARD UI) */
.gform-radio-option {
    display: flex; align-items: flex-start;
    margin-bottom: 15px; padding: 15px 20px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    cursor: pointer; transition: all 0.2s ease;
    background-color: white;
}
.gform-radio-option:hover { border-color: #b3cce6; background-color: #f8fafc; }
.gform-radio-option.selected {
    border-color: var(--ugm-primary); background-color: rgba(0, 61, 121, 0.03);
    box-shadow: 0 4px 8px rgba(0, 61, 121, 0.08);
}
.gform-radio-circle { width: 24px; height: 24px; border: 2px solid #cbd5e1; border-radius: 50%; margin-right: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s ease; margin-top: 2px; }
.gform-radio-option.selected .gform-radio-circle { border-color: var(--ugm-primary); }
.gform-radio-option.selected .gform-radio-circle::after { content: ""; width: 14px; height: 14px; background-color: var(--ugm-primary); border-radius: 50%; }

/* GRID NAVIGASI SOAL */
.nav-grid-btn {
    width: 42px; height: 42px;
    border-radius: 8px; border: 2px solid #e2e8f0;
    background-color: white; color: #475569;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; font-size: 1rem;
}
.nav-grid-btn:hover { border-color: var(--ugm-orange); color: var(--ugm-orange); }
.nav-grid-btn.answered { background-color: var(--ugm-orange); border-color: var(--ugm-orange); color: white; }
.nav-grid-btn.current { 
    border-color: var(--ugm-primary); color: var(--ugm-primary); 
    box-shadow: 0 0 0 4px rgba(0, 61, 121, 0.15); 
    transform: scale(1.1); z-index: 2;
}
.nav-grid-btn.answered.current { background-color: var(--ugm-orange); color: white; border-color: var(--ugm-primary); }

#violationOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 999990; display: none; }
th.sortable { cursor: pointer; white-space: nowrap; transition: background 0.2s; }
th.sortable:hover { background-color: #e2e8f0; }
.timer-warning { background-color: #dc3545 !important; color: white !important; border-color: #ffc107 !important; animation: kedipBahaya 1s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes kedipBahaya { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.97); } }