/* ==========================================
   Responsive Learning Statistieken
========================================== */

@media screen and (max-width: 1100px) {

    .learning-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 900px) {

    .page.dark-page {
        padding: 20px 14px;
    }

    .page-hero,
    .modern-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .page-hero h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .hero-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .modern-panel-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .status-learning {
        align-self: flex-start;
        white-space: normal;
    }

    .learning-card-dark {
        padding: 18px !important;
        border-radius: 16px !important;
    }

    .learning-card-dark h2 {
        font-size: 20px !important;
    }

    .learning-status-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .learning-status-block {
        padding: 16px !important;
    }

    .learning-status-title {
        font-size: 17px !important;
    }

    .learning-main-stat,
    .learning-stat-row,
    .learning-score-row {
        gap: 10px !important;
    }

    .score-input {
        width: 88px !important;
        min-height: 42px;
        font-size: 16px;
    }

    .save-panel .modern-button {
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {

    .page.dark-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .page-hero,
    .modern-panel {
        padding: 17px;
    }

    .page-hero h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }

    .learning-card-dark {
        padding: 14px !important;
    }

    .learning-status-block {
        padding: 14px !important;
    }

    .learning-main-stat,
    .learning-stat-row,
    .learning-score-row {
        align-items: flex-start !important;
    }

    .learning-stat-row span,
    .learning-score-row span {
        padding-right: 8px;
    }

    .test-actions {
        flex-direction: column !important;
    }

    .test-actions .modern-button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* ==========================================
   Test Button & Vergelijking
========================================== */

.save-panel .modern-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.save-panel .modern-panel-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.test-button {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.test-button:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
}

.test-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.test-annuleer {
    background: rgba(148, 163, 184, 0.2) !important;
    color: #e5e7eb !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.test-bevestig {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

.test-resultaten {
    display: grid;
    gap: 24px;
    padding: 0 2px;
}

.test-vergelijking-rij {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.test-vergelijking-kolom {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.6);
}

.test-vergelijking-kolom h3 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 18px;
}

.test-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.test-metric:last-child {
    border-bottom: none;
}

.test-metric .label {
    color: #94a3b8;
    font-size: 14px;
}

.test-metric .waarde {
    color: #e5e7eb;
    font-weight: 700;
    font-size: 15px;
}

.test-metric .waarde.beter {
    color: #34d399;
}

.test-metric .waarde.slechter {
    color: #f87171;
}

.test-analyzer-rij {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 14px;
    align-items: center;
}

.test-analyzer-rij:last-child {
    border-bottom: none;
}

.test-analyzer-rij .analyzer-nm {
    color: #e5e7eb;
    font-weight: 600;
}

.test-analyzer-rij .analyzer-nm.nm-beter {
    color: #34d399;
}

.test-analyzer-rij .analyzer-nm.nm-slechter {
    color: #f87171;
}

.test-analyzer-rij .col {
    text-align: center;
    color: #cbd5e1;
}

.test-analyzer-rij .col.beter {
    color: #34d399;
    font-weight: 700;
}

.test-analyzer-rij .col.slechter {
    color: #f87171;
    font-weight: 700;
}

.test-analyzer-header {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.test-analyzer-header .col {
    text-align: center;
}

.test-verschil-tabel {
    margin-top: 12px;
}

.test-verschil-tabel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.test-verschil-tabel th {
    text-align: left;
    color: #94a3b8;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 8px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.test-verschil-tabel td {
    padding: 6px 8px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.test-verschil-tabel tr:last-child td {
    border-bottom: none;
}

@media (max-width: 700px) {

    .test-vergelijking-rij {
        grid-template-columns: 1fr;
    }

    .save-panel .modern-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

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

    .test-actions .modern-button {
        width: 100%;
        box-sizing: border-box;
    }
}
