/* Quiz-specific enhanced styles */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5649c0;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --info: #74b9ff;
    --light: #f8f9fa;
    --dark: #2d3436;
    --gray: #636e72;
    --light-gray: #dfe6e9;
    --review-color: #f39c12;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and base */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.header-brand:hover {
    color: var(--primary-dark);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-display {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 90px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.submit-btn {
    background: var(--success) !important;
    color: white !important;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem 100px;
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
}

.welcome-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow);
}

.welcome-logo i {
    font-size: 3.5rem;
    color: white;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.test-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.test-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.meta-card {
    background: var(--light);
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    min-width: 130px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.meta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.meta-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.meta-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.meta-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.instructions-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.05);
}

.instructions-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.instruction-item i {
    width: 24px;
    color: var(--success);
    font-size: 1rem;
}

.start-test-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.start-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Question Progress */
.question-progress {
    background: white;
    border-radius: var(--radius);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-counter {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.progress-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

.stat-item i {
    color: var(--primary);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.5s ease;
}

/* Question Card */
.questions-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.question-card {
    padding: 2.5rem;
}

.question-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--dark);
    font-weight: 500;
}

.question-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.option-item {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    background: var(--light);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.option-label:hover {
    border-color: var(--primary-light);
    background: rgba(108, 92, 231, 0.03);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.option-input:checked + .option-label {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.08);
    box-shadow: var(--shadow-sm);
}

.option-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 1rem;
}

.option-input:checked + .option-label .option-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.option-text {
    flex: 1;
    line-height: 1.5;
}

.option-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* Review Mode Styles */
.review-mode .option-label.correct-answer {
    border-color: var(--success) !important;
    background: rgba(0, 184, 148, 0.08) !important;
}

.review-mode .option-label.correct-answer .option-number {
    background: var(--success) !important;
    color: white !important;
    border-color: var(--success) !important;
}

.review-mode .option-input:checked + .option-label.incorrect {
    border-color: var(--danger) !important;
    background: rgba(214, 48, 49, 0.08) !important;
}

.review-mode .option-input:checked + .option-label.incorrect .option-number {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}

/* Feedback Icons */
.feedback-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.correct-icon {
    background: var(--success);
}

.incorrect-icon {
    background: var(--danger);
}

/* Solution Container */
.solution-container {
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
    border: 1px solid rgba(0,0,0,0.05);
}

.solution-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.solution-text {
    color: var(--dark);
    line-height: 1.7;
    font-size: 1rem;
}

.solution-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 800;
    border-top: 1px solid var(--light-gray);
}

.nav-btn {
    height: 52px;
    border-radius: var(--radius);
    border: 2px solid var(--light-gray);
    background: white;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.8rem;
    transition: var(--transition);
    gap: 0.6rem;
    cursor: pointer;
    min-width: 130px;
    font-size: 0.95rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-btn-outline {
    border-color: var(--primary);
}

.nav-btn-outline:hover {
    background: var(--primary);
    color: white;
}

.nav-btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.nav-btn-review {
    border-color: var(--review-color);
    color: var(--review-color);
}

.nav-btn-review:hover {
    background: var(--review-color);
    color: white;
}

.nav-btn-review.active {
    background: var(--review-color);
    color: white;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-overlay.show .modal-card {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    position: relative;
}

.modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.test-name {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 250px);
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Questions Grid Modal */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--light-gray);
}

.legend-box.attempted {
    background: var(--primary);
    border-color: var(--primary);
}

.legend-box.marked {
    background: var(--review-color);
    border-color: var(--review-color);
    position: relative;
}

.legend-box.marked::after {
    content: '★';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 10px;
    color: white;
}

.legend-box.current {
    background: var(--info);
    border-color: var(--info);
}

.legend-box.correct {
    background: var(--success);
    border-color: var(--success);
}

.legend-box.incorrect {
    background: var(--danger);
    border-color: var(--danger);
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 1rem;
}

.q-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    border: 2px solid var(--light-gray);
    background: white;
    transition: var(--transition);
    position: relative;
    font-size: 1rem;
}

.q-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.q-box.attempted {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.q-box.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.q-box.incorrect {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.q-box.current {
    border-color: var(--info);
    border-width: 3px;
    box-shadow: var(--shadow);
    transform: scale(1.05);
}

.q-box.marked::after {
    content: '★';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    color: var(--review-color);
    background: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Results Modal */
.results-modal-card {
    max-width: 1000px;
}

.results-body {
    padding: 2.5rem;
}

.results-summary {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
}

.score-circle {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--light-gray);
}

.score-circle-fill {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--primary);
    border-color: var(--primary) var(--primary) transparent transparent;
    transition: transform 0.8s ease;
    transform: rotate(0deg);
}

.score-inner {
    background: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.score-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 600;
    margin-top: 0.25rem;
}

.score-details {
    text-align: center;
}

.score-marks {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.score-subtitle {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem;
}

.stat-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-correct {
    border-top-color: var(--success);
}

.stat-incorrect {
    border-top-color: var(--danger);
}

.stat-unattempted {
    border-top-color: var(--gray);
}

.stat-marked {
    border-top-color: var(--review-color);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.detailed-stats {
    border-top: 1px solid var(--light-gray);
    padding-top: 2.5rem;
}

.detailed-stats h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: var(--light);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.detail-label {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

.detail-value {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.detail-value.positive {
    color: var(--success);
}

.detail-value.negative {
    color: var(--danger);
}

.detail-value.final-score {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Confirmation Modal */
.confirmation-stats {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.confirmation-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--warning);
    font-weight: 500;
    padding: 1.2rem;
    background: rgba(253, 203, 110, 0.1);
    border-radius: var(--radius);
    border-left: 5px solid var(--warning);
}

/* Button Styles */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

/* Ad Integration */
.ad-container-quiz {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-header {
        padding: 0 1rem;
        height: 65px;
    }

    .main-content {
        margin-top: 65px;
        padding: 1rem 1rem 90px;
    }

    .welcome-container {
        padding: 2rem 1.5rem;
    }

    .welcome-title {
        font-size: 1.9rem;
    }

    .test-meta {
        gap: 1rem;
    }

    .meta-card {
        min-width: 110px;
        padding: 1.2rem;
    }

    .score-display {
        flex-direction: column;
        gap: 1.5rem;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .detailed-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        min-width: 90px;
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .nav-btn-text {
        display: none;
    }

    .questions-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 0.8rem;
    }

    .q-box {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-controls {
        gap: 0.5rem;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timer-display {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        min-width: 75px;
    }

    .welcome-container {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.6rem;
    }

    .test-meta {
        flex-direction: column;
        align-items: center;
    }

    .meta-card {
        width: 100%;
        max-width: 200px;
    }

    .question-card {
        padding: 1.5rem;
    }

    .option-label {
        padding: 1rem;
        gap: 1rem;
    }

    .option-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .bottom-nav {
        height: 75px;
        padding: 0 1rem;
    }

    .nav-btn {
        height: 45px;
        min-width: 70px;
        padding: 0 0.8rem;
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .quiz-header,
    .bottom-nav,
    .modal-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 1rem;
    }
}

/* Animation for loading */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: slideUp 0.4s ease;
}

/* Focus styles for accessibility */
.control-btn:focus,
.nav-btn:focus,
.btn:focus,
.quiz-type-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
