/* --- Core Theme Styles --- */
body {
    background-color: #0f172a; /* Deep Dark Blue/Black */
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quiz-container {
    background-color: #1e293b; /* Slightly lighter navy for cards */
    border-radius: 1.5rem;
    border: 1px solid #334155;
}

/* --- Badge & Section Styles --- */
.bg-primary {
    background-color: #3b82f6 !important;
}

.text-info {
    color: #7dd3fc !important; /* Brighter cyan for better readability */
}

/* --- Radio Button & Label Customization --- */
/* This styles the label when the hidden radio (btn-check) is NOT checked */
.option-grid .btn-outline-secondary {
    color: #94a3b8;
    border: 1px solid #334155;
    background-color: #0f172a;
    transition: all 0.2s ease-in-out;
    padding: 12px 20px;
    font-size: 0.95rem;
}

/* Hover state */
.option-grid .btn-outline-secondary:hover {
    border-color: #38bdf8;
    color: #fff;
    background-color: rgba(56, 189, 248, 0.1);
}

/* State when the option is SELECTED */
.btn-check:checked + .btn-outline-secondary {
    background-color: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #0f172a !important; /* Dark text for contrast */
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* --- Submit Button (Gradient) --- */
.btn-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    border: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

/* --- Result Card --- */
.bg-dark-soft {
    background-color: #0f172a;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 { font-size: 2.5rem; }
    .quiz-container { padding: 1.5rem !important; }
}





.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #00d4ff; /* Neon accent color */
    
    display: none; /* Controlled by JS */
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 12px;
}

.scroll-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.scroll-btn svg {
    width: 100%;
    height: 100%;
}


.scroll-btn {
    /* ... existing styles ... */
    opacity: 0; /* Start invisible */
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
