:root {
    --primary-color: #1e70b3;
    --secondary-color: #111111;
    --accent-color: #FFD166;
    --background-color: #F1FFFa;
    --light-color: #F6F7FB;
    --btn-color: #559bd4;
    --card-color: #FFFFFF;
    --text-color: #333333;
    --success-color: #06D6A0;
    --warning-color: #EF476F;
    --font-main: 'Nunito', sans-serif;
    --font-fun: 'Comic Neue', cursive;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
}

::selection {
    background: var(--secondary-color);
    color: var(--light-color);
}

/* Star System Styles */
.star-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
    color: #ccc;
}

.star-icon:hover {
    transform: scale(1.2);
    color: #ffd700 !important;
}

.star-icon.starred {
    color: #ffd700 !important;
}

.star-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Question Navigation Star Badge */
.question-nav-btn {
    position: relative;
}

.star-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffd700;
    color: #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Study Mode Modal */
.study-mode-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.study-mode-header {
    text-align: center;
    margin-bottom: 25px;
}

.study-mode-body {
    margin-bottom: 30px;
}

.filter-section,
.flashcard-mode-section {
    margin-bottom: 25px;
}

.filter-section h3,
.flashcard-mode-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options,
.flashcard-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filter-option,
.flashcard-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-option:last-child,
.flashcard-option:last-child {
    margin-bottom: 0;
}

.filter-option:hover,
.flashcard-option:hover {
    background: rgba(66, 153, 225, 0.05);
}

.filter-option.selected,
.flashcard-option.selected {
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid var(--primary-color);
}

.filter-selector,
.mode-selector {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-option.selected .filter-selector,
.flashcard-option.selected .mode-selector {
    border-color: var(--primary-color);
}

.filter-dot,
.mode-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.filter-option.selected .filter-dot,
.flashcard-option.selected .mode-dot {
    opacity: 1;
}

#filter-starred.selected .filter-dot {
    background: #ffd700;
}

#filter-starred.selected .filter-selector {
    border-color: #ffd700;
}

.filter-info,
.mode-info {
    flex: 1;
}

.filter-title,
.mode-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.filter-desc,
.mode-desc {
    font-size: 14px;
    color: #666;
}

.study-mode-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Badges */
.reverse-mode-badge,
.starred-only-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.reverse-mode-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.starred-only-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
}

/* Flashcard Answer Items */
.answer-item {
    margin-bottom: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.answer-item:last-child {
    margin-bottom: 0;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Bar Star Item */
.quiz-stats-bar .stat-item i.fa-star {
    color: #ffd700 !important;
}










/* Star button styles */
.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

.star-btn.starred {
    color: #FFD700;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Flashcard star button */
.star-flashcard-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
}

/* Filter modal styles */
.filter-option {
    transition: all 0.2s ease;
}

.filter-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Toast notifications */
.toast {
    font-family: var(--font-main);
}









h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--secondary-color);
}

/* Demo quiz header styling */
.quiz-header.demo-mode {
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-header.demo-mode h1 {
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quiz-header.demo-mode h1::before {
    content: "🎯";
    font-size: 1.2em;
}

.quiz-header.demo-mode p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.premium-offer-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 9999;
    text-align: center;
}

.premium-offer-banner .head {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-color);
}

.premium-offer-banner .countdown {
    font-weight: 700;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 5px;
    font-family: monospace;
}

.timer-control-panel {
    background: var(--background-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timer-control-panel h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-icon.active {
    color: #10b981;
    background: var(--background-color);
}

.status-icon.inactive {
    color: #ef4444;
    background: var(--background-color);
}

.status-info {
    flex: 1;
}

.status-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.status-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.status-value.active {
    color: #10b981;
}

.status-value.inactive {
    color: #ef4444;
}

.timer-control-actions {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--background-color);
    border-radius: 8px;
}

.timer-control-actions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.timer-settings-form {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.timer-settings-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-settings-form .form-group {
    margin-bottom: 20px;
}

.timer-settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-settings-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.timer-settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.duration-input {
    max-width: 200px;
}

.update-btn {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.web-features-btn {
    padding: 5px 15px !important;
    width: 200px;
    text-decoration: none;
}

.web-features-btn i {
    font-size: 19px;

}

.tooltiptext {
    visibility: hidden;
    width: 130px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.btn {
    font-family: var(--font-fun);
    font-weight: 700;
    border-radius: 50px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-dashboard {
    text-decoration: none;
    background: var(--card-color);
    color: var(--text-color);
}

.flashcard-navigation .back-dashboard {
    background: #ebebeb;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    /* background-color: var(--primary-color); */
    background: var(--btn-color);
    color: var(--light-color);
}

.quizzes-grid .primary-btn i {
    align-items: center;
    font-size: 2rem;
}


.secondary-btn {
    /* background-color: var(--secondary-color); */
    background: var(--btn-color);
    color: var(--light-color);
}

.accent-btn {
    /* background-color: var(--accent-color); */
    background: var(--btn-color);
    color: #333;
}

.secondary-btn:hover {
    transform: translateY(-2px);
}

.contact-login {
    margin-top: 20px;
}

.contact-login a {
    text-decoration: none;
    color: var(--primary-color);
}



.contact-login a:hover {
    color: var(--secondary-color) !important;
    text-decoration-line: underline;
    /* border-bottom: 1px solid var(--secondary-color); */
    transition: all 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 48px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 36px;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.legal-header h2 {
    color: var(--secondary-color);
    font-size: 32px;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
}

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn 0.5s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.verification-content {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 20px;
    height: fit-content;
    max-height: 90vh;
    overflow: auto;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.verification-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.verification-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.user-email {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
    margin: 10px 0;
    word-break: break-all;
}

.verification-notes {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.verification-notes ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.verification-notes li {
    margin-bottom: 5px;
    font-size: 14px;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.verification-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.auth-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--background-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left-color: var(--warning-color);
}

.notification-error i {
    color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-info i {
    color: var(--secondary-color);
}

.auth-notification i {
    font-size: 20px;
}

.auth-notification span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f5f5f5;
    color: #666;
}

.password-match {
    margin-top: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;

}

.test-mode-setting {
    /* height: fit-content; */
    background: var(--background-color);
    padding: 15px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.test-mode {
    position: relative;
}

.test-mode-setting-icon {
    text-align: center;
    margin-bottom: 25px;
}

.test-setting-heading {
    margin: 0 0 10px 0;
    color: #333;
}

.test-mode .timer-container {
    position: absolute;
    top: 100px;
    width: fit-content;
}

.test-mode .question-number {
    position: absolute;
    top: 270px !important;
}

.test-mode .feedback-warning {
    font-size: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.question-number {}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.loading-spinner {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    margin-top: 15px;
    color: #666;
    font-size: 16px;
}


/* Error State */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.error-state i {
    font-size: 48px;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.error-state p {
    margin-bottom: 20px;
}

.error-state h4 {
    color: var(--warning-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.error-state p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.auth-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--background-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left-color: var(--warning-color);
}

.notification-error i {
    color: var(--warning-color);
}

.notification-warning {
    border-left-color: var(--accent-color);
}

.notification-warning i {
    color: var(--accent-color);
}

.notification-info {
    border-left-color: var(--primary-color);
}

.notification-info i {
    color: var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* //Quiz CSS// */
.no-quizzes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background-color: #f9f9f9;
    border-radius: 20px;
    border: 2px dashed #ddd;
}

.no-quizzes i {
    font-size: 80px;
    margin-bottom: 20px;
    color: #ddd;
}

.quiz-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.quiz-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-fun);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    min-height: 40px;
}


.quiz-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--background-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left-color: var(--warning-color);
}

.notification-error i {
    color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-info i {
    color: var(--secondary-color);
}

.quiz-notification i {
    font-size: 20px;
}

.quiz-notification span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f5f5f5;
    color: #666;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.question-type-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.single-badge {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.multiple-badge {
    background-color: rgba(46, 196, 182, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 196, 182, 0.2);
}

.remove-question {
    background-color: #ffebee;
    color: var(--warning-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-question:hover {
    background-color: #ffcdd2;
    transform: scale(1.1);
}

.answer-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.answer-type-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-type-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.answer-type-option input[type="radio"] {
    display: none;
}

.answer-type-option input[type="radio"]:checked+.answer-type-content {
    color: var(--primary-color);
}

.answer-type-option input[type="radio"]:checked+.answer-type-content i {
    color: var(--primary-color);
}

.answer-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.answer-type-content i {
    font-size: 28px;
    color: #888;
    transition: color 0.3s ease;
}

.answer-type-content span {
    font-weight: 600;
    font-size: 16px;
}

.answer-type-content small {
    color: #666;
    font-size: 12px;
}

.option-hint {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.option-item:hover {
    background-color: #f0f0f0;
}

.option-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.single-answer-control,
.multiple-answer-control {
    display: flex;
    align-items: center;
}

.hidden {
    display: none !important;
}

.option-radio,
.option-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option-radio {
    accent-color: var(--primary-color);
}

.option-checkbox {
    accent-color: var(--success-color);
}

.option-letter {
    font-weight: 700;
    color: var(--secondary-color);
    min-width: 20px;
}

.option-input {
    flex: 1;
    margin: 0;
}

.remove-option-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-option-btn:hover {
    background-color: #ffebee;
    color: var(--warning-color);
}

.add-option-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-option-btn {
    /* background-color: #f0f0f0; */
    background: var(--btn-color);
    /* color: #666; */
    color: var(--light-color);
    padding: 10px 20px;
    font-size: 14px;
}

.add-option-btn:hover {
    transform: translateY(-20px);
}

.option-note {
    font-size: 12px;
    color: #888;
}

.questions-summary {
    background-color: rgba(67, 97, 238, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.questions-summary i {
    color: var(--primary-color);
}

.questions-summary span {
    color: #555;
    font-size: 14px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* //Dashboard CSS// */
.dashboard-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--background-color);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-error {
    border-left-color: var(--warning-color);
}

.notification-error i {
    color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-info i {
    color: var(--secondary-color);
}

.dashboard-notification i {
    font-size: 20px;
}

.dashboard-notification span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f5f5f5;
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@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;
    }
}

.question-item {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-number-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);

}

.remove-question {
    background-color: #ffebee;
    color: var(--warning-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}



.option-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.option-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-input {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.add-question-btn {
    /* background-color: #f0f0f0; */
    background: var(--btn-color);
    /* color: #666; */
    color: var(--light-color);
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

.add-question-btn:hover {
    /* background-color: #e0e0e0; */
    transform: translateY(-2px);
}


.timer-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--warning-color);
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    animation: pulse 1s infinite;
    padding: 15px 25px;
    color: var(--light-color);
    background-color: #ff4444;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}


.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.quiz-navigation button {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* justify-content: space-between; */
    gap: 10px;
}


.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    position: relative;
}

.score-circle svg {
    animation: rotateIn 1s ease;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }

    to {
        transform: rotate(0);
        opacity: 1;
    }
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    color: #333;
}


.review-details p {
    margin: 8px 0;
    color: #666;
}

.perfect-score {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border-radius: 20px;
    border: 3px dashed #ffd700;
}

.perfect-score i {
    font-size: 60px;
    color: #ffd700;
    margin-bottom: 20px;
}

.perfect-score h3 {
    color: #ff9800;
    margin-bottom: 10px;
}

.perfect-score p {
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}



.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 25px;
    background-color: rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateX(-5px);
}

.legal-content {
    background-color: var(--background-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.legal-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.legal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.legal-actions .btn.primary-btn,
.legal-actions .btn.secondary-btn {
    text-decoration: none;
    padding: 10px !important;
    background: var(--btn-color);
    font-size: 14px;
}



.dashboard-footer,
.login-footer,
.add-quiz-footer {
    text-align: center;
    padding: 25px;
    color: #666;
    background-color: var(--background-color);
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.quiz-options-modal {
    position: fixed;
    top: 0;
    /* top: 50%;
        transform: translateY(-50%); */
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 110%;

    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow: scroll;


}

.quiz-options-modal::-webkit-scrollbar {
    width: 0;
}

.quiz-options-content {
    background-color: white;
    border-radius: 9px;
    padding: 40px 30px;
    width: 90%;
    max-width: 500px;
    min-height: fit-content;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    margin-bottom: 30px;
}

.quiz-options-content h3 {
    color: var(--primary-color);
    /* margin-bottom: 30px; */
    text-align: center;
    font-size: 28px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 15px;
    border-radius: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.option-group label:hover {
    background-color: #f0f0f0;
}

.option-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
}

.option-group select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #ddd;
    font-family: var(--font-main);
    font-size: 16px;
    margin-top: 10px;
    background-color: white;
    cursor: pointer;
}

.option-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.timer-disabled {
    background-color: #6c757d;
    opacity: 0.7;
}

.timer-warning {
    animation: pulse 1s infinite;
    background-color: var(--danger-color);
}

.timer-icon {
    font-size: 28px;
}

/* Question Progress Bar */
.question-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.question-nav {
    display: flex;
    gap: 10px;
}

.question-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: white;

    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.question-nav-btn:hover {
    background: var(--btn-color);
    color: white;
}

.question-nav-btn.active {
    background: var(--btn-color);
    color: white;
}

/* Learn Mode */
.learn-mode-container {
    background-color: var(--light-color);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    /* min-height: 500px; */
    min-height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flip-card {
    width: 100%;
    height: 350px;
    perspective: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.quiz-navigation {
    position: relative;
    margin-top: 50px;
    bottom: 5%;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    min-height: 120%;

    height: fit-content;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: var(--primary-color);
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    color: var(--light-color);
}

.flip-card-back {

    background: var(--primary-color);
    color: var(--light-color);
    transform: rotateY(180deg);
}

.learn-question {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
    max-width: 800px;
    padding: 0 20px;

}

.learn-answer {
    font-size: 24px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    /* max-width: 800px; */
    min-width: fit-content;
    line-height: 1.4;
}

.flip-btn {
    /* background: var(--light-color);
    color: var(--primary-color); */
    background: var(--btn-color);
    color: var(--light-color);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 40px;
}

.flip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.flip-btn i {
    transition: transform 0.5s ease;
}

.flip-card.flipped .flip-btn i {
    transform: rotate(180deg);
}

.question-number {
    position: absolute;
    top: 190px;
    left: 20px;

    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.flip-hint {
    position: absolute;
    bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.multiple-choice-indicator {
    font-size: 14px;
    color: var(--success-color);
    font-weight: 600;
    margin-left: 10px;
    padding: 2px 8px;
    background-color: rgba(46, 196, 182, 0.1);
    border-radius: 10px;
}

.feedback-container small {
    display: block;
    margin-top: 8px;
    font-weight: normal;
    font-size: 14px;
}

.feedback-incorrect small {
    color: rgba(255, 255, 255, 0.9);
}

.feedback-correct small {
    color: rgba(255, 255, 255, 0.9);
}

.learn-question {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.learn-answer {
    font-size: 24px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;

    border-radius: 15px;
    margin-top: 20px;
}

/* Quiz Stats */
.quiz-stats-bar {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-weight: 600;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 20px;

}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flip {
    from {
        transform: rotateY(0);
    }

    to {
        transform: rotateY(180deg);
    }
}

/* Mode Buttons on Dashboard */
.quiz-modes {
    background: var(--background-color);
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.mode-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: var(--light-color);
    background-color: var();
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mode-btn span {
    font-size: 0.85rem;
}

.memorize-btn {
    background: var(--btn-color);
    color: var(--light-color);
}

.test-mode-btn:hover {
    background: var(--btn-color);
    color: white;
    transform: translateY(-2px);
}

.flashcards-btn:hover {
    background: var(--btn-color);
    color: white;
    transform: translateY(-2px);
}

.match-btn:hover {
    background: var(--btn-color);
    color: white;
    transform: translateY(-2px);
}

.mode-btn:active {
    transform: translateY(0);
}

/* Options Modal */
.options-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.options-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.options-modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-options-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-options-btn:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.options-list {
    margin: 25px 0;
}

.option-item {
    margin: 15px 0;
    padding: 15px;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
}

.option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.option-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.options-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.options-actions .btn {
    flex: 1;
    padding: 12px 20px;
}

/* Match Game  */
.match-game-container {
    width: 100%;
    height: fit-content;
    padding: 20px 10px;
    /* max-width: 1200px; */
}

.match-header {
    text-align: center;
    margin-bottom: 30px;
}

.match-header h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.timer-container,
.score-container,
.matches-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    font-weight: 600;
}

.timer-container i {
    color: var(--warning-color);
}

.score-container i {
    color: var(--accent-color);
}

.matches-container i {
    color: var(--success-color);
}

.instructions {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.instructions i {
    margin-right: 10px;
}

.game-area {
    min-height: 500px;
    background: var(--background-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.game-card {
    width: 250px;
    min-height: 180px;
    min-height: max-content;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-card.selected {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.game-card.correct {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--success-color);
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.game-card.incorrect {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--warning-color);
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.game-card.paired {
    cursor: default;
    opacity: 0.5;
    transform: scale(0.95);
}

.answer-card {
    border-left: 5px solid var(--success-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.card-content i {
    font-size: 2rem;
    color: var(--accent-color);
}

.card-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    /* max-height: 80px; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiple-hint {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.game-controls .btn {
    min-width: 150px;
    padding: 12px 25px;
    font-size: 1rem;
}

/* Game Over Modal */
.game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    animation: modalFadeIn 0.5s ease;
}

.final-score {
    margin: 30px 0;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.score-details {
    text-align: left;
    font-size: 1.2rem;
}

.score-details p {
    margin: 10px 0;
    color: var(--text-color);
}

.score-details span {
    font-weight: bold;
    color: var(--primary-color);
}

.game-over-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.game-over-actions .btn {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* User Profile Styles */
.user-profile-dropdown {
    position: relative;
    z-index: 1000;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-image-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--primary-color);
}

.user-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.fallback-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-arrow {
    font-size: 12px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.user-profile-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Profile Menu */
.user-profile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-color);
    color: white;
}

.menu-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
}

.menu-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-user-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: white;
    font-weight: 700;
}

#menu-user-email {
    color: var(--light-color);
}

.menu-user-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}


.logout-menu-item {
    color: #e74c3c;
}

.logout-menu-item:hover {
    background: #ffeaea;
    color: #c0392b;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Settings Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Profile Images Grid */
.profile-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.profile-image-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-image-option:hover {
    transform: scale(1.05);
}

.profile-image-option.selected {
    border-color: var(--primary-color);
}

.profile-image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    border: 2px dashed #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-profile-btn:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.upload-profile-btn i {
    font-size: 24px;
    color: #666;
    margin-bottom: 5px;
}

.upload-profile-btn span {
    font-size: 12px;
    color: #666;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* //Dashboard Home css// */
/* Email Verification */
.email-verification {
    padding: 15px;
    background: var(--background-color);
    border-radius: 8px;
    margin-top: 10px;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.verification-status.verified {
    color: #27ae60;
}

.verification-status.not-verified {
    color: #e74c3c;
}

.verify-email-btn {
    width: 100%;
    padding: 10px;
    background: var(--btn-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.verify-email-btn:hover {
    background: var(--primary-color);
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.active {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #27ae60;
}

.notification.error {
    border-left: 4px solid #e74c3c;
}

.notification.info {
    border-left: 4px solid #3498db;
}

/* Ensure images load properly */
.user-profile-img,
.menu-profile-img img {
    transition: opacity 0.3s ease;
}

.user-profile-img.loading,
.menu-profile-img img.loading {
    opacity: 0.5;
}

/* Profile image container */
.profile-image-container {
    position: relative;
}

.profile-image-container .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-image-container.loading .loading-overlay {
    opacity: 1;
    visibility: visible;
}

.custom-image-preview {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;

}

.custom-image-preview img {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.custom-image-preview p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.custom-image-preview i {
    color: #4ECDC4;
    margin-right: 5px;
}

.preview-container {
    display: flex;
    justify-content: center;
}



/* Notification Container */
.notification-container {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    padding: 10px;
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--light-color);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.notifications-dropdown.active {
    display: block;
}

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    margin: 0;
}

.notifications-header button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.warning {
    border-left: 4px solid var(--warning-color);
}

.notification-item.success {
    border-left: 4px solid var(--success-color);
}

.notification-item.info {
    border-left: 4px solid var(--info-color);
}

.notification-icon {
    font-size: 18px;
    color: var(--primary-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-dismiss {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}


/* Main Content */

/* .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
} */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 140px;
    margin-left: 260px;
    padding: 20px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        margin-top 0.3s ease;
    min-height: calc(100vh - 140px);
}


#content-sections {
    padding: 0 20px 20px;
    flex: 1;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--background-color);
    font-size: 14px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.quiz-card.disabled {
    opacity: 0.6;
    filter: grayscale(50%);
}

.report-quiz-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.report-quiz-btn:hover {
    color: var(--warning-color);
    background: rgba(231, 76, 60, 0.1);
}

.share-quiz-btn {
    border: none;
    padding: 10px;
    background: var(--btn-color);
    color: var(--light-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;

}

.quiz-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.quiz-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.public-tag {
    background: #e8f7f6;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.private-tag {
    background: #fff8e6;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.category-tag {
    background: #f0f9ff;
    color: #0366d6;
    border: 1px solid #0366d6;
}

.quiz-description {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
    font-size: 14px;
}

.quiz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    gap: 12px;
    flex-wrap: wrap;
    color: #666;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f0f0f0;
    padding: 5px 12px;
    font-size: 14px;
    color: #666;
}

.quiz-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quiz Tags */
.quiz-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.public-tag {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.private-tag {
    background-color: var(--light-color);
    color: #7b1fa2;
}

.category-tag {
    background-color: var(--light-color);
    color: #388e3c;
}


.no-quizzes,
.no-activity,
.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-quizzes i,
.no-activity i,
.no-notifications i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Create New Container */
.create-new-container {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.create-new-container h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.create-new-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.large-btn {
    padding: 15px 40px;
    font-size: 18px;
}

/* Activity Timeline */
.activity-timeline {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.activity-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-tab-content {
    width: 100%;
    overflow: visible !important;
}



.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.reports-section {
    margin-top: 30px;
}

.reports-section h4 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.report-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--warning-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.report-reason {
    background: var(--warning-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.report-reason.spam {
    background-color: #ffebee;
    color: #c62828;
}

.report-reason.inappropriate {
    background-color: #fce4ec;
    color: #ad1457;
}

.report-reason.incorrect {
    background-color: #fff3e0;
    color: #ef6c00;
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.small-btn {
    padding: 5px 10px;
    font-size: 12px;
}

.report-details {
    margin-bottom: 15px;
}

.report-details small {
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.report-actions {
    display: flex;
    gap: 10px;
}


.small-btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* Flash Notifications */
.flash-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.flash-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-notification.success {
    border-left: 4px solid var(--success-color);
}

.flash-notification.error {
    border-left: 4px solid var(--warning-color);
}

.flash-notification.info {
    border-left: 4px solid var(--info-color);
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.quiz-btn {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.delete-btn {
    background-color: var(--warning-color);
    color: white;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.quiz-btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.learn-btn {
    background: var(--btn-color);
    color: var(--light-color);
}

.test-btn {
    background: var(--btn-color);
    color: var(--light-color);
}

.flashcard-btn {
    background: var(--btn-color);
    color: var(--light-color);
}

.matchgame-btn {
    background: var(--btn-color);
    color: var(--light-color);
    ;
}

/* Notification Styles */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.info {
    border-left: 4px solid #2196F3;
}

.notification-item.warning {
    border-left: 4px solid #FF9800;
}

.notification-item.success {
    border-left: 4px solid #4CAF50;
}

.notification-item.error {
    border-left: 4px solid #F44336;
}

.notification-content {
    flex: 1;
    cursor: pointer;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #999;
}

.notification-dismiss {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.notification-dismiss:hover {
    color: #333;
}

/* Progress Tracker */
.progress-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4ECDC4;
    transition: width 0.3s;
}

/* Profile Modal */
.profile-modal .modal-content {
    max-width: 800px;
}

.profile-avatar-section {
    margin-bottom: 30px;
}

.current-avatar {
    text-align: center;
    margin: 20px 0;
}

.current-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.avatar-options {
    margin: 20px 0;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.avatar-option {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.avatar-option:hover {
    background-color: #f5f5f5;
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background-color: #e3f2fd;
}

.avatar-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.avatar-option span {
    display: block;
    font-size: 12px;
    color: #666;
}

.avatar-upload {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-info-section {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/*  Learn Mode Styles */
.learn-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: var(--background-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.learn-option:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.learn-option.selected {
    border-color: var(--primary-color);
    background: #e3f2fd;
}

.learn-option.correct {
    border-color: var(--success-color);
    background: #e8f5e9;
}

.learn-option.incorrect {
    border-color: var(--warning-color);
    background: #ffebee;
}

.free-text-container {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.free-text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.free-text-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-answer-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.hint-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-text-hint {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.answer-format-hint {
    text-align: center;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.learn-phase-indicator {
    display: inline-block;
    /* background: var(--accent-color); */
    background: var(--btn-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
}

.i-know-btn {
    margin-top: 10px;
    /* background: var(--accent-color); */
    background: var(--btn-color);
    color: var(--light-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.i-know-btn:hover {
    background: var(--primary-color);
}

.perfect-score {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    /* background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(255, 209, 102, 0.1)); */
    border-radius: 15px;
    border: 2px dashed var(--success-color);
    margin: 20px 0;
}

.perfect-score i {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.perfect-score h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.phase-indicator {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.phase-indicator.phase-2 {
    background: var(--accent-color);
}

/* Flashcard Styles */
.flashcard-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.flashcard-header {
    text-align: center;
    margin-bottom: 30px;
}

.flashcard-counter {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.flashcard-hint {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.flashcard {
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto 30px;
    cursor: pointer;
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.flashcard-front {
    background: var(--primary-color);
    color: white;
}

.flashcard-back {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-front {
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-back {
    transform: rotateY(0);
}

.flashcard-content {
    text-align: center;
    max-width: 600px;
}

.flashcard-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.flashcard-content p {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.answer-item {
    font-size: 18px;
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.flashcard-instruction {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 20px;
    font-style: italic;
}

.flashcard-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.flashcard-progress {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.progress-text {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Admin Panel Styles */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.admin-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.admin-tab.active {
    background: var(--primary-color);
    color: white;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.reports-list,
.disabled-quizzes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.report-item,
.disabled-quiz-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.disabled-quiz-item {
    border-left-color: #f39c12;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-info h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.quiz-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
}

.creator {
    color: #666;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.report-reason {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.report-reason.spam {
    background: #ffebee;
    color: #c62828;
}

.report-reason.inappropriate {
    background: #fce4ec;
    color: #ad1457;
}

.report-reason.incorrect {
    background: #fff3e0;
    color: #ef6c00;
}

.report-reason.copyright {
    background: #e8f5e9;
    color: #2e7d32;
}

.report-details {
    margin-bottom: 15px;
    font-size: 14px;
}

.report-details div {
    margin: 5px 0;
}

.report-description {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px !important;
    border-left: 3px solid #dee2e6;
}

.report-actions,
.quiz-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.users-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.users-table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.user {
    background: #f3e5f5;
    color: #7b1fa2;
}

.admin-settings {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.settings-form .form-group {
    margin-bottom: 25px;
}

.settings-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

.settings-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.no-data i {
    font-size: 48px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-data h4 {
    margin: 0 0 10px 0;
    color: #495057;
}

.quiz-card-header {
    position: relative;
}

.visibility-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.visibility-badge.public {
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.visibility-badge.private {
    color: #f39c12;
    border: 1px solid #f39c12;
}

/* Category Filter Improvements */
.category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--background-color);
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--background-color);
    border-color: #adb5bd;
}

.category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background-color: #d1fae5;
    color: var(--success-color);
    border: 1px solid #a7f3d0;
}

.status-badge.disabled {
    background-color: #fee2e2;
    color: var(--warning-color);
    border: 1px solid #fecaca;
}

/* Danger button */
.danger-btn {
    background-color: var(--warning-color);
    color: white;
}

.danger-btn:hover {
    background-color: var(--warning-color);
}

.disable-btn {
    background-color: #f59e0b;
    color: white;
}

.disable-btn:hover {
    background-color: #d97706;
}

.enable-btn {
    background-color: var(--success-color);
    color: white;
}

.enable-btn:hover {
    background-color: var(--success-color);
}

/* Action buttons container */
td:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tagline {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 50px;
    background-color: #f0f0f0;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: var(--font-fun);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.input-group {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 50px;
    padding: 0 20px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-group i {
    color: #888;
    font-size: 18px;
}

.input-group input {
    flex: 1;
    padding: 15px 15px 15px 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: var(--font-main);
    outline: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    padding: 0 15px;
}

.error-message {
    background-color: #FFE5E5;
    color: var(--warning-color);
    padding: 15px;
    border-radius: 15px;
    margin-top: 20px;
    font-weight: 600;
    display: none;
}

.error-message.show {
    display: block;
    animation: bounceIn 0.5s;
}

.login-footer {
    margin-top: 30px;
    color: #888;
}

.login-footer i {
    color: var(--primary-color);
    margin: 0 5px;
}

.welcome-banner {
    background: var(--primary-color);
    border-radius: 25px;
    padding: 30px;
    color: var(--light-color);
    margin-bottom: 40px;
    text-align: center;
}

.welcome-banner h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
}

.welcome-banner p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.quizzes-section h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quizzes-section h3 i {
    color: var(--primary-color);
}

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    z-index: 9;
}

.quiz-card {
    background-color: var(--card-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border: 2px solid var(--text-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;

}

.quiz-card::after {
    content: "To get started, click below options";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%) translateY(-55%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quiz-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.quiz-card h4 {
    font-size: 22px;
    margin: 0;
    color: var(--primary-color);
    flex: 1;
}


.quiz-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.quiz-actions {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.quiz-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-fun);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.play-btn {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.edit-btn {
    /* background: var(--btn-color); */
    /* background: var(--background-color); */
    color: #666;
    /* color: var(--light-color); */
}

.no-quizzes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}


.no-quizzes p {
    font-size: 20px;
    margin: 10px 0;
}


.quiz-attempt-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

.quiz-header {
    text-align: center;
    margin-bottom: 60px;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 25px;
    color: var(--secondary-color-color);
}

.quiz-attempt-container .question-number {
    position: absolute;
    top: 150px;
    left: 20px;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.438);
    padding: 8px 15px;
    border-radius: 20px;
}

.quiz-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-size: 1.8rem;
}

.quiz-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    color: var(--light-color);
}

.quiz-title {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 18px;
    color: #666;
}


.timer-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    animation: pulse 1s infinite;
    padding: 15px 25px;
    color: var(--light-color);
    background: var(--warning-color);
}

.timer-warning i {
    color: var(--light-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.progress-container {
    width: 100%;
    height: 10px;
    background: var(--light-color);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
}

.question-card {
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.question-number {
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.question-text {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option-btn {
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #f0f0f0;
    background-color: var(--background-color);
    font-family: var(--font-main);
    font-size: 18px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    gap: 15px;
}

.option-btn:hover {
    background: var(--card-color);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.option-btn.selected {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 700;
}

.option-btn.correct {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--light-color);
}

.option-btn.incorrect {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--light-color);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.feedback-container {
    text-align: center;
    padding: 5px;
    border-radius: 20px;
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    animation: fadeIn 0.3s ease;
}

.feedback-correct {
    padding: 5px;
    text-align: center;
    align-items: center;
    background-color: rgba(6, 214, 160, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.feedback-correct-icon {
    /* font-size: 48px; */
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 10px;

}

.feedback-incorrect {
    background-color: rgba(239, 71, 111, 0.1);
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}



.feedback-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.results-container {
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}


.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color));
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: var(--background-color);
    border-radius: 50%;
}



.add-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.add-quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.add-quiz-title {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.quiz-form {
    background-color: var(--background-color);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.question-item {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px dashed #ddd;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-number-label {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.remove-question {
    background-color: #ffebee;
    color: var(--warning-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-item {
    display: flex;
    /* align-items: center; */
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
}

.option-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.option-input {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}


.google-btn {
    background: var(--btn-color);
    color: var(--light-color);
    width: 100%;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.google-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.google-btn i {
    font-size: 18px;
    margin-right: 10px;
}



@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}


.form-hint {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-top: 5px;
    font-style: italic;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select.form-input:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.category-preview {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background-color: var(--light-color);
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--accent-color);
}

.category-preview i {
    font-size: 0.75rem;
}



.quizzes-filter-section {
    margin-bottom: 25px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background-color);
    border-radius: 8px;
    padding: 8px 12px;
    border: 2px solid var(--light-color);
    transition: all 0.3s ease;
}

.filter-dropdown:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.filter-dropdown i {
    color: var(--primary-color);
    font-size: 1rem;
}

.filter-select {
    border: 1px solid var(--secondary-color);
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
    min-width: 180px;
    padding-right: 20px;
    padding-left: 10px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--accent-color);
    background: var(--light-color);
    padding: 8px 15px;
    border-radius: 20px;
}

#selected-category {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
}

#quiz-count {
    background: var(--background-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--accent-color);
}


.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light-color);
    background: var(--secondary-color);
}

.quiz-category i {
    font-size: 0.8rem;
}

.category-uncategorized {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}


.quiz-description {
    margin: 15px 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Loading and Error States */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border-radius: 12px;
    border: 2px dashed #ff6b6b;
}

.error-state i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.no-quizzes {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-quizzes i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.no-quizzes p {
    color: #6c757d;
    margin: 10px 0;
}

.match-game-container {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.game-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 3px solid var(--primary-color);

}

.game-card.selected {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.game-card.correct {
    animation: correctMatch 0.5s ease;
}

@keyframes correctMatch {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1);
    }
}

.game-card.incorrect {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.match-header h1 {
    background: var(--primary-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 400% 100%;
}

.timer-container.warning {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--confetti-color);
    border-radius: 50%;
    animation: confetti-fall 2s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Visibility Toggle */
.visibility-toggle {
    margin-top: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--background-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

input:checked+.toggle-slider:before {
    transform: translateX(30px);
}

.toggle-labels {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.toggle-label {
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.public-label {
    background: #e8f7f6;
    color: var(--primary-color);
    color: rgb(168, 168, 168);
    border: 2px solid var(--text-color)
}

.private-label {
    background: var(--background-color);
    color: rgb(168, 168, 168);
    border: 2px solid var(--text-color)
}

.toggle-label.active {
    background: var(--primary-color);
    color: var(--light-color);
}

.private-label.active {
    background: var(--primary-color);
    color: var(--light-color);
}

.toggle-help {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Learn Mode Styles */
.free-text-container {
    margin-top: 20px;
}

.free-text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

.free-text-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.hint-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.submit-answer-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.correct-answer {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid var(--primary-color);
}

.results-container {
    background-color: white;
    border-radius: 25px;
    padding: 15px !important;
    margin-top: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.results-title {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
}

.review-section {
    margin-top: 40px;
    text-align: left;
}

.review-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.review-item {
    background: var(--background-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--secondary-color);
    border-left: 4px solid var(--warning-color);
}

.review-item.correct {
    border-left: 5px solid var(--success-color);
}

.review-item.incorrect {
    border-left: 5px solid var(--warning-color);
}

.review-question {
    margin-bottom: 10px;
    font-weight: 600;
}

.review-answer,
.correct-answer {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--background-color);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}

.close-modal:hover {
    color: #666;
}

.modal-body {
    padding: 20px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.modal .form-group textarea {
    resize: vertical;
}

.modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.stat-item span {
    display: block;
    font-size: 14px;
    color: #495057;
}


.try-again-btn {
    background: #ff9800;
    min-width: fit-content !important;
    font-size: 1rem !important;
    color: var(--light-color);
}

.try-again-btn:hover {
    background: #f57c00;
}

/* Progress indicators */
.phase-progress {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.phase-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
}

.phase-step.active {
    color: var(--primary-color);
    font-weight: bold;
}

.phase-step.completed {
    color: var(--success-color);
}

.phase-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.phase-step:last-child::after {
    display: none;
}

.perfect-score {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--background-color) 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.perfect-score i {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.perfect-score h3 {
    color: #212529;
    margin-bottom: 15px;
}

.perfect-score p {
    color: #6c757d;
    margin-bottom: 20px;
}


.phase2-btn {
    background: var(--primary-color);
    border: none !important;
}

.phase2-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.finish-btn {
    background: var(--primary-color);
    border: none !important;
}

.finish-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.free-text-container {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--background-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.setting-item:hover {
    border-color: var(--primary-color) !important;
    background: #f0f7ff !important;
}


.new-notification-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.new-notification-alert.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.new-notification-alert .alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-notification-alert i {
    font-size: 18px;
    color: #fff;
}

.new-notification-alert span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.new-notification-alert .alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.new-notification-alert .alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-item.read {
    opacity: 0.7;
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
    border-left: 3px solid #007bff;
}

.read-badge {
    font-size: 0.8em;
    background: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.unread-badge {
    font-size: 0.8em;
    background: var(--accent-color);
    color: #212529;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.notification-actions {
    display: flex;
    gap: 5px;
}

.notification-dismiss,
.notification-delete {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-dismiss:hover {
    background: #e9ecef;
    color: var(--success-color);
}

.notification-delete:hover {
    background: #e9ecef;
    color: var(--warning-color);
}

/* Responsive  */
@media (max-width: 1024px) {

    .main-content {
        width: 100%;
    }

    .quizzes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .welcome-banner {
        margin: 10px;
        padding: 20px;
    }

    .welcome-banner h2 {
        font-size: 24px;
    }

    #content-sections {
        padding: 0 10px 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
        flex-direction: column;
    }

    .filter-controls {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .search-box {
        width: 100%;
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
    }

    .notifications-dropdown {
        width: 300px;
        right: -50px;
    }

    .user-profile-menu {
        right: -50px;
    }

    .verification-content {
        padding: 25px;
        width: 95%;
    }

    .verification-actions {
        flex-direction: column;
    }

    .auth-notification {
        top: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .logo h1 {
        font-size: 25px !important;
        margin: 0;
    }

    .answer-type-selector {
        flex-direction: column;
    }

    .option-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .option-controls {
        justify-content: flex-start;
    }

    .add-option-container {
        flex-direction: column;
        align-items: stretch;
    }

    .quiz-modes {
        flex-direction: column;
    }

    .mode-btn {
        width: 100%;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .flashcard-navigation {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin: 30px 0;
    }

    .game-card {
        width: 200px;
        height: 160px;
    }

    .game-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .timer-container,
    .score-container,
    .matches-container {
        width: 200px;
        justify-content: center;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
    }

    .game-controls .btn {
        width: 200px;
    }

    .game-over-actions {
        flex-direction: column;
    }

    .game-over-actions .btn {
        width: 100%;
    }

    .score-display {
        flex-direction: column;
        gap: 20px;
    }

    .score-details {
        text-align: center;
    }

    .learn-mode-container {
        padding: 10px !important;
    }

    .learn-mode-container .results-container {
        padding: 40px 0 !important;
    }

    .results-title {
        color: var(--primary-color);
        font-size: 25px !important;
        margin-bottom: 20px;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-circle::before {
        content: '';
        position: absolute;
        width: 130px;
        height: 130px;
    }

    .dashboard-main {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .quizzes-grid {
        grid-template-columns: 1fr !important;
    }

    .quiz-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .score-value {
        /* position: relative; */
        font-size: 30px !important;
        font-weight: 900;
        color: var(--text-color);
    }

    .user-info {
        font-size: 16px;
        padding: 6px 12px;
    }

    .dashboard-notification {
        top: 80px;
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .flip-card {
        width: 100%;
        min-height: 400px;
        perspective: 1000px;
        margin: 0 auto;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 20px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        text-align: center;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }



    .quiz-options-modal {
        min-height: 100%;
        height: 105%;
    }

    .option-group {
        margin-bottom: 15px;
    }

    .quiz-mode-buttons {
        display: flex;
        gap: 15px;
        margin-top: 30px;
    }

    .quiz-mode-btn {
        flex: 1;
        padding: 15px;
        border-radius: 15px;
        border: 3px solid;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .quiz-options-content {
        padding: 40px 30px;
        padding-top: 50px;
    }

    .option-group label {
        gap: 10px;
        font-size: 13px;
        padding: 10px;
    }

    .quiz-attempt-container {
        padding: 10px;
    }


    .question-text {
        font-size: 20px;
    }

    .option-btn {
        padding: 15px;
        font-size: 16px;
    }

    .quiz-navigation {
        flex-direction: column;
        flex-wrap: wrap;
        margin-top: 10% !important;
    }

    .quiz-mode-buttons {
        flex-direction: column;
    }

    .timer-container {
        position: fixed !important;
        top: 10px;
        right: 30px;
        padding: 10px 15px;
        font-size: 15px;
    }

    .flip-card {
        height: 250px;
    }

    .learn-question {
        font-size: 1.2rem;
        padding: 0 10px;
        text-align: start;
    }

    .learn-answer {
        background-color: rgba(255, 255, 255, 0.2);
        padding: 10px;

        margin-top: 10px;
        font-size: 1.1rem;
    }

    .quiz-header h1 {
        font-size: 1.5rem;
    }

    .quiz-header p {
        font-size: 0.8rem;
    }

    .quiz-attempt-container .question-number {
        position: absolute;
        top: 100px;
    }

    .quiz-navigation button {
        flex: 1;
        padding: 15px 5px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .quiz-card {
        padding: 20px;
    }

    .quiz-description {
        min-height: 45px;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .quiz-card h4 {
        font-size: 18px;
        margin: 0;
        color: var(--primary-color);
        flex: 1;
    }

    .quiz-card p {
        color: #666;
        margin-bottom: 0px !important;
        line-height: 1.5;
    }

    .quiz-btn {
        width: 100%;
    }

    .quiz-stats-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .stat-item i {
        color: var(--primary-color);
        font-size: 15px;

    }

    .test-mode .question-number {
        position: absolute;
        top: 280px;
    }

    .btn {
        padding: 12px 20px;
        cursor: pointer;
    }

    .quiz-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 12px 0;
        padding-top: 15px;
        border-top: 1px solid #eee;
        gap: 5px;
        flex-wrap: wrap;
        color: #666;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 5px;
        background-color: var(--background-color);
        padding: 5px;
    }

    .stat-item i {
        font-size: 17px;
        color: var(--primary-color);
        margin-bottom: 10px;
        display: block;
    }

    .stat-item span {
        display: block;
        font-size: 12px;
        color: #495057;
    }

    .game-card {
        min-width: 250px;
        min-height: max-content;
    }

    .quiz-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }


    .quiz-actions {
        flex-direction: column;
    }

    .quiz-btn {
        width: 100%;
        justify-content: center;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-filter {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        min-width: 150px;
    }

    .quiz-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-stats {
        width: 100%;
        align-content: start;
        justify-content: space-between;
    }

    .quiz-actions {
        flex-wrap: wrap;
    }

    .add-quiz-container {
        max-width: fit-content;
        width: 100%;
        padding: 40px 10px;

    }

    .quiz-form {
        padding: 10px;
    }

    .question-item {
        padding: 10px;

    }

    .option-item {
        flex-direction: row;
        gap: 7px;
        margin-bottom: 15px;
        padding: 15px;
    }

    .option-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: fit-content;
    }

}

@media (max-width: 480px) {
    .welcome-banner h2 {
        font-size: 20px;
    }

    .welcome-banner p {
        font-size: 14px;
    }

    .quiz-card {
        padding: 15px;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .notifications-dropdown {
        width: 280px;
        right: -80px;
    }

    .user-profile-menu {
        width: 200px;
        right: -80px;
    }


    .quiz-date {
        align-self: flex-start;
    }

    .quiz-options-modal {
        min-height: 100%;
        height: 110%;
    }

    .quiz-options-content {
        padding: 40px 30px;
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .test-mode .question-number {
        position: absolute;
        top: 300px !important;
    }
}

#toggle-state-btn {
    display: none;
    /*defult hidden*/
}

@media (max-width: 1023px) {
    #sidebar-toggle {
        /* position: fixed;
        top: 15px;
        left: 50%;
        z-index: 1001; */
        background: var(--primary-color);
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        z-index: 999;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    #sidebar {
        position: fixed;
        left: -280px;
        /* top: 0; */
        height: 100vh;
        width: 280px;
        transition: left 0.4s ease;
        z-index: 99;
    }

    #sidebar:not(.collapsed) {
        left: 0;
    }
}


/* Share Modal Styles */
.share-modal-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.share-modal {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-btn.facebook:hover {
    background: #166fe5 !important;
}

.social-share-btn.twitter:hover {
    background: #1a91da !important;
}

.social-share-btn.whatsapp:hover {
    background: #1ebe5d !important;
}

.social-share-btn.linkedin:hover {
    background: #0065a1 !important;
}

.social-share-btn.telegram:hover {
    background: #0077b6 !important;
}

.social-share-btn.email:hover {
    background: #555 !important;
}

.close-share-modal:hover {
    color: #333 !important;
}

/* Share Modal Overlay */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.share-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.share-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-modal-header h2 i {
    color: var(--primary-color);
}

.close-share-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-share-modal:hover {
    color: #333;
    background-color: #f5f5f5;
}

/* Share URL Section */
.share-url-section {
    margin-bottom: 25px;
}

.share-url-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}

.url-input-container {
    display: flex;
    gap: 10px;
}

#share-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-color);
    cursor: pointer;
    font-family: monospace;
    transition: border-color 0.3s;
}

#share-url-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
}

#copy-link-btn {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

#copy-link-btn:hover {
    transform: translateY(-2px);
}

#copy-link-btn:active {
    transform: translateY(0);
}

#copy-status {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    height: 20px;
}

#copy-status i {
    color: var(--success-color);
}

.social-share-section {
    margin-bottom: 25px;
}

.social-share-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: var(--light-color);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-btn:active {
    transform: translateY(-1px);
}

.social-share-btn.facebook {
    background: #1877F2;
}

.social-share-btn.facebook:hover {
    background: #166fe5;
}

.social-share-btn.twitter {
    background: #1DA1F2;
}

.social-share-btn.twitter:hover {
    background: #1a91da;
}

.social-share-btn.whatsapp {
    background: #25D366;
}

.social-share-btn.whatsapp:hover {
    background: #1ebe5d;
}

.social-share-btn.linkedin {
    background: #0077B5;
}

.social-share-btn.linkedin:hover {
    background: #0065a1;
}

.social-share-btn.telegram {
    background: #0088cc;
}

.social-share-btn.telegram:hover {
    background: #0077b6;
}

.social-share-btn.email {
    background: #666;
}

.social-share-btn.email:hover {
    background: #555;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.private-quiz-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: var(--font-main);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.private-quiz-alert {
    background: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

.private-alert-icon {
    font-size: 64px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.private-alert-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.private-alert-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.private-alert-message strong {
    color: #333;
    font-weight: 600;
}

.private-alert-info {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 25px;
    text-align: left;
}

.private-alert-info p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.private-alert-info i {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.private-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cancel-private-btn {
    background: var(--btn-color);
    color: var(--light-color);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.cancel-private-btn:active {
    transform: translateY(1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .share-modal {
        padding: 20px;
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }

    .share-modal-header h2 {
        font-size: 1.3rem;
    }

    .url-input-container {
        flex-direction: column;
    }

    #copy-link-btn {
        justify-content: center;
        padding: 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-share-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .share-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px !important;
        margin: 10px;
    }

    .social-icons {
        flex-wrap: wrap !important;
    }

    .social-share-btn {
        width: 45px !important;
        height: 45px !important;
    }

    .private-quiz-alert {
        padding: 20px;
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }

    .private-alert-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .private-alert-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .private-alert-message {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .private-alert-actions {
        flex-direction: column;
        gap: 8px;
    }

    .make-public-btn,
    .cancel-private-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .share-modal {
        padding: 15px;
    }

    .share-modal-header {
        margin-bottom: 20px;
    }

    .social-share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .private-quiz-alert {
        padding: 15px;
    }

    .private-alert-icon {
        font-size: 40px;
    }

    .private-alert-info p {
        font-size: 13px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .private-alert-info i {
        margin-top: 0;
    }
}

#quiz-preview-section {
    padding: 20px;

}

.preview-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.preview-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.preview-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;

}

.preview-container .quiz-card {
    margin-bottom: 30px;
}

.preview-instructions {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.preview-instructions h3 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-instructions h3 i {
    color: var(--primary-color);
}

.preview-instructions p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.preview-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preview-instructions li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.preview-instructions li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.preview-instructions li strong {
    color: #333;
}

.hidden {
    display: none !important;
}

/*  Loader */
.simple-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
}

.simple-loader.show {
    display: flex;
}

.simple-loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: simple-spin 1s linear infinite;
    margin-bottom: 15px;
}

.simple-loader-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes simple-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.feedback-btn {
    padding: 10px 15px;
    background: var(--light-color);
    border: none;
    border-radius: 7px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 700;
}

.update-text-cont {
    width: 100%;
    /* max-width: 700px; */
    padding: 30px 24px;
    height: 100%;
    background: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--text-color);
    border-radius: 8px;
    line-height: 1.2;
}

.update-text-cont strong {
    color: var(--secondary-color);
}

.update-text-cont p {
    font-size: 1.05rem;
}

.update-text-cont h4 {
    font-size: 1.13rem;
    margin: 0;
    padding: 5px 0;
}

.feature-list {
    height: fit-content;
    padding-left: 20px;
    margin: 0 !important;
}

.feature-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    list-style-position: inside;
}

.quote-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.quote-icon.right {
    float: right;
}

.cta-text {
    margin-top: 10px;
    font-size: 1.1rem;
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.signature {
    font-weight: 600;
    opacity: 0.85;
}

.premium-offer-banner.active~.container .main-content {
    margin-top: 140px;
}

.premium-offer-banner:not(.active)~.container .dashboard-header {
    top: 0;
}

.premium-offer-banner:not(.active)~.container .sidebar {
    top: 80px;
}

.premium-offer-banner:not(.active)~.container .main-content {
    margin-top: 80px;
}

@media (max-width: 1024px) {
    .sidebar {
        left: -260px;
        top: 80px;
        z-index: 1001;
    }

    .sidebar.active {
        left: 0;
        top: 80px;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-content .update-text-cont {
        width: 95%;
        padding: 30px;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .feature-list.two-col {
        grid-template-columns: 1fr;
    }

    .timer-status-cards {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button {
        width: 100%;
    }

    .dashboard-header {
        padding: 10px 20px;
        height: 70px;
    }

    .premium-offer-banner.active~.container .dashboard-header {
        top: 45px;
    }

    .premium-offer-banner {
        padding: 10px;
    }

    .premium-offer-banner .head {
        font-size: 12px;
    }

    .premium-offer-banner .countdown {
        font-size: 12px;
    }

    .main-content {
        padding: 15px;
    }
}


@media (max-width: 480px) {


    .premium-offer-banner .head {
        font-size: 14px;
    }

    .premium-offer-banner .countdown {
        font-size: 12px;
        padding: 2px 8px;
    }
}

.star-filter-modal-content {
    height: 100%;
    overflow: auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}