/* Namespace all styles to avoid WordPress theme conflicts */
.financial-quiz-container {
    font-family: 'Inter', sans-serif !important;
    background-color: #f8fafc;
    min-height: 100vh;
}

.financial-quiz-container * {
    box-sizing: border-box;
}

.financial-quiz-container html {
    scroll-behavior: smooth;
}

.financial-quiz-container .fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.financial-quiz-container .answer-btn {
    transition: all 0.2s ease-in-out;
}

.financial-quiz-container .answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.financial-quiz-container .correct {
    background-color: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.financial-quiz-container .incorrect {
    background-color: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.financial-quiz-container .disabled-answers .answer-btn {
    cursor: not-allowed;
    opacity: 0.8;
}

.financial-quiz-container .disabled-answers .answer-btn:hover {
    transform: none;
    box-shadow: none;
}

.financial-quiz-container .sidebar-link.active {
    background-color: #e0f2fe !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
}

.financial-quiz-container #sidebar {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .financial-quiz-container #sidebar {
        transform: translateX(-100%);
    }
    .financial-quiz-container #sidebar.open {
        transform: translateX(0);
    }
}

/* Progress animations */
.financial-quiz-container .progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Loading states */
.financial-quiz-container .loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .financial-quiz-container .text-4xl { font-size: 2rem !important; }
    .financial-quiz-container .text-3xl { font-size: 1.5rem !important; }
    .financial-quiz-container .p-8 { padding: 1rem !important; }
}

/* Print styles for certificates */
@media print {
    .financial-quiz-container .no-print { display: none !important; }
}
