/* ==============================================================================
   FUDMA GST Digital Learning & CBT Assessment Platform (GST-DLAP)
   Custom Stylesheet
   ============================================================================== */

:root {
    --primary-color: #0b6623;       /* FUDMA University Forest Green */
    --primary-hover: #084c1a;
    --primary-light: #e8f5e9;
    --secondary-color: #1a5276;
    --accent-gold: #d4ac0d;
    --dark-bg: #1c2833;
    --card-border-radius: 12px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    color: #2c3e50;
    min-height: 100vh;
}

/* University Navbar */
.navbar-fudma {
    background: linear-gradient(135deg, #0b6623 0%, #064016 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-badge {
    background-color: #d4ac0d;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Card Styling */
.card-custom {
    border: none;
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.card-custom:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-header-fudma {
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-light);
    font-weight: 600;
}

/* Progress bars */
.progress-fudma {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar-fudma {
    background: linear-gradient(90deg, #0b6623 0%, #27ae60 100%);
}

/* CBT Exam Room Distraction-Free Layout */
.cbt-container {
    max-width: 1300px;
    margin: 0 auto;
}

.cbt-header {
    background: #1e293b;
    color: #ffffff;
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.timer-box {
    background: #0f172a;
    border: 2px solid #334155;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timer-box.warning {
    color: #fbbf24;
    border-color: #fbbf24;
    animation: pulse 1.5s infinite;
}

.timer-box.danger {
    color: #ef4444;
    border-color: #ef4444;
    animation: pulse 0.8s infinite;
}

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

/* Question Palette Buttons */
.q-palette-btn {
    width: 42px;
    height: 42px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    border: 2px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.q-palette-btn:hover {
    border-color: #0b6623;
}

.q-palette-btn.active {
    border-color: #0b6623;
    box-shadow: 0 0 0 3px rgba(11, 102, 35, 0.3);
    font-weight: 800;
}

.q-palette-btn.answered {
    background-color: #0b6623;
    color: #ffffff;
    border-color: #0b6623;
}

.q-palette-btn.flagged {
    background-color: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
}

.q-palette-btn.answered.flagged {
    background: linear-gradient(135deg, #0b6623 50%, #f59e0b 50%);
    color: #ffffff;
}

/* Exam Question Option Cards */
.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-card:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.option-card.selected {
    border-color: #0b6623;
    background-color: #f0fdf4;
    box-shadow: 0 2px 8px rgba(11, 102, 35, 0.15);
}

.option-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.option-card.selected .option-badge {
    background-color: #0b6623;
    color: #ffffff;
}

/* Sync status badge */
.sync-indicator {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Result Slip Print */
@media print {
    body {
        background: #ffffff !important;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .result-slip-card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
    }
}
