/* ============================================
   Ramadan Quiz - Main Stylesheet
   ============================================ */

:root {
    --ramadan-gold: #d4a843;
    --ramadan-dark-gold: #b8922e;
    --ramadan-deep-blue: #0a1628;
    --ramadan-navy: #0f2042;
    --ramadan-purple: #1a0533;
    --ramadan-green: #1b5e20;
    --ramadan-light-green: #4caf50;
    --ramadan-star: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override Bootstrap dark text colors for our dark theme */
.text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--ramadan-deep-blue) 0%, var(--ramadan-navy) 40%, var(--ramadan-purple) 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Stars Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 250px 20px, #fff, transparent),
        radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 350px 50px, #fff, transparent),
        radial-gradient(1px 1px at 400px 30px, rgba(255,255,255,0.8), transparent);
    background-size: 400px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Ramadan Decorations */
.ramadan-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.lantern {
    position: absolute;
    font-size: 2rem;
    color: var(--ramadan-gold);
    animation: float 3s ease-in-out infinite;
    opacity: 0.3;
}

.lantern-1 { top: 10%; right: 5%; animation-delay: 0s; }
.lantern-2 { top: 20%; left: 8%; animation-delay: 1s; }
.lantern-3 { top: 5%; right: 30%; animation-delay: 2s; font-size: 1.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Login Page */
.login-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .moon-icon {
    font-size: 4rem;
    color: var(--ramadan-gold);
    display: block;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(212,168,67,0.5); }
    100% { text-shadow: 0 0 30px rgba(212,168,67,0.8), 0 0 60px rgba(212,168,67,0.4); }
}

.login-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ramadan-gold);
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* Form Styles */
.form-floating {
    margin-bottom: 1rem;
}

.form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--ramadan-gold);
    box-shadow: 0 0 0 0.25rem rgba(212,168,67,0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-control:disabled,
.form-control[readonly] {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    opacity: 1;
}

.form-select {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-family: 'Tajawal', sans-serif;
}

.form-select:focus {
    background-color: rgba(255,255,255,0.15);
    border-color: var(--ramadan-gold);
    box-shadow: 0 0 0 0.25rem rgba(212,168,67,0.25);
    color: #fff;
}

.form-select option {
    background: #1a0a2e;
    color: #fff;
    padding: 0.5rem;
}

.form-floating label {
    color: rgba(255,255,255,0.6);
    font-family: 'Tajawal', sans-serif;
}

/* Buttons */
.btn-ramadan {
    background: linear-gradient(135deg, var(--ramadan-gold), var(--ramadan-dark-gold));
    color: var(--ramadan-deep-blue);
    border: none;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-ramadan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,168,67,0.4);
    color: var(--ramadan-deep-blue);
}

.btn-ramadan:active {
    transform: translateY(0);
}

.btn-ramadan-outline {
    background: transparent;
    color: var(--ramadan-gold);
    border: 2px solid var(--ramadan-gold);
    border-radius: 12px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ramadan-outline:hover {
    background: var(--ramadan-gold);
    color: var(--ramadan-deep-blue);
}

/* Alert Messages */
.alert-ramadan {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-success-ramadan {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.alert-danger-ramadan {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Waiting Payment */
.waiting-payment {
    text-align: center;
    padding: 3rem 1rem;
}

.waiting-payment .icon {
    font-size: 4rem;
    color: var(--ramadan-gold);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.waiting-payment h3 {
    color: var(--ramadan-gold);
    margin-bottom: 1rem;
}

.waiting-payment p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* Quiz Styles */
.quiz-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding-top: 2rem;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-header h2 {
    color: var(--ramadan-gold);
    font-weight: 800;
    font-size: 1.8rem;
}

.progress-bar-container {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    height: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--ramadan-gold), var(--ramadan-dark-gold));
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
}

.question-counter {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.question-card {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.8;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--ramadan-gold);
    color: var(--ramadan-deep-blue);
    border-radius: 50%;
    font-weight: 800;
    margin-left: 10px;
    font-size: 0.9rem;
}

/* Answer Options */
.answer-option {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-option:hover {
    background: rgba(212,168,67,0.1);
    border-color: var(--ramadan-gold);
    transform: translateX(-5px);
}

.answer-option.selected {
    background: rgba(212,168,67,0.15);
    border-color: var(--ramadan-gold);
}

.answer-option.correct {
    background: rgba(76,175,80,0.2);
    border-color: #4caf50;
}

.answer-option.wrong {
    background: rgba(244,67,54,0.2);
    border-color: #f44336;
}

.answer-option .option-letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-option.selected .option-letter {
    background: var(--ramadan-gold);
    color: var(--ramadan-deep-blue);
}

.answer-option.correct .option-letter {
    background: #4caf50;
    color: #fff;
}

.answer-option.wrong .option-letter {
    background: #f44336;
    color: #fff;
}

.answer-option .option-text {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Result Page */
.result-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.result-icon.success {
    color: #4caf50;
    animation: celebrateIcon 1s ease-in-out;
}

.result-icon.fail {
    color: #ff9800;
}

@keyframes celebrateIcon {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.result-title.success { color: #4caf50; }
.result-title.fail { color: #ff9800; }

.result-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ramadan-gold);
    margin: 1rem 0;
}

.result-message {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Lucky Wheel */
.wheel-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.wheel-title {
    color: var(--ramadan-gold);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto 2rem;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 2.5rem;
    color: var(--ramadan-gold);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

#wheelCanvas {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212,168,67,0.3), 0 0 60px rgba(212,168,67,0.1);
}

.spin-btn {
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    font-size: 1.3rem;
}

/* Navbar */
.navbar-ramadan {
    background: rgba(10,22,40,0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.navbar-ramadan .navbar-brand {
    color: var(--ramadan-gold) !important;
    font-weight: 800;
    font-size: 1.3rem;
}

.navbar-ramadan .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-ramadan .nav-link:hover {
    color: var(--ramadan-gold) !important;
}

.navbar-ramadan .nav-link.active {
    color: var(--ramadan-gold) !important;
}

.user-badge {
    background: rgba(212,168,67,0.15);
    border: 1px solid var(--ramadan-gold);
    color: var(--ramadan-gold);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer */
.footer-ramadan {
    background: rgba(10,22,40,0.8);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Admin Panel Styles
   ============================================ */

.admin-sidebar {
    background: rgba(10,22,40,0.95);
    min-height: 100vh;
    border-left: 1px solid var(--glass-border);
    padding: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 260px;
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.admin-sidebar .sidebar-header h4 {
    color: var(--ramadan-gold);
    font-weight: 800;
    margin: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .nav-link:hover {
    background: rgba(212,168,67,0.1);
    color: var(--ramadan-gold) !important;
}

.admin-sidebar .nav-link.active {
    background: rgba(212,168,67,0.15);
    color: var(--ramadan-gold) !important;
    border-right: 3px solid var(--ramadan-gold);
}

.admin-content {
    margin-right: 260px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.admin-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--ramadan-gold);
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-card .stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* Admin Table */
.table-ramadan {
    color: #fff;
}

.table-ramadan thead th {
    background: rgba(212,168,67,0.15);
    color: var(--ramadan-gold);
    border-bottom: 2px solid var(--ramadan-gold);
    font-weight: 700;
    padding: 1rem;
    white-space: nowrap;
}

.table-ramadan tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
}

.table-ramadan tbody tr:hover {
    background: rgba(212,168,67,0.05);
}

/* Badge */
.badge-gold {
    background: rgba(212,168,67,0.2);
    color: var(--ramadan-gold);
    border: 1px solid var(--ramadan-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-success-custom {
    background: rgba(76,175,80,0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-danger-custom {
    background: rgba(244,67,54,0.2);
    color: #f44336;
    border: 1px solid #f44336;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-warning-custom {
    background: rgba(255,152,0,0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Modal */
.modal-ramadan .modal-content {
    background: var(--ramadan-navy);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: #fff;
}

.modal-ramadan .modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-ramadan .modal-header .modal-title {
    color: var(--ramadan-gold);
    font-weight: 700;
}

.modal-ramadan .btn-close {
    filter: invert(1);
}

.modal-ramadan .modal-footer {
    border-top: 1px solid var(--glass-border);
}

/* Confetti effect for winner */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    /* When sidebar is shown on mobile, make it overlay */
    .admin-sidebar.show {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 1060;
        overflow-y: auto;
        animation: slideIn 0.3s ease;
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Make tables horizontally scrollable on mobile */
.table-responsive-ramadan {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wheel-wrapper {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
    }
    
    #wheelCanvas {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
    }
    
    .login-logo h1 {
        font-size: 1.5rem;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
        display: none;
    }
    
    .admin-sidebar.show {
        display: block;
    }
    
    .admin-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .result-score {
        font-size: 2.5rem;
    }
    
    .glass-card {
        padding: 1.2rem;
    }
    
    .admin-card {
        padding: 1rem;
    }
    
    .wheel-title {
        font-size: 1.4rem;
    }
    
    .spin-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-ramadan .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .navbar-ramadan .navbar-brand {
        font-size: 1.1rem;
    }
    
    .user-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-message {
        font-size: 1rem;
    }
    
    .quiz-header h2 {
        font-size: 1.4rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-card .stat-icon {
        font-size: 2rem;
    }
    
    .waiting-payment .icon {
        font-size: 3rem;
    }
    
    .btn-ramadan, .btn-ramadan-outline {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .table-ramadan thead th {
        font-size: 0.8rem;
        padding: 0.6rem 0.5rem;
        white-space: nowrap;
    }
    
    .table-ramadan tbody td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .sidebar-toggle-btn {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .wheel-wrapper {
        max-width: 260px;
    }
    
    #wheelCanvas {
        max-width: 260px;
    }
    
    .main-container {
        padding: 1rem 0.5rem;
    }
    
    .glass-card {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .login-logo .moon-icon {
        font-size: 3rem;
    }
    
    .login-logo h1 {
        font-size: 1.3rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .answer-option {
        padding: 0.8rem 1rem;
        gap: 0.7rem;
    }
    
    .answer-option .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    
    .answer-option .option-text {
        font-size: 0.95rem;
    }
    
    .result-score {
        font-size: 2rem;
    }
    
    .result-title {
        font-size: 1.3rem;
    }
    
    .quiz-header h2 {
        font-size: 1.2rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .badge-gold, .badge-success-custom, .badge-danger-custom, .badge-warning-custom {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Sidebar toggle button (mobile only) */
.sidebar-toggle-btn {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ramadan-gold);
    color: var(--ramadan-deep-blue);
    border: none;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
    cursor: pointer;
}

/* Responsive flex helpers */
.flex-wrap-mobile {
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .admin-sidebar {
        display: block !important;
    }
}

/* Loading Spinner */
.spinner-ramadan {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212,168,67,0.2);
    border-top-color: var(--ramadan-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Correct/Wrong Animation */
.answer-feedback {
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.answer-feedback .feedback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.answer-feedback.correct .feedback-icon { color: #4caf50; }
.answer-feedback.wrong .feedback-icon { color: #f44336; }

/* Disabled state */
.answer-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Instructions Box */
.instructions-box {
    background: rgba(212,168,67,0.08);
    border: 1px solid rgba(212,168,67,0.25);
    border-radius: 15px;
    padding: 1.2rem 1.5rem;
}

.instructions-box h6 {
    font-weight: 700;
}

.instructions-list {
    color: rgba(255,255,255,0.8);
    padding-right: 1.2rem;
    margin: 0;
    line-height: 2;
    font-size: 0.95rem;
}

.instructions-list li {
    margin-bottom: 0.3rem;
}

.instructions-list li::marker {
    color: var(--ramadan-gold);
    font-weight: 700;
}

/* Scroll bar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--ramadan-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ramadan-dark-gold);
}
