/* PrepBoss Custom CSS */

/* Color Variables */
:root {
    --dark-bg: #000000;
    --accent-gold: #ffc107;
    --light-text: #ffffff;
    --gray-bg: #222222;
    --light-gray: #444444;
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.text-gold { color: #ffc107 !important; }
.btn-gold {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}
.btn-gold:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}
.btn-outline-gold {
    color: #ffc107;
    border-color: #ffc107;
}
.btn-outline-gold:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}
.border-gold { border-color: #ffc107 !important; }
.bg-gold { background-color: #ffc107 !important; }

/* Fresh Flashcard Styles */
.flashcard-study-container {
    perspective: 1000px;
    height: 450px;
    margin: 20px 0;
}

.flashcard-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
    cursor: pointer;
    border-radius: 15px;
}

.flashcard-3d.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    justify-content: flex-start;
    padding: 15px;
    overflow: hidden;
}

/* Mobile-specific flashcard back optimizations */
@media (max-width: 768px) {
    .flashcard-back {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }

    /* Ensure all content in flashcard back is properly contained */
    .flashcard-back * {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.flashcard-3d:hover {
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.3);
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Enhanced flashcard front question styling */
.flashcard-front .question-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-height: 200px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.options-preview {
    margin: 20px 0;
}

.option-line {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--accent-gold);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.answer-details {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 6px;
    margin-right: -6px;
    max-height: calc(100% - 80px);
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.3;
}

.answer-details::-webkit-scrollbar {
    width: 4px;
}

.answer-details::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 2px;
}

.answer-details::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 2px;
}

.answer-details::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* Flashcard Container Layout */
.flashcard-study-container {
    position: relative;
    perspective: 1000px;
    height: 450px;
    margin: 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shuffle Button Above Card */
.flashcard-shuffle-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Navigation Arrows Container */
.flashcard-navigation-container {
    position: absolute;
    top: 50%;
    left: -60px;
    right: -60px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    pointer-events: none;
    z-index: 5;
}

/* Navigation Arrows */
.flashcard-nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background-color: var(--gray-bg);
    color: var(--light-text);
    border: 1px solid var(--light-gray);
}

.flashcard-nav-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background-color: var(--accent-gold);
    color: var(--dark-bg);
}

.flashcard-nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--gray-bg);
    color: var(--light-text);
}

.flashcard-nav-arrow:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background-color: var(--gray-bg);
    color: var(--light-text);
}

/* Flip Button Inside Card */
.flashcard-flip-button-container {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.flashcard-flip-inside {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    min-width: auto;
}

.flashcard-flip-inside:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

/* Mark Mastered Button Below Card */
.flashcard-mastered-container {
    text-align: center;
    margin-top: 20px;
}

/* Legacy flashcard controls - remove */
.flashcard-controls {
    display: none;
}

/* Flashcard Modal Styling */
#flashcardModal {
    z-index: 9999 !important;
}

#flashcardModal .modal-backdrop {
    z-index: 9998 !important;
}

#flashcardModal .modal-dialog {
    z-index: 10000 !important;
}

/* Flashcard Progress Bar */
.flashcard-progress-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.flashcard-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-weight: 600;
    color: var(--light-text);
    font-size: 1rem;
}

.progress-stats {
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
}

.progress-stats #studiedCards {
    color: var(--accent-gold);
    font-weight: 600;
}

.flashcard-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile improvements for flashcard progress */
@media (max-width: 768px) {
    .flashcard-progress-container {
        padding: 0 25px;
        margin-bottom: 25px;
    }

    .flashcard-progress-header {
        margin-bottom: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .progress-label {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .progress-stats {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .flashcard-progress-bar {
        height: 16px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
}

.flashcard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    position: relative;
}

.flashcard-progress-fill.complete {
    background: linear-gradient(90deg, #28a745, #34ce57);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.flashcard-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.flashcard-study-container {
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.flashcard-3d {
    position: relative;
    width: 100%;
    height: 400px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 15px;
}

.flashcard-3d.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    justify-content: flex-start;
    padding: 15px;
    overflow: hidden;
}

/* Mobile-specific flashcard back optimizations */
@media (max-width: 768px) {
    .flashcard-back {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }

    /* Ensure all content in flashcard back is properly contained */
    .flashcard-back * {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

.flashcard-3d:hover {
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.3);
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.question-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Enhanced flashcard front question styling */
.flashcard-front .question-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-height: 200px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.options-preview {
    margin: 20px 0;
}

.option-line {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--accent-gold);
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.answer-details {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 6px;
    margin-right: -6px;
    max-height: calc(100% - 80px);
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.3;
}

.answer-details::-webkit-scrollbar {
    width: 4px;
}

.answer-details::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 2px;
}

.answer-details::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 2px;
}

.answer-details::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

.answer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
}

.answer-letter-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: #000;
    padding: 6px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.answer-text {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--light-text);
    margin: 0;
    padding-top: 2px;
}

.answer-text-only {
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--light-text);
}

.correct-answer-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    padding: 8px 16px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}


.stat-card {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* Dashboard Flashcard Deck Improvements - Compact Design */
.flashcard-breakdown {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
    border: 1px solid rgba(255, 193, 7, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.flashcard-breakdown h6 {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.flashcard-books-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
}

.flashcard-book-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flashcard-book-item:hover {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.flashcard-book-item:last-child {
    margin-bottom: 0;
}

.book-name {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.flashcard-book-item .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}

.flashcard-book-item .progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.25rem;
}

.flashcard-book-item .progress-bar {
    background: linear-gradient(90deg, var(--accent-gold), #ffd700);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.book-card-count {
    background: var(--accent-gold);
    color: #000;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.book-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #ffd700);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.book-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.percentage-text {
    color: var(--light-text);
    font-weight: 500;
    font-size: 0.7rem;
    opacity: 0.8;
}

.avg-misses {
    color: var(--light-text);
    opacity: 0.7;
    font-size: 0.7rem;
}

/* Stat Cards Improvements */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.02) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    border-color: var(--accent-gold);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 0.8;
}

/* Dashboard Flashcard Section */
.content-card .card-body-modern {
    padding: 2rem;
}

.content-card .text-center .btn-gold {
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.content-card .text-center .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Empty state improvements */
.empty-state {
    padding: 1.5rem 1rem;
    text-align: center;
}

.empty-state i {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.empty-state h6 {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--light-text);
    opacity: 0.7;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Responsive improvements */
@media (max-width: 768px) {
    /* Modal adjustments for mobile */
    #flashcardModal .modal-dialog {
        margin: 0.5rem;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }

    #flashcardModal .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #flashcardModal .modal-body {
        flex: 1;
        overflow: hidden;
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    /* Flashcard container adjustments */
    .flashcard-study-container {
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0 20px;
    }

    .flashcard-3d {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 15px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .flashcard-back {
        padding: 12px;
    }

    /* Make question text scrollable if needed */
    .flashcard-front .question-text {
        font-size: 0.95rem;
        line-height: 1.4;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        max-height: calc(100% - 60px);
    }

    /* Make answer details scrollable */
    .answer-details {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        max-height: none;
        padding-right: 8px;
        margin-right: -8px;
    }

    /* Scrollbar styling for mobile */
    .answer-details::-webkit-scrollbar,
    .flashcard-front .question-text::-webkit-scrollbar {
        width: 4px;
    }

    .answer-details::-webkit-scrollbar-track,
    .flashcard-front .question-text::-webkit-scrollbar-track {
        background: rgba(255, 193, 7, 0.1);
        border-radius: 2px;
    }

    .answer-details::-webkit-scrollbar-thumb,
    .flashcard-front .question-text::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 2px;
    }

    .answer-details::-webkit-scrollbar-thumb:hover,
    .flashcard-front .question-text::-webkit-scrollbar-thumb:hover {
        background: #ffd700;
    }

    .answer-text-only {
        font-size: 0.85rem;
        line-height: 1.3;
        padding: 12px;
    }

    .explanation-section p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .metadata-section p {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .flashcard-breakdown {
        padding: 1rem;
    }

    .flashcard-books-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .flashcard-book-item {
        min-height: 120px;
        padding: 1rem;
    }

    .book-name {
        font-size: 0.9rem;
    }

    .book-card-count {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .book-stats {
        gap: 0.2rem;
}

    .percentage-text {
        font-size: 0.85rem;
    }

    .avg-misses {
        font-size: 0.75rem;
    }

    /* Navigation and controls positioning for mobile */
    .flashcard-navigation-container {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        pointer-events: auto;
        z-index: 5;
        gap: 20px;
        margin-bottom: 15px;
        order: 1;
    }

    .flashcard-mastered-container {
        order: 2;
        flex-shrink: 0;
    }
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

/* Button Styles */
.btn-gold {
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

/* Accordion Styles */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffc107'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.btn-gold:hover {
    background-color: #e5ac00;
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    background-color: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--dark-bg) !important;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background-color: var(--gray-bg);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.card-header {
    background-color: rgba(255, 193, 7, 0.1);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    font-weight: bold;
}

/*Navbar */
.navbar {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--accent-gold);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-text);
    font-weight: 600;
    padding: 10px 15px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-gold);
}

.navbar-dark .navbar-nav .active>.nav-link {
    color: var(--accent-gold);
}

/* Calculator Mobile Improvements */
@media (max-width: 768px) {
    #calculator-card {
        position: fixed !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        z-index: 1050 !important;
        max-height: 70vh;
        overflow-y: auto;
    }

    #calculator-card.calculator-minimized {
        max-height: 60px;
        overflow: hidden;
    }

    .calculator-buttons .btn {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-height: 44px; /* Better touch targets */
    }

    #calc-display {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px;
    }

    .calculator-drag-handle {
        padding: 12px !important;
        touch-action: manipulation;
    }
}

/* Calculator Visual Enhancements */
#calc-display {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#calc-display:focus {
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    border-color: #ffc107;
}

.calculator-buttons .btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Calculator Minimize/Maximize */
.calculator-minimized .card-body {
    display: none !important;
}

.calculator-minimized {
    max-height: 60px !important;
    overflow: hidden;
}

.calculator-toggle-btn {
    transition: all 0.2s ease;
}

.calculator-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Math Practice link styling - maximum specificity override */
.navbar-dark .navbar-nav .nav-link[href="/math_practice"],
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:hover,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:focus,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:active,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"].active {
    color: #ffc107 !important;
}

/* Target all child elements inside the Math Practice link */
.navbar-dark .navbar-nav .nav-link[href="/math_practice"] *,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:hover *,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:focus *,
.navbar-dark .navbar-nav .nav-link[href="/math_practice"]:active * {
    color: #ffc107 !important;
}

/* Specific targeting for text-gold class */
.navbar-dark .navbar-nav .nav-link .text-gold {
    color: #ffc107 !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--gray-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

/* Forms */
.form-control {
    background-color: var(--gray-bg);
    border: 1px solid var(--light-gray);
    color: var(--light-text);
    border-radius: 5px;
    padding: 12px 15px;
}

.form-control:focus {
    background-color: var(--gray-bg);
    color: var(--light-text);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-control:disabled {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
    opacity: 1;
}

.form-control.email-disabled {
    background-color: var(--gray-bg);
    color: #999999;
    border-color: #666666;
    opacity: 1;
}

.border-muted {
    border-color: #666666 !important;
}

.input-group-text.border-muted {
    background-color: var(--gray-bg) !important;
    border-color: #666666 !important;
}

/* Password toggle button styling */
.input-group-text {
    background-color: var(--gray-bg);
    border-color: #666666;
    color: var(--light-text);
}

.input-group-text:hover {
    background-color: var(--light-gray);
    color: var(--accent-gold);
    cursor: pointer;
}

#toggle-password {
    transition: all 0.2s ease;
    user-select: none;
}

#toggle-password:hover {
    background-color: var(--light-gray) !important;
    color: var(--accent-gold) !important;
}

.text-muted {
    color: #999999 !important;
}

/* Improve readability of muted text on gold/yellow backgrounds */
.alert-dark .text-muted {
    color: #000000 !important;
    opacity: 0.7;
}

/* Practice Mode */
.practice-container {
    max-width: 800px;
    margin: 0 auto;
}

.option-label.correct {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    pointer-events: none;
}

.option-label.incorrect {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    pointer-events: none;
}

.option-label.incorrect {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}

.answer-explanation {
    background-color: var(--dark-bg);
    border: 1px solid;
}

.answer-explanation .explanation-details {
    margin-left: 1.5rem;
}

.answer-explanation p {
    margin-bottom: 0.5rem;
}

.question-container {
    background-color: var(--gray-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.option-label {
    display: block;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    border-color: rgba(255, 193, 7, 0.5);
}

.option-label {
    color: var(--light-text) !important;
}

.option-label .option-text {
    color: var(--light-text) !important;
}

.option-label.selected {
    border-color: var(--accent-gold);
    color: var(--light-text) !important;
    font-weight: bold;
}

.option-label.selected .option-text {
    color: var(--light-text) !important;
}

.option-label.correct {
    background-color: #28a745;
    color: white;
}

.option-label.incorrect {
    background-color: #dc3545;
    color: white;
}

/* Dashboard */
.stat-card {
    background-color: var(--gray-bg);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.progress-bar.bg-gold {
    background-color: var(--accent-gold);
}

.question-nav-btn.btn-gold {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-bg);
}

.question-nav-btn.answered {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.question-nav-btn.flagged {
    background-color: transparent !important;
    border: 2px solid #dc3545 !important;
    color: #dc3545 !important;
}

/* Exam Mode */
.timer-container {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    z-index: 1000;
    width: 160px;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.timer-container.warning {
    background-color: #dc3545;
    border-color: #dc3545;
}

.timer-container.danger {
    background-color: #dc3545;
    border-color: #dc3545;
    animation: pulse 1s infinite;
}

.timer-container .fas.fa-clock {
    color: #000000 !important;
    font-size: 1.2rem;
}

.timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000 !important;
    margin: 0;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.question-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.question-nav-item {
    width: 40px;
    height: 40px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-nav-item:hover {
    background-color: rgba(255, 193, 7, 0.3);
}

.question-nav-item.active {
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    font-weight: bold;
}

.question-nav-item.answered {
    background-color: #28a745;
    color: white;
}

.question-nav-item.flagged {
    border: 2px solid #dc3545;
}

/* Results Page */
.result-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    background: white;
    overflow: hidden.
}

.result-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        var(--fill-color, #ffc107) 0deg,
        var(--fill-color, #ffc107) var(--percentage),
        white var(--percentage),
        white 360deg
    );
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.result-circle.transitioning::before {
    transition: all 0.1s ease;
}

.result-circle.perfect::before {
    background: #28a745;
    animation: perfectPulse 1.5s ease-in-out infinite;
}

.result-circle.perfect::after {
    display: none;
}

.result-circle.perfect {
    animation: perfectCirclePulse 1.5s ease-in-out infinite;
}

@keyframes perfectPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.8);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
    }
}

@keyframes perfectCirclePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.9);
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffc107;
    animation: confetti-fall 3s linear infinite;
}

.confetti-piece:nth-child(odd) {
    background: #28a745;
    border-radius: 50%;
}

.confetti-piece:nth-child(3n) {
    background: #dc3545;
    transform: rotate(45deg);
}

.confetti-piece:nth-child(4n) {
    background: #17a2b8;
    border-radius: 50%;
}

.confetti-piece:nth-child(5n) {
    background: #6f42c1;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.result-circle::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 150px;
    height: 150px;
    background: var(--dark-bg);
    border-radius: 50%;
    z-index: 2;
}

.result-percentage {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.pass-badge {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.fail-badge {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--gray-bg);
    padding: 40px 0;
    margin-top: 50px;
}

.footer-links a {
    color: var(--light-text);
    margin: 0 15px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trust-badge:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Ensure clickable trust badges maintain proper styling */
a.trust-badge,
button.trust-badge {
    color: inherit;
    transition: all 0.3s ease;
}

a.trust-badge:hover,
button.trust-badge:hover {
    color: inherit;
    text-decoration: none;
}

.trust-badge .small {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .trust-badge .small {
        font-size: 0.7rem;
    }
}

/* Unlock Access Button Hover Effects */
.unlock-access-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    transform: translateY(0);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.unlock-access-btn:hover {
    transform: translateY(-5px) scale(1.05);
    filter: brightness(1.2) drop-shadow(0 8px 20px rgba(255, 193, 7, 0.4));
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.unlock-access-btn img {
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: block;
}

.unlock-access-btn:hover img {
    filter: brightness(1.1);
}

.unlock-access-btn:focus,
.unlock-access-btn:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.floating-chat-btn .chat-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .floating-chat-btn span {
        display: none;
    }

    .floating-chat-btn {
        padding: 12px;
    }

    .floating-chat-btn .chat-icon {
        margin-right: 0;
    }
}

/* Fixed Chat Button Container */
#chat-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#chat-button-container .chat-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    border: 2px solid #ffc107;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

#chat-button-container .chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

#chatModal .modal-content {
    border: 2px solid #ffc107;
}

.chat-button {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #000 !important;
    border: 2px solid #ffc107 !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    transition: transform 0.3s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.chat-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #000;
    border: 2px solid #ffc107;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.chat-button img {
    border-radius: 50%;
}

.floating-chat-btn .chat-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.floating-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Chatbot Styles */
.chatbox {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.chatbox .chat-message {
    margin-bottom: 15px;
}

.chatbox .user-message {
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    margin-left: auto;
}

.chatbox .bot-message {
    background-color: var(--gray-bg);
    color: var(--light-text);
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    position: relative;
    padding-right: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Chat voice button styling */
.chat-voice-btn {
    display: inline-block;
    padding: 4px 8px !important;
    margin: 8px 0 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
    clear: both;
}

.chat-voice-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.chat-voice-btn i {
    font-size: 0.7rem;
}

/* Submit Modal Styling */
.border-gold {
    border-color: var(--accent-gold) !important;
}

.modal-content.bg-dark {
    background-color: var(--gray-bg) !important;
}

.modal-header.border-gold {
    border-bottom-color: var(--accent-gold) !important;
}

.modal-footer.border-gold {
    border-top-color: var(--accent-gold) !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1.2rem;
    }

    .question-nav-item {
        width: 35px;
        height: 35px;
        margin: 3px;
    }

    /* Mobile flip card adjustments */
    .flip-card {
        height: 750px;
        min-height: 750px;
    }

    .flip-card-front, .flip-card-back {
        padding: 25px 20px;
        overflow: visible;
        box-sizing: border-box;
    }

    .flip-card-back {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .flip-card-back .feature-icon {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
        flex-shrink: 0;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flip-card-back h4 {
        font-size: 1.2rem;
        margin-bottom: 15px !important;
        line-height: 1.3;
        text-align: center;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .flip-card-back .text-start {
        font-size: 0.9rem;
        line-height: 1.4;
        width: 100%;
    }

    .flip-card-back p {
        margin-bottom: 12px;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .flip-card-back .mb-3 {
        margin-bottom: 18px !important;
    }

    .flip-card-back .mb-1 {
        margin-bottom: 8px !important;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .flip-card-back strong {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .flip-card-back .text-center strong {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    /* Mobile flashcard navigation - move arrows above Mark Mastered button */
    .flashcard-navigation-container {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        pointer-events: auto;
        z-index: 5;
        gap: 20px;
        margin-bottom: 15px;
        order: 1;
    }

    .flashcard-mastered-container {
        order: 2;
    }

    .flashcard-study-container {
        margin: 0 20px;
        display: flex;
        flex-direction: column;
    }

    /* Mobile flip button positioning - moved to bottom right to avoid blocking text */
    .flashcard-flip-button-container {
        position: absolute;
        bottom: 8px;
        right: 8px;
        top: auto;
        left: auto;
        transform: none;
        z-index: 15;
    }

    .flashcard-flip-inside {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 12px;
        min-width: auto;
    }
}



.question-nav-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    margin: 2px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: var(--gray-bg);
    color: var(--light-text);
    border: 1px solid var(--light-gray);
}

.question-nav-btn.answered {
    background-color: #28a745;
    border-color: #28a745;
    color: white !important;
}

.question-nav-btn.flagged {
    border: 2px solid #dc3545 !important;
}

.question-nav-btn.current {
    position: relative;
    z-index: 1;
}

.question-nav-btn.current::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    z-index: -1;
}

/* Question filter buttons */
.filter-options {
    display: flex;
    align-items: center;
}

.filter-options .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-options .btn-outline-gold {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.filter-options .btn-outline-gold:hover,
.filter-options .btn-outline-gold:focus {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-bg);
    transform: none;
}

.filter-options .btn-check:checked + .btn-outline-gold {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-bg);
}

/* Handle combinations of states */
.question-nav-btn.answered.flagged {
    background-color: #28a745;
    border: 2px solid #dc3545 !important;
    color: white !important;
}

.question-nav-btn.current.answered::after {
    border-color: var(--accent-gold);
}

.question-nav-btn.current.flagged::after {
    border-color: var(--accent-gold);}

#question-nav {
    display: grid;
    grid_template_columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    min-height: 120px;
}

.question-nav-btn.correct {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.question-nav-btn.incorrect {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.alert-dark {
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.alert-dark .text-gold {
    color: var(--dark-bg) !important;
}

.alert-dark i {
    color: var(--dark-bg);
}

.option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--gray-bg);
    border: 2px solid var(--light-gray);
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
}

.option-label.selected .option-key {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark-bg) !important;
}

.option-label.correct .option-key {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.option-label.correct {
    background-color: rgba(40, 167, 69, 0.1);
}

.option-label.incorrect {
    background-color: rgba(220, 53, 69, 0.1);
}

.option-label.incorrect .option-key {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
.badge.bg-gold {
    background-color: var(--accent-gold);
    color: #000000;
}

.achievement-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 2px solid var(--accent-gold);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.achievement-toast.fade-out {
    animation: slideOut 0.5s ease-in;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.streak-counter {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.points-badge {
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid var(--accent-gold);
}
/* Progress Animations */
.milestone-reached {
    animation: celebrate 1s ease-out;
}

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.streak-counter {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.achievement-badge {
    position: relative;
    display: inline-block;
    margin: 5px;
    transition: transform 0.3s ease;
}

.achievement-badge:hover {
    transform: scale(1.1);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.scroll-to-top-btn.show {
    display: flex;
}

/* Message Button */
.message-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
}

.message-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Submit Tooltip Warning */
.submit-tooltip-warning {
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    text-align: center;
    max-width: 90%;
    word-wrap: break-word;
    white-space: normal;
}

.submit-tooltip-warning.fade-out {
    opacity: 0;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 450px;
    min-height: 450px;
    cursor: pointer;
    overflow: visible;
    margin-bottom: 30px;
    padding: 10px 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--accent-gold);
    padding: 20px 25px;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.flip-card-front:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.2);
}

.flip-card-back {
    transform: rotateY(180deg);
    color: var(--light-text);
    justify-content: flex-start;
    padding: 20px 18px;
    overflow-y: auto;
    overflow-x: hidden;
}

.flip-card-back:hover {
    transform: rotateY(180deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3);
}

/* Global scrollbar styling for all containers */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-radius: 3px;
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

*::-webkit-scrollbar-corner {
    background: rgba(255, 193, 7, 0.1);
}

/* Thin scrollbars for card content */
.flip-card-back::-webkit-scrollbar,
.answer-details::-webkit-scrollbar,
.flashcard-front .question-text::-webkit-scrollbar {
    width: 4px;
}

.flip-card-back::-webkit-scrollbar-track,
.answer-details::-webkit-scrollbar-track,
.flashcard-front .question-text::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 2px;
}

.flip-card-back::-webkit-scrollbar-thumb,
.answer-details::-webkit-scrollbar-thumb,
.flashcard-front .question-text::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 2px;
}

.flip-card-back::-webkit-scrollbar-thumb:hover,
.answer-details::-webkit-scrollbar-thumb:hover,
.flashcard-front .question-text::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* Consistent icon alignment */
.flip-card .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flip-card-back .feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    height: 40px;
}

/* Title alignment */
.flip-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    min-height: 32px;
    line-height: 1.2;
}

/* Back card content layout - with scrolling */
.flip-card-back .text-start {
    font-size: 0.85rem;
    line-height: 1.4;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.strategy-list {
    font-size: 0.85rem;
    line-height: 1.5;
}

.strategy-item {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.flip-card-back .mb-3 {
    margin-bottom: 12px !important;
}

.flip-card-back .mb-1 {
    margin-bottom: 5px !important;
    font-size: 0.8rem;
    line-height: 1.2;
}

.flip-card-back strong {
    font-size: 0.9rem;
    line-height: 1.3;
}

.flip-card-back .text-center strong {
    font-size: 0.85rem;
    line-height: 1.2;
}

/* Ensure parent containers have proper spacing */
.flip-card .feature-box {
    margin: 0;
    padding: 25px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Flip indicator arrow at top right */
.flip-card-front::after {
    content: "↻";
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--accent-gold);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 6px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card:hover .flip-card-front::after {
    opacity: 1;
    transform: rotate(180deg) scale(1.1);    background: rgba(255, 193, 7, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .flip-card {
        height: 420px;
        min-height: 420px;
    }

    .flip-card-front, .flip-card-back {
        padding: 18px 15px;
        overflow: visible;
    }

    .flip-card .feature-icon {
        font-size: 2rem;
        height: 40px;
        margin-bottom: 12px;
    }

    .flip-card-back .feature-icon {
        font-size: 1.8rem;
        height: 35px;
        margin-bottom: 10px;
    }

    .flip-card h4 {
        font-size: 1.1rem;
        min-height: 35px;
        margin-bottom: 10px;
    }

    .flip-card-back h4 {
        font-size: 1rem;
        min-height: 28px;
        margin-bottom: 12px;
    }

    .flip-card-back .text-start {
        font-size: 0.8rem;
        line-height: 1.3;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 100%;
        padding-right: 4px;
    }

    .flip-card-back p {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .flip-card-back .mb-1 {
        font-size: 0.75rem;
        margin-bottom: 4px !important;
        line-height: 1.1;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .flip-card-back .mb-3 {
        margin-bottom: 10px !important;
    }

    .flip-card-back strong {
        font-size: 0.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Mobile scrollbar styling for flip cards */
    .flip-card-back .text-start::-webkit-scrollbar {
        width: 3px;
    }

    .flip-card-back .text-start::-webkit-scrollbar-track {
        background: rgba(255, 193, 7, 0.1);
        border-radius: 2px;
    }

    .flip-card-back .text-start::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 2px;
    }
}

/* Content Cards */
.content-card {
    background: var(--gray-bg);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    height: 100%;
    overflow: hidden;
}

/* Content Area Cards */
.content-area-card {
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.content-area-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.content-area-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.area-letter {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.area-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.area-title {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.area-weight {
    color: var(--accent-gold);
    font-weight: 500;
}

.area-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.area-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.area-progress-fill {
    height: 100%;
    background: var(--accent-gold);
    transition: width 0.8s ease;
}

.area-percentage {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
}

.area-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item {
    color: var(--light-text);
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-item i {
    width: 12px;
    margin-right: 0.25rem;
}

/* Leaderboard Styles */
.leaderboard-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px;
}

.leaderboard-list-tall {
    padding-right: 8px;
    margin-right: -8px;
}

/* Custom scrollbar for leaderboard */
.leaderboard-list::-webkit-scrollbar,
.leaderboard-list-tall::-webkit-scrollbar {
    width: 6px;
}

.leaderboard-list::-webkit-scrollbar-track,
.leaderboard-list-tall::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 3px;
}

.leaderboard-list::-webkit-scrollbar-thumb,
.leaderboard-list-tall::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.leaderboard-list::-webkit-scrollbar-thumb:hover,
.leaderboard-list-tall::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

/* Firefox scrollbar styling for all elements */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255, 193, 7, 0.1);
}

/* Specific Firefox scrollbar styling for lists */
.leaderboard-list,
.leaderboard-list-tall,
.exam-activity-list,
.recommendations-list {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255, 193, 7, 0.1);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

.leaderboard-item.current-user {
    background: rgba(255, 193, 7, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.rank-number {
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 30px;
    margin-right: 0.75rem;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.username {
    color: var(--light-text);
    font-weight: 500;
}

.points {
    color: var(--accent-gold);
    font-weight: 600;
}

.rank-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Study Recommendations */
.recommendations-list {
    max-height: 300px;
    overflow-y: auto;
}

.recommendation-item {
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.rec-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.area-badge {
    background: var(--accent-gold);
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.missed-count {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 500;
}

.rec-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rec-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.completion-reward-small,
.completion-target-small {
    font-size: 0.75rem;
    margin: 0.25rem 0;
    font-weight: 500;
}

.completion-reward-small {
    color: #28a745;
}

.completion-target-small {
    color: var(--light-text);
    opacity: 0.7;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    text-transform: uppercase;
}

.flashcard-breakdown {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
}

.flashcard-book-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.flashcard-book-item:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.flashcard-book-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.book-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    text-decoration: none;
}

.book-delete-btn::before {
    content: "×";
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.flashcard-book-item:hover .book-delete-btn {
    opacity: 1;
}

.book-delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.book-name {
    font-weight: 500;
    color: var(--text-primary);
}

/* Compact Achievement Items */
.achievements-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.achievement-item-compact {
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.achievement-item-compact:hover {
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.achievement-item-compact.completed {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.5);
}

.achievement-icon-compact {
    width: 32px;
    height: 32px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-item-compact.completed .achievement-icon-compact {
    background: rgba(40, 167, 69, 0.3);
}

.achievement-icon-compact i {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.achievement-item-compact.completed .achievement-icon-compact i {
    color: #28a745;
}

.achievement-content-compact {
    flex: 1;
}

.achievement-title-compact {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.achievement-description-compact {
    color: var(--light-text);
    opacity: 0.8;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
}

.streak-progress-compact {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

.achievement-points-compact {
    text-align: center;
    flex-shrink: 0;
}

.points-value-compact {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.achievement-item-compact.completed .points-value-compact {
    color: #28a745;
}

/* Exam Activity List */
.exam-activity-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px;
}

/* Custom scrollbar for exam activity */
.exam-activity-list::-webkit-scrollbar {
    width: 6px;
}

.exam-activity-list::-webkit-scrollbar-track {
    background: rgba(255, 193, 7, 0.1);
    border-radius: 3px;
}

.exam-activity-list::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.exam-activity-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

/* Firefox scrollbar styling */
.exam-activity-list {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(255, 193, 7, 0.1);
}

.exam-activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.1);
    transition: all 0.3s ease;
    justify-content: space-between;
}

.exam-activity-item:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.exam-info {
    flex: 1;
}

.exam-title-compact {
    color: var(--light-text);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.exam-date-compact {
    color: var(--light-text);
    opacity: 0.7;
    font-size: 0.75rem;
}

.exam-results {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-number-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.result-badge-compact {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 70;
}

.result-badge-compact.pass {
    background: #28a745;
    color: white;
}

.result-badge-compact.fail {
    background: #dc3545;
    color: white;
}

/* Admin Order Pages Styling */
.admin-orders-page .table td,
.admin-orders-page .table th,
.admin-order-detail-page .table td,
.admin-order-detail-page .table th {
    color: var(--light-text) !important;
}

.admin-orders-page .text-primary,
.admin-order-detail-page .text-primary {
    color: var(--accent-gold) !important;
}

.admin-orders-page .text-info,
.admin-order-detail-page .text-info {
    color: #17a2b8 !important;
}

.admin-orders-page .text-secondary,
.admin-order-detail-page .text-secondary {
    color: #6c757d !important;
}

.admin-orders-page .text-success,
.admin-order-detail-page .text-success {
    color: #28a745 !important;
}

.admin-orders-page .text-warning,
.admin-order-detail-page .text-warning {
    color: #ffc107 !important;
}

.admin-orders-page .text-danger,
.admin-order-detail-page .text-danger {
    color: #dc3545 !important;
}

/* Fix badge colors for better contrast */
.admin-orders-page .badge,
.admin-order-detail-page .badge {
    color: #fff !important;
}

.admin-orders-page .badge.bg-primary,
.admin-order-detail-page .badge.bg-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.admin-orders-page .badge.bg-info,
.admin-order-detail-page .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.admin-orders-page .badge.bg-secondary,
.admin-order-detail-page .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

/* Fix small text readability */
.admin-orders-page .text-muted,
.admin-order-detail-page .text-muted {
    color: #adb5bd !important;
}

.admin-orders-page small,
.admin-order-detail-page small {
    color: var(--light-text) !important;
}

/* Code elements for payment IDs etc */
.admin-orders-page code,
.admin-order-detail-page code {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--accent-gold);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .user-status-bar {
        gap: 1rem;
    }

    .challenge-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .challenge-progress-container {
        flex-direction: column;
        gap: 1rem;
    }

    .strategy-card {
        flex-direction: column;
        text-align: center;
    }

    .strategy-tips {
        grid-template-columns: 1fr;
    }

    .book-progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-circle {
        align-self: center;
    }

    .exam-activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .exam-results {
        align-self: flex-end;
    }

    .flashcard-books-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .flashcard-book-item {
        min-height: 100px;
        padding: 0.75rem;
    }
}

/* Add completed state styling for progress circles */
.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-gold) 0deg, var(--accent-gold) var(--percentage, 0deg), rgba(255, 193, 7, 0.2) var(--percentage, 0deg), rgba(255, 193, 7, 0.2) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle.completed {
    background: conic-gradient(#28a745 0deg, #28a745 360deg);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.progress-circle-inner {
    width: 45px;
    height: 45px;
    background: var(--gray-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.progress-circle.completed .progress-percentage {
    color: #28a745;
}

/* Add completed state styling for progress circles */
.mini-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-gold) 0deg, var(--accent-gold) var(--percentage, 0deg), rgba(255, 193, 7, 0.2) var(--percentage, 0deg), rgba(255, 193, 7, 0.2) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mini-progress-circle.completed {
    background: conic-gradient(#28a745 0deg, #28a745 360deg);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.mini-progress-circle::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--gray-bg);
    border-radius: 50%;
}

.mini-progress-percentage {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-gold);
    position: relative;
    z-index: 1;
}

.mini-progress-circle.completed .mini-progress-percentage {
    color: #28a745;
}

/* FCM Chapter Dropdown Styles */
.fcm-dropdown-toggle {
    border-left: 2px solid rgba(0,0,0,0.3);
    min-width: 50px;
}

.fcm-dropdown-toggle::after {
    border-top: 0.6em solid !important;
    border-right: 0.45em solid transparent !important;
    border-left: 0.45em solid transparent !important;
    font-weight: bold !important;
}

/* Practice Mode FCM Chapter Dropdown Styles (only on practice pages) */
.practice-page .fcm-dropdown-toggle {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
}

.practice-page .fcm-dropdown-toggle::after {
    border-top: 0.6em solid var(--dark-bg) !important;
    border-right: 0.45em solid transparent !important;
    border-left: 0.45em solid transparent !important;
    font-weight: bold !important;
}

.practice-page .btn-group .btn.fcm-dropdown-toggle:hover,
.practice-page .btn-group .btn.fcm-dropdown-toggle:active,
.practice-page .btn-group .btn.fcm-dropdown-toggle:focus,
.practice-page .btn-group .btn.fcm-dropdown-toggle.show {
    background-color: #e5ac00 !important;
    border-color: #e5ac00 !important;
    color: var(--dark-bg) !important;
}

/* Ensure dropdown stays gold when open */
.practice-page .btn-group .dropdown-toggle[aria-expanded="true"] {
    background-color: #e5ac00 !important;
    border-color: #e5ac00 !important;
    color: var(--dark-bg) !important;
}

/* Comprehensive FCM dropdown styling for practice mode - overrides all Bootstrap states */
.practice-page .fcm-dropdown-toggle,
.practice-page .fcm-dropdown-toggle:hover,
.practice-page .fcm-dropdown-toggle:focus,
.practice-page .fcm-dropdown-toggle:active,
.practice-page .fcm-dropdown-toggle.show,
.practice-page .fcm-dropdown-toggle[aria-expanded="true"],
.practice-page .btn-group .btn.fcm-dropdown-toggle:hover,
.practice-page .btn-group .btn.fcm-dropdown-toggle:focus,
.practice-page .btn-group .btn.fcm-dropdown-toggle:active,
.practice-page .btn-group .btn.fcm-dropdown-toggle.show,
.practice-page .btn-group .btn.fcm-dropdown-toggle[aria-expanded="true"],
.practice-page .dropdown-toggle.fcm-dropdown-toggle,
.practice-page .dropdown-toggle.fcm-dropdown-toggle:hover,
.practice-page .dropdown-toggle.fcm-dropdown-toggle:focus,
.practice-page .dropdown-toggle.fcm-dropdown-toggle:active,
.practice-page .dropdown-toggle.fcm-dropdown-toggle.show,
.practice-page .dropdown-toggle.fcm-dropdown-toggle[aria-expanded="true"] {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
    box-shadow: none !important;
}

/* Ensure focus states don't override */
.practice-page .fcm-dropdown-toggle:focus-visible,
.practice-page .btn-group .btn.fcm-dropdown-toggle:focus-visible,
.practice-page .dropdown-toggle.fcm-dropdown-toggle:focus-visible {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

/* Force override for any disabled states */
.practice-page .fcm-dropdown-toggle:not(:disabled):not(.disabled),
.practice-page .btn-group .btn.fcm-dropdown-toggle:not(:disabled):not(.disabled),
.practice-page .dropdown-toggle.fcm-dropdown-toggle:not(:disabled):not(.disabled) {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
}

/* Ultra-specific overrides to beat Bootstrap at every possible state */
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:hover,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:focus,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:active,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle.active,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle.show,
.practice-page .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle[aria-expanded="true"],
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.btn-gold.fcm-dropdown-toggle,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:hover,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:focus,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle:active,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle.active,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle.show,
.practice-page .btn-group .btn.btn-gold.dropdown-toggle.fcm-dropdown-toggle[aria-expanded="true"] {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: var(--dark-bg) !important;
    box-shadow: none !important;
}

/* Ensure Bootstrap's focus ring is overridden */
html body .practice-page .btn-group .btn.btn-gold.fcm-dropdown-toggle:focus-visible {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25) !important;
}

/* Override any Bootstrap utility classes that might interfere */
html body .practice-page .fcm-dropdown-toggle.btn-secondary,
html body .practice-page .fcm-dropdown-toggle.btn-outline-secondary,
html body .practice-page .fcm-dropdown-toggle.btn-light,
html body .practice-page .fcm-dropdown-toggle.btn-dark {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
}

/* Target specific Bootstrap CSS classes that override button styles */
html body .practice-page .btn-group > .btn.fcm-dropdown-toggle:not(:first-child):not(.dropdown-toggle),
html body .practice-page .btn-group > .btn-group:not(:first-child) > .btn.fcm-dropdown-toggle,
html body .practice-page .btn-group > .btn.fcm-dropdown-toggle:nth-child(n+3),
html body .practice-page .btn-group > .btn.fcm-dropdown-toggle.dropdown-toggle-split {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
    border-left-color: rgba(0, 0, 0, 0.1) !important;
}

/* Override Bootstrap's button group border modifications */
html body .practice-page .btn-group .btn.fcm-dropdown-toggle + .btn,
html body .practice-page .btn-group .btn.fcm-dropdown-toggle + .btn-group .btn,
html body .practice-page .btn-group > .btn.fcm-dropdown-toggle:not(:last-child):not(.dropdown-toggle) {
    border-left-color: rgba(0, 0, 0, 0.1) !important;
}

/* Force override any remaining Bootstrap states */
html body .practice-page [class*="btn"][class*="fcm-dropdown-toggle"] {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
}

/* Ultimate fallback using attribute selectors with maximum specificity */
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"],
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"]:hover,
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"]:focus,
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"]:active,
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"].show,
html body .practice-page button[class*="fcm-dropdown-toggle"][data-bs-toggle="dropdown"][aria-expanded="true"] {
    background-color: #ffc107 !important;
    background-image: none !important;
    border-color: #ffc107 !important;
    color: #000000 !important;
    box-shadow: none !important;
}

.correct-answer-letter-only {
    text-align: center;
    padding: 20px;
}

.answer-letter-display {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    padding: 20px 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.answer-note {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 500;
}

.all-answer-options {
    padding: 15px 0;
}

.correct-answer-header {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.answer-options {
    max-width: 100%;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-item.correct-option {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.option-item.incorrect-option {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.option-text {
    flex-grow: 1;
    color: var(--light-text);
    line-height: 1.4;
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    margin-bottom: 15px;
    flex-shrink: 0;
}

.explanation-section {
    margin: 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.explanation-section strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.explanation-section p {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 6px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.metadata-section {
    margin-top: 8px;
    padding-top: 0px;
}

.metadata-section p {
    font-size: 0.7rem;
    line-height: 1.1;
    margin-bottom: 4px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.metadata-section strong {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* Countdown Timer Styles */
.bg-gradient-gold {
    background: linear-gradient(135deg, #ffc107, #ffdb4d) !important;
}

.countdown-container {
    border: 2px solid #ffc107;
}

.countdown-item {
    padding: 10px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
}

/* Upcoming Programs Styles */
.bg-gradient-dark {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
}

.upcoming-program {
    transition: all 0.3s ease;
    height: 100%;
}

.upcoming-program:hover {
    border-color: #ffc107 !important;
    transform: translateY(-2px);
}

.stat-highlight {
    padding: 10px;
}

/* Animation for countdown */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.countdown-number {
    animation: pulse 2s infinite;
}

/* Modern Countdown Timer Styles */
.modern-countdown-container {
  padding: 2rem 0;
  text-align: center;
}

.countdown-header {
  position: relative;
}

.countdown-pulse {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.modern-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.countdown-card {
  position: relative;
  transition: transform 0.3s ease;
}

.countdown-card:hover {
  transform: scale(1.05);
}

.countdown-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.countdown-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.countdown-fill {
  fill: none;
  stroke: #ffc107;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(255, 193, 7, 0.3));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(255, 193, 7, 0.8));
  }
}

.countdown-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.countdown-number {
  font-size: 2rem;
  font-weight: bold;
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  margin-bottom: 0.2rem;
  font-family: 'Montserrat', sans-serif;
  animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.countdown-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.countdown-footer {
  margin-top: 2rem;
}

.progress-bar-container {
  max-width: 400px;
  margin: 0 auto;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107, #ff8f00);
  width: 75%;
  border-radius: 3px;
  position: relative;
  animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
  }
  50% {
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
  }
  100% {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
  }
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressSlide 2s infinite;
}

@keyframes progressSlide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .countdown-circle {
    width: 100px;
    height: 100px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .modern-countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .countdown-circle {
    width: 80px;
    height: 80px;
  }

  .countdown-number {
    font-size: 1.2rem;
  }
}