@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    /* Deep dark blue-green */
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: #e0e0e0;
}

/* Overrides */
.text-muted {
    color: #a0aec0 !important;
}

.hero-section {
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    letter-spacing: 1px;
}

.hero-section p {
    color: #b0c4de;
    font-size: 1.2rem;
}

/* Card Styling */
.quiz-mode-card {
    background: rgba(30, 40, 45, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

.quiz-mode-card:hover {
    transform: translateY(-8px);
    background: rgba(46, 139, 87, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(46, 139, 87, 0.5);
}

.card-icon {
    font-size: 3.5rem;
    color: #8fce00;
    /* Softer Green Accent */
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(143, 206, 0, 0.3));
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-text {
    color: #a0aec0 !important;
}

/* Quiz Container */
.quiz-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(25, 35, 40, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Option Buttons */
.option-btn {
    text-align: left;
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #d1d5db;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1.1rem;
}

@media (hover: hover) {
    .option-btn:hover:not(:disabled) {
        background: rgba(46, 139, 87, 0.15);
        border-color: #3cb371;
        color: white;
        transform: translateX(4px);
    }
}

.option-btn.selected {
    background: rgba(46, 139, 87, 0.25);
    border: 2px solid #3cb371;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(60, 179, 113, 0.2);
}

.option-btn.correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #4ade80;
}

.option-btn.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 2.5rem;
}

.progress-bar {
    background: linear-gradient(90deg, #3cb371, #2e8b57);
    box-shadow: 0 0 10px rgba(60, 179, 113, 0.4);
}

/* Buttons */
.btn-primary,
.btn-success,
.btn-info,
.btn-warning {
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #052c18;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.3);
}

.btn-info {
    background: #4a6fa5;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f09819 0%, #edde5d 100%);
    color: #5c4e00;
    box-shadow: 0 4px 15px rgba(240, 152, 25, 0.3);
}

.btn:disabled {
    background: #2d3748;
    color: #718096;
    box-shadow: none;
    border: 1px solid transparent;
}

/* Results */
.result-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 4px solid #f87171;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.result-summary-card .alert {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.result-summary-card .text-dark {
    color: #ffffff !important;
}

#result-container h2 {
    color: #ffffff;
}

.hidden {
    display: none !important;
}

#result-container {
    display: none;
}

/* Modal Customization */
.modal-content {
    background: rgba(30, 40, 45, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: #ffffff;
    font-weight: 700;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body .btn-outline-primary {
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.modal-body .btn-outline-primary:hover {
    background: rgba(46, 139, 87, 0.3);
    border-color: #3cb371;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}