/* ========== MODERN CSS FOR QUIZ PLATFORM ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fc 0%, #eef2f8 100%);
    color: #1e293b;
    line-height: 1.5;
    min-height: 100vh;

    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#cbd5e1 0.5px, transparent 0.5px);
    background-size: 25px 25px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== HEADER SECTION ===== */
.quiz-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.quiz-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border-radius: 8px;
    padding: 5px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #4f46e5, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.header-title .highlight {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.header-sub {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 800px) {
    .header-title {
        font-size: 1.6rem;
    }

    .container {
        max-width: 700px;
        margin: .5rem 1rem;
    }
}


/* ===== QUIZ SELECTION SECTION ===== */
.quiz-selection-section {
    background: transparent;
    margin-bottom: 1.5rem;
}

.selection-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a47aa;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.quiz-card-select {
    background: white;
    border-radius: 14px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-card-select:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
    border-color: #8b5cf6;
}

.quiz-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.quiz-info {
    flex: 1;
}

.quiz-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.quiz-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
}

.quiz-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: #8b5cf6;
    font-weight: 600;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}


@media (max-width: 800px) {

    .quiz-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


@media (max-width: 480px) {
    .quiz-grid {
        grid-template-columns: 1fr;

    }

    .quiz-card-select {
        padding: 1rem;
    }

    .quiz-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== STATS BANNER ===== */
.stats-banner {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.3);
    color: white;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1rem;
}

@media (max-width: 480px) {
    .stats-banner {
        justify-content: center;
        gap: 16px;
        padding: 12px 1rem;
    }

    .stat-item {
        font-size: 0.9rem;
    }
}

/* ===== QUIZ WRAPPER ===== */
.quiz-wrapper {
    margin-bottom: 1.5rem;
    /* max-width: 700px;
    margin: .5rem auto 2rem auto; */
}

/* ===== QUIZ CARD ===== */
.quiz-card,
.result-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.quiz-card:hover,
.result-card:hover {
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}

/* Progress Section */
.progress-section {
    padding: 1.2rem 1.5rem 0.5rem 1.5rem;
}

.question-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 10px;
}

.question-counter .current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4f46e5;
}

.progress-bar-container {
    background: #e2e8f0;
    border-radius: 12px;
    height: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    width: 0%;
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

/* Question Section */
.question-section {
    padding: 0.3rem 1.5rem;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    text-align: justify;
}

@media (max-width: 800px) {
    .progress-section {
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .question-section {
        padding: 0.3rem 1.2rem;
    }

    .question-text {
        font-size: 1.2rem;
    }
}

/* Options Section */
.options-section {
    padding: .4rem 1.5rem;
    display: flex;
    flex-direction: row;
    gap: 10px;

    flex-wrap: wrap;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    min-width: 350px;
    margin: .1rem auto;
    flex-basis: 1;

}

.option-btn:hover {
    transform: translateY(-1px);
    background: #f1f5f9;
    border-color: #8b5cf6;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.08);
}

.option-letter {
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #4f46e5;
    transition: all 0.2s;
}

.option-btn:hover .option-letter {
    background: #8b5cf6;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1.1rem;
}

/* Option States */
.option-btn.selected {
    background: #eef2ff;
    border-color: #8b5cf6;
}

.option-btn.selected .option-letter {
    background: #8b5cf6;
    color: white;
}

.option-btn.correct {
    background: #e8f5e9;
    border-color: #4caf50;
    cursor: default;
}

.option-btn.correct .option-letter {
    background: #4caf50;
    color: white;
}

.option-btn.wrong {
    background: #ffebee;
    border-color: #ef4444;
    cursor: default;
}

.option-btn.wrong .option-letter {
    background: #ef4444;
    color: white;
}

.option-btn.disabled {
    cursor: default;
    opacity: 0.9;
}

@media (max-width: 800px) {
    .options-section {
        padding: 0.2rem 1rem;
        gap: 8px;
    }

    .option-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        gap: 4px;
        min-width: 280px;
        width: 100%;
    }

    .option-letter {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
}

/* Feedback Section */
.feedback-section {
    margin: 0 1.5rem 1rem 1.5rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, #31313a, #403f41);
    border-radius: 14px;
    border-left: 6px solid #e24545;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: feedbackPop 0.3s ease;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

@keyframes feedbackPop {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-icon {
    font-size: 1.5rem;
    min-width: 32px;
}

.feedback-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 500;
    text-align: justify;
}

@media (max-width: 800px) {
    .feedback-section {
        margin: 0 1rem 0.8rem 1rem;
        padding: 10px 14px;
    }

    .feedback-icon {
        font-size: 1.3rem;
        min-width: 28px;
    }

    .feedback-message {
        font-size: 0.95rem;
    }
}

/* Navigation Section */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem 1.2rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: #4f46e5;
    transition: all 0.25s ease;
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.4);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-center {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.question-indicator {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 18px;
}

@media (max-width: 480px) {
    .navigation-section {
        padding: 0.8rem 1rem 1rem 1rem;
    }

    .nav-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        gap: 4px;
    }

    .nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .question-indicator {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

/* Result Card */
.result-card {
    text-align: center;
    padding: 1.8rem;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.result-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.result-score {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    border-radius: 14px;
    padding: 0.8rem;
    margin: 1rem 0;
    color: white;
}

.score-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.score-out,
.score-total {
    font-size: 1rem;
    font-weight: 500;
}

.result-message {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1rem;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: #f1f5f9;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    text-align: center;
    min-width: 70px;
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4f46e5;
}

.stat-symbol {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4f46e5;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.restart-btn,
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.restart-btn {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.4);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.5);
}

.back-btn {
    background: #f1f5f9;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
}

.back-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .result-card {
        padding: 1.2rem;
    }

    .result-title {
        font-size: 1.2rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .result-stats {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .stat-box {
        padding: 0.6rem 0.8rem;
        min-width: 60px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .restart-btn,
    .back-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animation for question transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.3s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    border-radius: 10px;
}


/* ==================== QUESTION IMAGE RESPONSIVE STYLES ==================== */

.question-image-wrapper {
    text-align: center;
    margin: 18px 0 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.question-image {
    max-width: 100%;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* ==================== MOBILE DEVICES ==================== */
@media (max-width: 576px) {
    .question-image-wrapper {
        margin: 15px 0 18px 0;
        padding: 8px;
        border-radius: 10px;
    }

    .question-image {
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    /* Make image slightly smaller on very small phones */
    .question-image {
        max-height: 260px;
        object-fit: contain;
    }
}

/* ==================== TABLET DEVICES ==================== */
@media (min-width: 577px) and (max-width: 992px) {
    .question-image-wrapper {
        margin: 20px 0 25px 0;
        padding: 12px;
    }

    .question-image {
        max-height: 340px;
        object-fit: contain;
    }
}

/* ==================== LARGE SCREENS (Optional) ==================== */
@media (min-width: 993px) {
    .question-image-wrapper {
        padding: 15px;
    }

    .question-image {
        max-height: 420px;
    }
}

/* Hover effect on larger screens */
@media (hover: hover) {
    .question-image {
        transition: transform 0.3s ease;
    }

    .question-image-wrapper:hover .question-image {
        transform: scale(1.02);
    }
}




/* ==================== IMPROVED MCQ OPTION STYLE ==================== */
/* .option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin: 10px 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 58px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.option-letter {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #2c3e50;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #2c3e50;
} */

/* Selected & Correct/Wrong States */
/* .option-btn.selected {
    border-color: #3498db;
    background: #f0f8ff;
}

.option-btn.correct {
    border-color: #2ecc71;
    background: #f0fdf4;
}

.option-btn.wrong {
    border-color: #e74c3c;
    background: #fdf2f2;
} */

/* Responsive */
/* @media (max-width: 576px) {
    .option-btn {
        padding: 14px 16px;
        margin: 8px 0;
        min-height: 54px;
    }

    .option-letter {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .option-text {
        font-size: 1rem;
    }
} */



/* .reset-quiz-btn {
        background-color: #ff4444;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: 0.3s;
    }
    
    .reset-quiz-btn:hover {
        background-color: #cc0000;
        transform: scale(1.05);
    } */


/* Modern Color Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    --secondary-gradient: linear-gradient(135deg, #A8E6CF 0%, #FFD93D 100%);
    --danger-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --success-gradient: linear-gradient(135deg, #11998E 0%, #38EF7D 100%);
    --dark-bg: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
}

/* Modal Container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.25s ease;
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-gradient);
    padding: 0;
    border-radius: var(--border-radius);
    width: 85%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Modal Inner Container */
.modal-inner {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

/* Warning Icon */
.warning-icon {
    font-size: 56px;
    margin-bottom: var(--spacing-xs);
    animation: shake 0.4s ease;
    display: inline-block;
}

/* Title */
.modal-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--spacing-xs);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: -0.5px;
}

/* Message */
.modal-message {
    font-size: 15px;
    color: #5a5c69;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Button Container */
.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Button Styles */
.btn {
    padding: 10px 24px;
    font-size: 14px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
}

.btn-cancel {
    background: #f0f2f5;
    color: #6c757d;
    border: 1px solid #e4e6eb;
}

.btn-cancel:hover {
    background: #e4e6eb;
    transform: translateY(-1px);
    color: #495057;
}

.btn-reset {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-reset:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

/* Success Modal */
.success-modal .modal-inner {
    background: linear-gradient(135deg, #ed29cc 0%, #16e116 100%);
}

.success-modal .modal-title,
.success-modal .modal-message {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.success-modal .warning-icon {
    font-size: 56px;
    margin-bottom: 4px;
}

.success-modal .btn-ok {
    background: white;
    color: #764ba2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-ok {
    padding: 10px 32px;
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.btn-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 153, 142, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -55%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Responsive Design */
@media (max-width: 800px) {
    .modal-content {
        width: 90%;
        max-width: 360px;
    }

    .modal-inner {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .warning-icon {
        font-size: 48px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-message {
        font-size: 14px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 92%;
        max-width: 320px;
    }

    .modal-inner {
        padding: 14px 12px;
    }

    .warning-icon {
        font-size: 44px;
        margin-bottom: 4px;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .modal-message {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .modal-buttons {
        gap: 8px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 420px;
    }

    .modal-inner {
        padding: 20px 18px;
    }
}

/* Test Button Style - Modern Gradient */
.test-reset-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.5px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.test-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%);
}

.test-reset-btn:active {
    transform: translateY(0px);
}



/* Optional: Add Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');