/* =====================================================
   PERMIS SAAS - STYLES PRINCIPAUX
   ===================================================== */

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #2196F3;
    --danger: #f44336;
    --warning: #ff9800;
    --success: #4CAF50;
    --dark: #333;
    --gray: #666;
    --light-gray: #f5f5f5;
    --border: #e0e0e0;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light-gray);
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

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

.container-small {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--dark);
    font-weight: 500;
}

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

.nav-admin {
    color: var(--secondary) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Forms */
.form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.875rem;
}

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

/* Footer */
.footer {
    background: var(--white);
    padding: 30px 0;
    text-align: center;
    color: var(--gray);
    margin-top: auto;
}

/* Main */
.main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

/* =====================================================
   HOME PAGE
   ===================================================== */

.hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    margin: -40px 0 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.hero .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.section-subtitle {
    color: var(--gray);
    text-align: center;
    margin-bottom: 40px;
}

.pricing-preview {
    padding: 60px 0;
    background: var(--white);
}

.pricing-preview h2 {
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        max-width: 300px;
    }
}

.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

.modes {
    padding: 60px 0;
    background: var(--white);
}

.modes h2 {
    text-align: center;
    margin-bottom: 40px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mode {
    padding: 25px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.mode-highlight {
    border-color: var(--primary);
    background: #f1f8e9;
}

.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: var(--light-gray);
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    color: var(--gray);
}

/* =====================================================
   AUTH PAGES
   ===================================================== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

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

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 20px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-links .separator {
    margin: 0 10px;
    color: var(--border);
}

/* =====================================================
   PRICING
   ===================================================== */

.pricing-page {
    padding: 20px 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    margin-bottom: 10px;
}

.pricing-header p {
    color: var(--gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.pricing-card-popular {
    border: 2px solid var(--primary);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.pricing-card-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pricing-card-header h3 {
    margin-bottom: 15px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.price-period {
    color: var(--gray);
}

.pricing-card-body {
    padding: 30px;
}

.pricing-card-body p {
    color: var(--gray);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card-footer {
    padding: 0 30px 30px;
}

.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h2 {
    margin-bottom: 30px;
}

.faq-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.faq-item p {
    color: var(--gray);
}

/* =====================================================
   DASHBOARD
   ===================================================== */

.dashboard-page {
    padding: 20px 0;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin-bottom: 15px;
}

.dashboard-access {
    margin-bottom: 30px;
}

.access-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: var(--radius);
    font-weight: 600;
}

.access-subscription {
    background: #e8f5e9;
    color: #2e7d32;
}

.access-credits {
    background: #e3f2fd;
    color: #1565c0;
}

.access-none {
    background: #fff3e0;
    color: #e65100;
}

.dashboard-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.test-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.test-mode-card {
    display: block;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--radius);
    text-align: center;
    color: var(--dark);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.test-mode-card:hover {
    text-decoration: none;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.test-mode-highlight {
    background: #e8f5e9;
    border-color: var(--primary);
}

.test-mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.test-mode-card h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

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

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

.stat-card {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

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

.theme-progress {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-progress-item {
    padding: 10px 0;
}

.theme-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.theme-name {
    font-weight: 500;
}

.theme-score {
    color: var(--gray);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.recent-tests {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.recent-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--radius);
    color: var(--dark);
}

.recent-test-item:hover {
    text-decoration: none;
    background: #e8e8e8;
}

.test-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.test-mode {
    font-weight: 600;
}

.test-theme, .test-date {
    color: var(--gray);
    font-size: 0.875rem;
}

.test-score {
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

.score-good {
    background: #e8f5e9;
    color: #2e7d32;
}

.score-medium {
    background: #fff3e0;
    color: #e65100;
}

.score-bad {
    background: #ffebee;
    color: #c62828;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

/* =====================================================
   TEST PAGES
   ===================================================== */

.test-setup-page {
    text-align: center;
    padding: 40px 0;
}

.test-setup-page h1 {
    margin-bottom: 15px;
}

.test-setup-page p {
    color: var(--gray);
    margin-bottom: 30px;
}

.count-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.count-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--dark);
    transition: all 0.2s;
}

.count-option:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.count-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.count-label {
    color: var(--gray);
}

.themes-page {
    padding: 20px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    color: var(--gray);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.theme-card {
    display: block;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--dark);
    transition: all 0.2s;
}

.theme-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.theme-card h3 {
    margin-bottom: 5px;
}

.theme-count {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Test Running */
.test-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.test-progress {
    font-size: 1.25rem;
    font-weight: bold;
}

.test-mode {
    color: var(--gray);
}

.questions-container {
    position: relative;
    min-height: 400px;
}

.question-slide {
    display: none;
    animation: fadeIn 0.3s ease;
}

.question-slide.active {
    display: block;
}

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

.question-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.question-image {
    margin-bottom: 20px;
    text-align: center;
}

.question-image img {
    max-height: 300px;
    border-radius: var(--radius);
}

.question-text {
    font-size: 1.25rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.choice:hover {
    background: #e8e8e8;
}

.choice input {
    display: none;
}

.choice input:checked + .choice-letter {
    background: var(--primary);
    color: var(--white);
}

.choice input:checked ~ .choice-text {
    font-weight: 600;
}

.choice-letter {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.choice-text {
    flex: 1;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
}

.question-dot {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.question-dot.current {
    background: var(--primary);
    color: var(--white);
}

.question-dot.answered {
    background: #c8e6c9;
}

/* =====================================================
   RESULTS PAGE
   ===================================================== */

.result-page {
    padding: 20px 0;
}

.result-header {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.result-score {
    display: inline-block;
    padding: 30px 50px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.score-value {
    font-size: 4rem;
    font-weight: bold;
    display: block;
}

.score-label {
    font-size: 1.1rem;
}

.result-message {
    font-size: 1.25rem;
    color: var(--gray);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ai-report {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.ai-report h2 {
    margin-bottom: 20px;
}

.ai-motivation {
    background: #e8f5e9;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-style: italic;
}

.ai-section {
    margin-bottom: 25px;
}

.ai-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.ai-section ul {
    margin-left: 20px;
}

.ai-section li {
    margin-bottom: 5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.tag-warning {
    background: #fff3e0;
    color: #e65100;
}

.advice-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.result-details {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.result-details h2 {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: none;
    background: var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-tab.active {
    background: var(--primary);
    color: var(--white);
}

.questions-review {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-question {
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--border);
}

.review-question.correct {
    background: #f1f8e9;
    border-left-color: var(--success);
}

.review-question.wrong {
    background: #ffebee;
    border-left-color: var(--danger);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.review-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    font-weight: bold;
}

.review-status {
    font-weight: 600;
}

.review-theme {
    color: var(--gray);
    font-size: 0.875rem;
}

.review-image {
    margin-bottom: 15px;
}

.review-image img {
    max-height: 200px;
    border-radius: var(--radius);
}

.review-text {
    font-weight: 500;
    margin-bottom: 15px;
}

.review-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.review-choice {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--white);
    border-radius: var(--radius);
}

.review-choice.choice-correct {
    background: #c8e6c9;
}

.review-choice.choice-wrong {
    background: #ffcdd2;
}

.choice-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-explanation {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.review-explanation strong {
    display: block;
    margin-bottom: 5px;
}

/* =====================================================
   HISTORY
   ===================================================== */

.history-page {
    padding: 20px 0;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--dark);
    transition: all 0.2s;
}

.history-item:hover {
    text-decoration: none;
    transform: translateX(5px);
}

.history-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.history-mode {
    font-weight: 600;
}

.history-theme, .history-questions {
    color: var(--gray);
}

.history-meta {
    color: var(--gray);
    font-size: 0.875rem;
}

.history-score {
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
}

/* =====================================================
   PROFILE
   ===================================================== */

.profile-page {
    padding: 20px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.profile-section h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
}

.info-label {
    color: var(--gray);
}

.info-value {
    font-weight: 500;
}

.access-info {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.access-info .access-badge {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    background: none;
    font-size: 1.25rem;
}

.access-info p {
    color: var(--gray);
}

/* =====================================================
   PAGINATION
   ===================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border-radius: var(--radius);
    color: var(--dark);
}

.pagination a {
    background: var(--white);
    box-shadow: var(--shadow);
}

.pagination a:hover {
    text-decoration: none;
    background: var(--light-gray);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .test-navigation {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
