/* --- STIJLEN VOOR VOORTGANGSANALYSE --- */

/* Badge voor psychometrische interpretatie */
.interpretation-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem; /* 11.2px */
    font-weight: 600;
    border-radius: 9999px; /* pill shape */
    margin-left: 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* Kleurvarianten voor de badges */
.badge-green {
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
    border: 1px solid #86efac; /* green-300 */
}

.badge-blue {
    background-color: #dbeafe; /* blue-100 */
    color: #1e40af; /* blue-800 */
    border: 1px solid #93c5fd; /* blue-300 */
}

.badge-orange {
    background-color: #ffedd5; /* orange-100 */
    color: #9a3412; /* orange-800 */
    border: 1px solid #fdba74; /* orange-300 */
}

.badge-red {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
    border: 1px solid #fca5a5; /* red-300 */
}

/* Sorteerbare tabelkoppen */
.styled-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem; /* Extra ruimte voor het icoon */
}

.styled-table th.sortable:hover {
    background-color: #eef2ff; /* indigo-50 */
    color: #4338ca; /* indigo-700 */
}

.styled-table th.sortable svg {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.2s;
}

/* Visuele indicatoren voor trend in de tabel */
.trend-icon.up {
    color: #16a34a; /* green-600 */
}

.trend-icon.down {
    color: #dc2626; /* red-600 */
}

/* --- STIJLEN VOOR LEERLINGDETAILANALYSE (Microscoop-view) --- */

#leerling-detail-view {
    padding: 1rem;
}

.leerling-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb; /* slate-200 */
}

.leerling-detail-header h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
}

.leerling-detail-header .btn-secondary {
    background-color: #f3f4f6; /* slate-100 */
}

.leerling-detail-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .leerling-detail-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.leerling-detail-chart-container,
.leerling-detail-table-container {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb; /* slate-200 */
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.leerling-detail-table-container h3 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Specifieke stijlen voor de sorteerbare tabel in de detail-view */
.leerling-doelentabel {
    width: 100%;
    border-collapse: collapse;
}

.leerling-doelentabel th,
.leerling-doelentabel td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb; /* slate-200 */
}

.leerling-doelentabel thead {
    background-color: #f9fafb; /* slate-50 */
}

.leerling-doelentabel th {
    font-weight: 600;
    color: #4b5563; /* slate-600 */
    font-size: 0.875rem; /* text-sm */
}

.leerling-doelentabel th.sortable {
    cursor: pointer;
    user-select: none;
}

.leerling-doelentabel th.sortable:hover {
    background-color: #f3f4f6; /* slate-100 */
}

/* Conditionele achtergrondkleuren */
.leerling-doelentabel td.score-beter {
    background-color: #ecfdf5; /* green-50 */
    color: #065f46; /* green-800 */
    font-weight: 600;
}

.leerling-doelentabel td.score-slechter {
    background-color: #fff1f2; /* red-50 */
    color: #991b1b; /* red-800 */
    font-weight: 600;
}

.leerling-doelentabel td.score-gelijk {
    background-color: #fafafa; /* stone-50 */
}

/* --- STIJLEN VOOR NIEUW LEERLINGDOSSIER --- */

/* Verfijning van de tabel in de kaart-weergave */
#dossier-strengths-weaknesses-card .leerling-doelentabel th,
#dossier-strengths-weaknesses-card .leerling-doelentabel td {
    padding: 0.5rem 0.75rem; /* Iets compacter voor in de kaart */
}

#dossier-strengths-weaknesses-card .leerling-doelentabel {
    table-layout: fixed;
}

#dossier-strengths-weaknesses-card .leerling-doelentabel th:first-child,
#dossier-strengths-weaknesses-card .leerling-doelentabel td:first-child {
    width: 50%;
}
