:root {
    --primary: #4F46E5;
    --primary-light: #EEF2FF;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-heading: #1E293B;
    --text-body: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

body {
    background-color: var(--bg-page);
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.min-vh-100 {
    min-height: 100vh;
}

.container {
    animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.timer-warning {
    font-family: 'Courier New', monospace;
    color: var(--warning);
    font-weight: bold;
}

.timer-danger {
    font-family: 'Courier New', monospace;
    color: var(--danger);
    font-weight: bold;
    animation: pulse 1s infinite;
}

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

#questionPalette .btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    padding: 0;
    border-radius: var(--radius);
}

#questionContainer .form-check {
    cursor: pointer;
    transition: background-color 0.2s;
}

#questionContainer .form-check:hover {
    background-color: var(--primary-light) !important;
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.btn {
    border-radius: calc(var(--radius) - 4px);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.navbar {
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    background: rgba(79,70,229,0.95) !important;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-heading);
}

.option-row .btn-outline-danger {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@media (max-width: 767px) {
    #questionPalette {
        flex-direction: row;
        overflow-x: auto;
    }
    #questionPalette .btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
