/* QuizByAI - Cosmos Theme Enhanced Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --cosmos-primary: #2780E3;
    --cosmos-success: #3FB618;
    --cosmos-info: #9954BB;
    --cosmos-warning: #FF7518;
    --cosmos-danger: #FF0039;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Typography Enhancement */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
}

/* Modern Card Enhancements */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cosmos-primary), var(--cosmos-info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0 !important;
}

.card-header h2 {
    color: white;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.card-body {
    padding: 2rem;
}

/* Enhanced Navbar */
.navbar {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    font-size: 1.1rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.4rem 0.75rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.15rem;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

.nav-link i {
    font-size: 1.1rem;
}

/* Modern Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    box-shadow: 0 4px 12px rgba(39, 128, 227, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(39, 128, 227, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--cosmos-primary);
    color: var(--cosmos-primary);
}

.btn-outline-primary:hover {
    background: var(--cosmos-primary);
    color: white;
    border-color: var(--cosmos-primary);
}

.btn-outline-success {
    border: 2px solid var(--cosmos-success);
    color: var(--cosmos-success);
}

.btn-outline-success:hover {
    background: var(--cosmos-success);
    color: white;
    border-color: var(--cosmos-success);
}

.btn-outline-info {
    border: 2px solid var(--cosmos-info);
    color: var(--cosmos-info);
}

.btn-outline-info:hover {
    background: var(--cosmos-info);
    color: white;
    border-color: var(--cosmos-info);
}

/* Enhanced Alerts */
.alert {
    border: none;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-info {
    background: linear-gradient(135deg, rgba(153, 84, 187, 0.1) 0%, rgba(153, 84, 187, 0.05) 100%);
    border-left: 4px solid var(--cosmos-info);
}

.alert-success {
    background: linear-gradient(135deg, rgba(63, 182, 24, 0.1) 0%, rgba(63, 182, 24, 0.05) 100%);
    border-left: 4px solid var(--cosmos-success);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 117, 24, 0.1) 0%, rgba(255, 117, 24, 0.05) 100%);
    border-left: 4px solid var(--cosmos-warning);
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--cosmos-primary);
    box-shadow: 0 0 0 4px rgba(39, 128, 227, 0.1);
}

.input-group-lg .form-control {
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
}

/* Modern Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--cosmos-primary);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(39, 128, 227, 0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid var(--cosmos-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(39, 128, 227, 0.15);
}

.range-value {
    display: inline-block;
    min-width: 120px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* Topic Badges */
.selected-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
    min-height: 60px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 14px;
    border: 2px dashed #dee2e6;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 3px 10px rgba(39, 128, 227, 0.3);
    animation: bounceIn 0.5s ease;
    transition: all 0.3s ease;
}

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

.topic-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 128, 227, 0.4);
}

.topic-badge .remove-topic {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.topic-badge .remove-topic:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

#topicCount {
    background: white !important;
    color: var(--cosmos-primary) !important;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Question Cards */
.question-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--cosmos-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--cosmos-info);
}

.option-label {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0.75rem 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-label:hover {
    background: #e3f2fd;
    border-color: var(--cosmos-primary);
    transform: translateX(5px);
}

/* Modern Popup Loader - Modal Style */
.spinner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
}

.spinner-container.show {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loader-content {
    text-align: center;
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modern Spinner */
.modern-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--cosmos-primary);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--cosmos-info);
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--cosmos-success);
    animation-delay: 0.6s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-messages {
    margin-top: 1.5rem;
    min-height: 30px;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.loading-message {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    animation: fadeInOut 2.5s ease-in-out infinite;
}

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

/* Quiz Cards Listing */
.quiz-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.quiz-card:hover::before {
    opacity: 1;
}

.quiz-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.quiz-meta i {
    margin-right: 0.5rem;
    color: var(--cosmos-primary);
}

/* Topic Tags */
.topic-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background: #e3f2fd;
    border: 1px solid var(--cosmos-primary);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--cosmos-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: var(--cosmos-primary);
    color: white;
    transform: translateY(-2px);
}

/* Difficulty Badges */
.difficulty-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.difficulty-1 {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
}

.difficulty-2 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: white;
}

.difficulty-3 {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9f1c 100%);
    color: white;
}

.difficulty-4 {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
    color: white;
}

.difficulty-5 {
    background: linear-gradient(135deg, #f5576c 0%, #e94057 100%);
    color: white;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.pagination .page-link {
    border-radius: 10px;
    padding: 0.625rem 1rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.pagination .page-link:hover {
    background: var(--cosmos-primary);
    border-color: var(--cosmos-primary);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(39, 128, 227, 0.3);
}

/* Quiz ID Styling */
.quiz-id {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--cosmos-info);
    font-size: 1.125rem;
}

/* Footer */
footer {
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

.footer-description {
    line-height: 1.8;
    font-size: 0.95rem;
    opacity: 0.95;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-contact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.footer-contact i {
    font-size: 1.25rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #fff !important;
}

.footer-link i {
    font-size: 0.85rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-link {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tool-link i {
    font-size: 2rem;
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: white;
    color: var(--cosmos-primary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon i {
    font-size: 1.25rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

footer h5 {
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.35rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.9rem;
        margin: 0 0.1rem;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .modern-spinner {
        width: 80px;
        height: 80px;
    }

    .loader-text {
        font-size: 1.25rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.card-header i {
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card title */
.card-title {
    color: #2c3e50;
    font-weight: 600;
}

/* Text colors */
.text-muted {
    color: #6c757d !important;
}

/* Radio buttons with space */
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--cosmos-primary);
}

/* Check Answer Button */
.check-answer-btn {
    margin-top: 1rem;
    min-width: 140px;
}

/* Answer Feedback */
.answer-feedback {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    animation: slideInDown 0.4s ease;
}

.answer-feedback.correct {
    background: linear-gradient(135deg, rgba(63, 182, 24, 0.15) 0%, rgba(63, 182, 24, 0.1) 100%);
    border-left: 4px solid var(--cosmos-success);
    color: var(--cosmos-success);
}

.answer-feedback.wrong {
    background: linear-gradient(135deg, rgba(255, 0, 57, 0.15) 0%, rgba(255, 0, 57, 0.1) 100%);
    border-left: 4px solid var(--cosmos-danger);
    color: var(--cosmos-danger);
}

/* Share Button */
.share-btn {
    background: linear-gradient(135deg, #3FB618 0%, #2d8a13 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(63, 182, 24, 0.4);
}

/* Keyword input gap */
.input-group {
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

/* Loading messages */
.loading-messages {
    margin-top: 1.5rem;
    min-height: 30px;
}

.loading-message {
    color: #6c757d;
    font-size: 1rem;
    font-style: italic;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.share-modal.show {
    display: flex !important;
}

.share-modal-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.share-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

.close-modal {
    background: #f8f9fa;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #e9ecef;
    color: #2c3e50;
    transform: rotate(90deg);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .share-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.share-option {
    padding: 1.25rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-option i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.share-option.whatsapp { border-color: #25D366; }
.share-option.whatsapp:hover { background: #25D366; }
.share-option.whatsapp i { color: #25D366; }
.share-option.whatsapp:hover i,
.share-option.whatsapp:hover span { color: white; }

.share-option.facebook { border-color: #1877F2; }
.share-option.facebook:hover { background: #1877F2; }
.share-option.facebook i { color: #1877F2; }
.share-option.facebook:hover i,
.share-option.facebook:hover span { color: white; }

.share-option.twitter { border-color: #000000; }
.share-option.twitter:hover { background: #000000; }
.share-option.twitter i { color: #000000; }
.share-option.twitter:hover i,
.share-option.twitter:hover span { color: white; }

.share-option.linkedin { border-color: #0A66C2; }
.share-option.linkedin:hover { background: #0A66C2; }
.share-option.linkedin i { color: #0A66C2; }
.share-option.linkedin:hover i,
.share-option.linkedin:hover span { color: white; }

.share-option.telegram { border-color: #0088cc; }
.share-option.telegram:hover { background: #0088cc; }
.share-option.telegram i { color: #0088cc; }
.share-option.telegram:hover i,
.share-option.telegram:hover span { color: white; }

.share-option.reddit { border-color: #FF4500; }
.share-option.reddit:hover { background: #FF4500; }
.share-option.reddit i { color: #FF4500; }
.share-option.reddit:hover i,
.share-option.reddit:hover span { color: white; }

.share-option.email { border-color: #EA4335; }
.share-option.email:hover { background: #EA4335; }
.share-option.email i { color: #EA4335; }
.share-option.email:hover i,
.share-option.email:hover span { color: white; }

.share-option.copy { border-color: var(--cosmos-primary); }
.share-option.copy:hover { background: var(--cosmos-primary); }
.share-option.copy i { color: var(--cosmos-primary); }
.share-option.copy:hover i,
.share-option.copy:hover span { color: white; }

.share-option span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.share-url-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.share-url-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.share-url-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #6c757d;
    position: relative;
}

.copy-success {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--cosmos-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideInDown 0.3s ease;
}

/* Animal Captcha */
.captcha-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.captcha-question {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.captcha-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.captcha-option {
    padding: 0.75rem 1rem;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2.5rem;
    flex: 0 1 auto;
    min-width: 70px;
}

@media (max-width: 576px) {
    .captcha-option {
        font-size: 2rem;
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
}

.captcha-option:hover {
    border-color: var(--cosmos-primary);
    transform: scale(1.05);
}

.captcha-option.selected {
    border-color: var(--cosmos-primary);
    background: linear-gradient(135deg, rgba(39, 128, 227, 0.1) 0%, rgba(153, 84, 187, 0.1) 100%);
    box-shadow: 0 0 0 3px rgba(39, 128, 227, 0.2);
}

.captcha-option.correct {
    border-color: var(--cosmos-success);
    background: linear-gradient(135deg, rgba(63, 182, 24, 0.1) 0%, rgba(63, 182, 24, 0.05) 100%);
    animation: pulse 0.5s ease;
}

.captcha-option.wrong {
    border-color: var(--cosmos-danger);
    background: linear-gradient(135deg, rgba(255, 0, 57, 0.1) 0%, rgba(255, 0, 57, 0.05) 100%);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Button size consistency */
.btn-sm, .check-answer-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

/* Contact Page Styles */
.contact-info-section {
    position: sticky;
    top: 20px;
}

.contact-info-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.contact-details h5 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--cosmos-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Info Section Styles */
.info-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border-left: 5px solid var(--cosmos-primary);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--cosmos-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--cosmos-info);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(39, 128, 227, 0.05) 0%, rgba(153, 84, 187, 0.05) 100%);
    border-color: var(--cosmos-primary);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--cosmos-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.feature-item h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 1.25rem 1.5rem 1.25rem 4.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--cosmos-primary);
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.faq-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--cosmos-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question i {
    color: var(--cosmos-primary);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 1.25rem 1.5rem;
    max-height: 500px;
}

/* SEO Section */
.seo-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
}

.seo-content p {
    font-size: 0.875rem;
    line-height: 2;
    margin: 0;
}

.seo-content a {
    color: var(--cosmos-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.seo-content a:hover {
    color: var(--cosmos-info);
    background: rgba(39, 128, 227, 0.1);
    text-decoration: none;
}

/* Card View / Presentation Mode */
.card-view-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    overflow: hidden;
}

.card-view-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-view-slide {
    display: none;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    min-height: 400px;
    background: white;
    border-radius: 24px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideIn 0.5s ease;
    position: relative;
}

.card-view-slide.active {
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Welcome Slide */
.welcome-slide {
    text-align: center;
    justify-content: flex-start;
    background: white;
    padding-bottom: 20px !important;
    padding-top: 1rem;
}

.welcome-slide h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.welcome-slide .lead {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.welcome-slide .quiz-meta-info {
    display: inline-block;
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: 2px solid #e9ecef;
}

.welcome-slide .quiz-meta-info .meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    margin: 0.35rem 0;
    background: white;
    border-radius: 10px;
    gap: 2rem;
}

.welcome-slide .meta-item i {
    font-size: 1.25rem;
    color: var(--cosmos-primary);
}

.welcome-slide .meta-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 130px;
    text-align: left;
    font-size: 0.95rem;
}

.welcome-slide .meta-value {
    font-weight: 700;
    color: var(--cosmos-primary);
    font-size: 1rem;
}

.welcome-slide .text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.welcome-slide .thank-you-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Question Slide */
.question-slide {
    padding: 1.5rem 2rem 20px 2rem;
}

.question-slide .slide-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cosmos-info);
    margin-bottom: 0.65rem;
}

.question-slide .question-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.question-slide .options-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.question-slide .option-card {
    padding: 0.85rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.question-slide .option-card:hover {
    background: #e3f2fd;
    border-color: var(--cosmos-primary);
    transform: translateX(10px);
}

.question-slide .option-card.selected {
    background: linear-gradient(135deg, rgba(39, 128, 227, 0.1) 0%, rgba(153, 84, 187, 0.1) 100%);
    border-color: var(--cosmos-primary);
    box-shadow: 0 0 0 3px rgba(39, 128, 227, 0.2);
}

.question-slide .option-card.correct {
    background: linear-gradient(135deg, rgba(63, 182, 24, 0.1) 0%, rgba(63, 182, 24, 0.05) 100%);
    border-color: var(--cosmos-success);
}

.question-slide .option-card.wrong {
    background: linear-gradient(135deg, rgba(255, 0, 57, 0.1) 0%, rgba(255, 0, 57, 0.05) 100%);
    border-color: var(--cosmos-danger);
}

.question-slide .option-letter {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.question-slide .option-text {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.question-slide .explanation-box {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f0f8ff;
    border-left: 4px solid var(--cosmos-info);
    border-radius: 10px;
    display: none;
    margin-bottom: 0.5rem;
}

.question-slide .explanation-box h5 {
    font-size: 0.95rem;
}

.question-slide .explanation-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.question-slide .explanation-box.show {
    display: block;
    animation: fadeInDown 0.4s ease;
}

/* Thank You Slide */
.thankyou-slide {
    text-align: center;
    justify-content: flex-start;
    background: white;
    padding-bottom: 20px !important;
    padding-top: 1.5rem;
}

.thankyou-slide h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cosmos-success);
    margin-bottom: 0.75rem;
}

.thankyou-slide .thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thankyou-slide p {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 500;
}

.thankyou-slide .generated-by {
    display: inline-block;
    padding: 1.5rem 2.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
}

.thankyou-slide .generated-by h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.thankyou-slide .generated-by h2 {
    font-size: 1.75rem;
}

.thankyou-slide .generated-by p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.thankyou-slide .generated-by img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.thankyou-slide .btn-home {
    margin-top: 1rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

/* Card View Navigation */
.card-view-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.card-view-nav button {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.card-view-nav .btn-prev,
.card-view-nav .btn-next {
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
}

.card-view-nav .btn-prev:hover,
.card-view-nav .btn-next:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 128, 227, 0.4);
}

.card-view-nav .btn-prev:disabled,
.card-view-nav .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card-view-nav .slide-indicator {
    font-weight: 600;
    color: #2c3e50;
    padding: 0 1rem;
}

.card-view-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.card-view-close:hover {
    background: var(--cosmos-danger);
    color: white;
    transform: rotate(90deg);
}

/* Card View Button */
.btn-card-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-card-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .card-view-slide {
        width: 95%;
        max-height: 85vh;
        padding: 1.5rem 1.25rem;
    }

    .welcome-slide {
        padding-bottom: 20px !important;
        padding-top: 1rem;
    }

    .welcome-slide h1 {
        font-size: 1.85rem;
    }

    .welcome-slide .lead {
        font-size: 1rem;
    }

    .welcome-slide .quiz-meta-info {
        padding: 1.25rem 1.5rem;
    }

    .welcome-slide .meta-item {
        padding: 0.65rem 1rem;
        gap: 1rem;
    }

    .welcome-slide .meta-label {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .welcome-slide .meta-value {
        font-size: 0.9rem;
    }

    .welcome-slide .thank-you-icon {
        font-size: 2.75rem;
    }

    .question-slide {
        padding: 1.25rem 1rem 20px 1rem;
    }

    .question-slide .question-text {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .question-slide .option-card {
        padding: 0.75rem 1rem;
    }

    .question-slide .option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .question-slide .option-text {
        font-size: 0.85rem;
    }

    .question-slide .explanation-box {
        padding: 0.85rem 1rem;
    }

    .question-slide .explanation-box h5 {
        font-size: 0.85rem;
    }

    .question-slide .explanation-box p {
        font-size: 0.8rem;
    }

    .thankyou-slide {
        padding-bottom: 20px !important;
        padding-top: 1rem;
    }

    .thankyou-slide h1 {
        font-size: 2rem;
    }

    .thankyou-slide .thank-you-icon {
        font-size: 3rem;
    }

    .thankyou-slide p {
        font-size: 0.95rem;
    }

    .thankyou-slide .generated-by {
        padding: 1.25rem 1.75rem;
    }

    .thankyou-slide .generated-by h4 {
        font-size: 1rem;
    }

    .thankyou-slide .generated-by h2 {
        font-size: 1.5rem;
    }

    .thankyou-slide .btn-home {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .card-view-nav {
        bottom: 1rem;
        padding: 0.5rem 0.85rem;
        gap: 0.5rem;
    }

    .card-view-nav button {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .card-view-nav .slide-indicator {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .card-view-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cosmos-primary);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1000;
    border-top: 1px solid #e9ecef;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    flex: 1;
    max-width: 80px;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item span {
    font-weight: 500;
    font-size: 0.7rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--cosmos-primary);
    background: rgba(39, 128, 227, 0.1);
}

.bottom-nav-center {
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white !important;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    box-shadow: 0 4px 15px rgba(39, 128, 227, 0.4);
}

.bottom-nav-center i {
    font-size: 2rem;
    margin-bottom: 0;
}

.bottom-nav-center span {
    font-size: 0.65rem;
    margin-top: 0.25rem;
}

.bottom-nav-center:hover {
    background: linear-gradient(135deg, var(--cosmos-info) 0%, var(--cosmos-primary) 100%);
    transform: scale(1.05);
}

/* Add padding to body on mobile to account for bottom nav */
@media (max-width: 991.98px) {
    main {
        padding-bottom: 80px !important;
    }

    footer {
        margin-bottom: 60px;
    }
}

/* Card View Score Display */
.card-view-score {
    position: fixed;
    top: 80px;
    right: 30px;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 10001;
    min-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(150px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card-view-score .score-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-view-score .score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.3s ease;
}

.card-view-score .score-value.score-update {
    transform: scale(1.2);
}

.card-view-score .score-progress {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Score Animation */
.score-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    animation: scoreFloat 1s ease-out;
    pointer-events: none;
}

.score-animation.correct {
    color: #3FB618;
}

.score-animation.wrong {
    color: #FF0039;
}

@keyframes scoreFloat {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -100%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150%) scale(1);
        opacity: 0;
    }
}

/* Final Score Display on Thank You Slide */
.final-score-container {
    background: linear-gradient(135deg, rgba(39, 128, 227, 0.1) 0%, rgba(153, 84, 187, 0.1) 100%);
    border: 3px solid var(--cosmos-primary);
    border-radius: 20px;
    padding: 40px;
    margin: 30px auto;
    max-width: 500px;
    animation: scoreReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scoreReveal {
    0% {
        transform: scale(0.8) rotateY(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}

.final-score-label {
    font-size: 1.2rem;
    color: var(--cosmos-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.final-score-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cosmos-primary) 0%, var(--cosmos-info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.final-score-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cosmos-info);
    margin-bottom: 20px;
}

.final-score-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(39, 128, 227, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-view-score {
        top: 60px;
        right: 15px;
        padding: 15px;
        min-width: 100px;
    }

    .card-view-score .score-value {
        font-size: 2.5rem;
    }

    .final-score-container {
        padding: 30px 20px;
    }

    .final-score-value {
        font-size: 3rem;
    }

    .final-score-percentage {
        font-size: 1.5rem;
    }

    .final-score-message {
        font-size: 1.1rem;
    }
}
