/* Modern CBT Design System */
:root {
    --primary: #1e40af;
    --primary-hover: #1d4ed8;
    --secondary: #0f172a;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --purple: #9333ea;
    --gray-bg: #f8fafc;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}

/* NTA CBT Question Palette Styles */
.palette-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    border: 1px solid transparent;
}

.palette-btn:hover {
    transform: scale(1.08);
}

/* Not Visited: Light gray with border */
.q-not-visited {
    background-color: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

/* Not Answered: Red / Coral */
.q-not-answered {
    background-color: #ef4444;
    color: #ffffff;
}

/* Answered: Green */
.q-answered {
    background-color: #22c55e;
    color: #ffffff;
}

/* Marked for Review: Purple */
.q-marked-review {
    background-color: #a855f7;
    color: #ffffff;
    border-radius: 50%;
}

/* Answered & Marked for Review: Purple with green dot indicator */
.q-answered-marked {
    background-color: #a855f7;
    color: #ffffff;
    border-radius: 50%;
    position: relative;
}

.q-answered-marked::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background-color: #22c55e;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
}

/* Active current question highlight */
.q-current {
    box-shadow: 0 0 0 3px #2563eb, 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

/* Custom Radio Option Card */
.option-label {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #93c5fd;
    background-color: #f8fafc;
}

.option-label.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.option-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    margin-right: 12px;
    flex-shrink: 0;
}

.option-label.selected .option-badge {
    background-color: #2563eb;
    color: #ffffff;
}

/* Pulse animation for live updates */
@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.live-pulse {
    animation: pulse-dot 2s infinite ease-in-out;
}

/* Modal styling */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}
