/* ==========================================
   Plateforme de Cours - Styles CSS
   ========================================== */

/* === Reset & Variables === */
:root {
    --primary: #4A90D9;
    --primary-dark: #357ABD;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --light: #ECF0F1;
    --white: #FFFFFF;
    --bg: #F5F7FA;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

img { max-width: 100%; }

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Navbar === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand:hover { color: var(--primary-dark); }

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--light);
}

.nav-username {
    font-size: 0.9rem;
    color: var(--gray);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding: 30px 20px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

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

.btn-sm { padding: 5px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* === Hero === */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #6C5CE7 100%);
    color: var(--white);
    border-radius: 16px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* === Section === */
.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    color: var(--dark);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    color: var(--dark);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.class-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #6C5CE7);
    color: var(--white);
}
.class-card:hover { color: var(--white); }

/* === Page Header === */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.8rem;
}

/* === Breadcrumb === */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
}

/* === Filters === */
.filters {
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 10px 16px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
}

/* === Chapter Card === */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chapter-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

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

.chapter-desc {
    color: var(--gray);
    margin-bottom: 12px;
}

.chapter-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--gray);
}

.chapter-stats i {
    margin-right: 4px;
}

.chapter-actions {
    display: flex;
    gap: 8px;
}

/* === Badge === */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--gray);
}

.badge-facile { background: var(--success); }
.badge-moyen { background: var(--warning); }
.badge-difficile { background: var(--danger); }
.badge-student { background: var(--info); }
.badge-teacher { background: var(--warning); }
.badge-admin { background: var(--danger); }

/* === Tabs === */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--light);
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === Chapter Detail === */
.chapter-title-section {
    border-left: 5px solid;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.chapter-title-section h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.chapter-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.chapter-description {
    color: var(--gray);
}

/* === Lesson Card === */
.lesson-card {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--light);
}

.lesson-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-content {
    padding: 20px;
    line-height: 1.8;
}

.lesson-content h2 { font-size: 1.4rem; margin: 20px 0 12px; color: var(--primary); }
.lesson-content h3 { font-size: 1.2rem; margin: 16px 0 10px; color: var(--primary-dark); }
.lesson-content h4 { font-size: 1.1rem; margin: 12px 0 8px; }
.lesson-content p { margin-bottom: 12px; }
.lesson-content ul { margin: 8px 0 16px 24px; }
.lesson-content li { margin-bottom: 4px; }
.lesson-content code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.math-block {
    text-align: center;
    padding: 16px;
    margin: 12px 0;
    background: #FFF9E6;
    border-radius: var(--radius);
    border-left: 4px solid var(--warning);
    overflow-x: auto;
}

.math-inline {
    background: #FFF9E6;
    padding: 2px 4px;
    border-radius: 3px;
}

/* === Exercise Card === */
.exercise-card {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.exercise-statement {
    border-left: 3px solid var(--info);
    padding-left: 16px;
    margin-bottom: 16px;
}

.solution-toggle { margin-top: 12px; }

.solution-content {
    margin-top: 12px;
    padding: 16px;
    background: #E8F8F5;
    border-radius: var(--radius);
    border-left: 4px solid var(--success);
}

/* === QCM === */
.qcm-container {
    max-width: 800px;
    margin: 0 auto;
}

.qcm-result {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.result-pass {
    background: #E8F8F5;
    border: 2px solid var(--success);
    color: var(--success);
}

.result-fail {
    background: #FDEDEC;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.result-bar {
    width: 100%;
    height: 12px;
    background: var(--light);
    border-radius: 6px;
    margin: 12px 0;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    background: var(--success);
    border-radius: 6px;
    transition: width 1s ease;
}

.qcm-question {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--light);
}

.qcm-question.question-correct {
    border-left-color: var(--success);
}

.qcm-question.question-wrong {
    border-left-color: var(--danger);
}

.qcm-question h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.question-text {
    margin-bottom: 16px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.option-label:hover {
    border-color: var(--primary);
    background: #F0F4FF;
}

.option-label input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.option-text { flex: 1; }

.option-correct {
    border-color: var(--success) !important;
    background: #E8F8F5 !important;
}

.option-wrong {
    border-color: var(--danger) !important;
    background: #FDEDEC !important;
}

.explanation {
    margin-top: 12px;
    padding: 12px;
    background: #FFF9E6;
    border-radius: var(--radius);
    border-left: 3px solid var(--warning);
    font-size: 0.9rem;
}

.qcm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* === Test / Contrôle === */
.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.test-header-info {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.test-header-info h1 {
    margin-bottom: 8px;
}

.test-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    margin-bottom: 8px;
}

.test-timer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: sticky;
    top: 68px;
    z-index: 100;
}

.test-question {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

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

.points {
    background: var(--warning);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.test-submitted {
    text-align: center;
    padding: 40px;
    margin-bottom: 24px;
}

.submitted-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 12px;
}

.student-answer {
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
    margin: 12px 0;
}

.correct-answer {
    padding: 12px;
    background: #E8F8F5;
    border-radius: var(--radius);
    border-left: 3px solid var(--success);
    margin-top: 12px;
}

.test-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* === Auth / Login === */
.auth-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.form-textarea-large {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inline-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
    padding: 10px 14px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

/* === Alerts === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.alert-success { background: #E8F8F5; color: #1E8449; border-left: 4px solid var(--success); }
.alert-error { background: #FDEDEC; color: #C0392B; border-left: 4px solid var(--danger); }
.alert-warning { background: #FEF9E7; color: #B7950B; border-left: 4px solid var(--warning); }
.alert-info { background: #EBF5FB; color: #2471A3; border-left: 4px solid var(--info); }

.alert-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

/* === Tables === */
.results-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.results-table th {
    background: var(--dark);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--light);
    font-size: 0.9rem;
}

.results-table tbody tr:hover {
    background: var(--bg);
}

/* === Progress === */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.mini-bar {
    display: inline-block;
    width: 60px;
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}

.mini-fill {
    height: 100%;
    border-radius: 4px;
}

.fill-pass { background: var(--success); }
.fill-fail { background: var(--danger); }

.completed-list {
    list-style: none;
}

.completed-list li {
    padding: 10px 16px;
    background: var(--white);
    margin-bottom: 4px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.completed-list li span { flex: 1; }
.completed-list li small { color: var(--gray); }

/* === Admin === */
.admin-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    min-height: 60vh;
}

.admin-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.admin-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-link {
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-link:hover {
    background: var(--light);
    color: var(--primary);
}

.admin-link.active {
    background: var(--primary);
    color: var(--white);
}

.admin-content {
    min-width: 0;
}

.admin-content h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.admin-stat {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-stat i {
    color: var(--primary);
    font-size: 1.5rem;
}

.admin-stat span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.admin-stat label {
    font-size: 0.8rem;
    color: var(--gray);
}

.admin-form-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.admin-form-card h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.admin-question-card {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.question-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.admin-options-list {
    list-style: none;
    margin: 8px 0;
}

.admin-options-list li {
    padding: 6px 12px;
    margin-bottom: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.correct-option {
    background: #E8F8F5;
    color: var(--success);
    font-weight: 600;
}

.option-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.option-input-row input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
}

.option-input-row input[type="radio"] {
    accent-color: var(--success);
    width: 18px;
    height: 18px;
}

/* === Utility Classes === */
.text-muted { color: var(--gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-info { color: var(--info); }
.text-warning { color: var(--warning); }

/* === Footer === */
.footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active { display: flex; }
    
    .nav-user {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--light);
    }
    
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
    
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chapter-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
