@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ===== Core tokens ===== */
:root {
    /* Basis kleuren */
    --sa-primary: #143757; /* donkerblauw */
    --sa-primary-light: #8AA0AF;
    --sa-green-soft: #C7DDB4;
    --sa-green-mid: #9DC47A;
    --sa-blue-soft: #A3C7D4;
    --sa-blue-mid: #6F8CA5;
    --sa-accent: #6CC24A; /* checkmark groen */

    --sa-bg: #F9FAF9; /* lichte achtergrond */
    --sa-surface: #FFFFFF; /* panel / kaart */
    --sa-border: #D4D9DE;
    --sa-text: #143757; /* standaard tekst */
    --sa-text-muted: #6F8CA5;
    /* Stati */
    --sa-success: #6CC24A;
    --sa-warning: #FFC857;
    --sa-error: #D64545;
    /* UI details */
    --sa-radius-sm: 4px;
    --sa-radius-md: 8px;
    --sa-radius-lg: 16px;
    --sa-shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.08);
    --bg: #f5f7fb;
    --panel: #fff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
    /* Card tokens (Huiswerk-cards) */
    --card-bg: #fff;
    --card-border: #e5e7eb;
    --card-radius: 12px;
    --card-shadow: 0 1px 2px rgba(0,0,0,.04);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,.08);
    --blue: #2563eb;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden; /* geen globale scrollbar meer */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.3;
}

input,
textarea,
select {
    font: inherit;
}

button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

label,
.form-label,
.sub-label,
.sublabel,
small,
.form-text,
.meta {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
}

h1,
.page-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.25;
}

/* ===== Reset bits you had ===== */










    

/* Subdoelenpaneel (op plek “afbeelding”) */




/* Nice scrollbar for subgoals (webkit) */








/* ===== EditGoalDialog – visuele alignering met cards ===== */
/* Syncfusion SfDialog skeleton */

/* Footer (buttons rechts) */


/* Form lay-out binnen de dialog */


/* 2 kolommen op bredere schermen */
@media (min-width:700px) {
    
    /* labels + inputs in volle breedte waar logisch */
    
}

/* Velden */


/* Validatie/labels */


/* Kleine field-rows */


/* Subgoals lijst in de dialog (matcht je Huiswerk-cards) */


    

    

    

/* Buttons conform app */


    

    

/* Kleine quality-of-life details */


    

/* Bootstrap modal aligneren met app-stijl */









@media (min-width:700px) {
    

    
}









/* Volscherm backdrop en overlay */






/* Optioneel: body scroll blokkeren wanneer modal open is */



/* ===== Les-combobox / autocomplete ===== */




    



    



    

/* Quick-add popin (onder input) */


    

    

    

    

    

/* Modal content: beperk breedte en zorg dat velden niet breder zijn */








/* ===== Les-combobox ===== */




    



    



    

/* Subgoallijst in dialog netjes laten inspringen */


/* Subdoel: input blijft binnen modal en schaalt netjes */


    

/* Zorg dat de footer-knoppen altijd boven de combo-list liggen */


/* Zeker weten dat de body de dropdown niet onder de footer duwt */


/* Subdoel: input blijft binnen de modal en schaalt netjes */


    

/* Veiligheidsnet: form-controls mogen nooit buiten de modal-content treden */


/* Subdoel: rij met titel, prio, duur, prullenbak */










/* plus- en prullenbak-knoppen als icon-only, zelfde basis .btn-styling */


    

        

/* subgoal add rij: input past binnen modal */


/* Kaart-stijl per subdoel */


/* Regel 1: titel + prullenbak */




/* Regel 2: duur (compact), prioriteit, soort */







/* compact input voor duur */


/* icon-knoppen */


    

        

/* lijst clean */


    /* kaart per subdoel */
    

    /* REGEL 1: titel + prullenbak */
    

    /* REGEL 2: duur, prioriteit, soort */
    

    

    /* compact veld voor duur */
    

    /* icon-only buttons */
    

        

/* --- Huiswerk-cards: minimale aanvullingen --- */


@media (min-width:640px) {
    
}

@media (min-width:1024px) {
    
}









/* Actie-footer onderaan kaart, altijd plakken aan onderzijde */




    

    

    

/* ===== Agenda – subdoelenlijst als tabel ===== */
/* Reeds aanwezige priority pills worden hergebruikt */



/* Vervanger voor inline style "height:100%" op de wrapper rond SfSchedule */


/* Bestaande knoppen-styling opnieuw gebruiken; dit voegt alleen status-uitlijning toe */


/* Algemene utiliteit die we op meerdere plekken gebruiken */






/* ===== Agenda – subdoelen als cards (3 regels) ===== */




    



/* 1) bovenste regel: lesnaam */


/* 2) titel van het subdoel */


/* 3) meta: deadline links, prioriteit rechts */


    

    

/* algemene util */






/* ====== Layout: 4 kolommen ====== */


@media (max-width: 1400px) {
    
}

@media (max-width: 1100px) {
    
}

@media (max-width: 720px) {
    
}







    .goal-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(0,0,0,.10);
        border-color: rgba(0,0,0,.12);
    }

/* ====== Prioriteit chips (Laag/Middel/Hoog) ====== */


/* ====== Helpers ====== */




/* ====== Modal ====== */






@keyframes modalIn {
    

    
}







    















    



    

/* Login card */


/* Form fields & buttons */





/* Accessibility helper om h1 te verbergen maar wel voor screenreaders te laten */




    



@media (max-width: 520px) {
    
}

/* (de bestaande .priority chips blijven werken) */
/* --- Huiswerk filters (tabs) --- */


    

        
    /* Tweede filterrij voor materiaal */
    

    

        

/* ---- EditGoalDialog layout ---- */










/* 4 kolommen naast elkaar: Duur | Volgorde | Soort | Online */










/* ===========================
   EditGoalDialog – breedte & layout
   (additief: overschrijft niets kritisch)
   =========================== */

/* Header/body/footer spacing blijven gelijk aan jouw bestaande styles */




/* Twee-koloms layout binnen de dialog */


/* Responsief: op small screens 1 kolom */
@media (max-width: 840px) {
    

    
}

/* Kolommen */


/* Subdoelen-panel rechts – lucht en prettige scroll */




/* Add bar */


/* Kaarten en rijen */




/* Vier velden naast elkaar: Duur | Volgorde | Soort | Online */


/* Labels en inputs consistent */


    

/* Checkbox netter uitlijnen */


/* Combo (leszoeker) – list boven andere elementen en klikbaar */


/* Buttons/icoonknoppen: height-harmonie met inputs */


/* Kleine verfijningen in de hoofdform kolom */


/* Zorg dat de modal op small screens niet aan de randen plakt */
@media (max-width: 520px) {
    
}

/* ===== EditGoalDialog – spacing & layout tweaks ===== */

/* Binnenruimte voor de twee kolommen */


/* Kolommen zelf ook wat marge t.o.v. de modal-randen */


/* Subdoelen-paneel gebruikt de beschikbare hoogte beter */




/* Label met invoerveld eronder i.p.v. ernaast */


/* Input + plus-knop netjes full-width */


/* Subdoelkaart: wat extra lucht */


/* Titel + prullenbak */


/* Vier velden naast elkaar – met verhoudingen en marges */


/* Label styling consistent */


/* Invoervelden basis (sluit aan op eerdere aanvulling) */
.form-control,
.form-select,
.combo-input {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font: inherit;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

/* Specifieke breedtes: Volgorde smal, Soort ruimer */

/* 2 tekens + padding */

/* ruimer keuzemenu */

/* Checkbox Online netjes op dezelfde regel en niet geplakt aan de rand */


/* Combo (leszoeker) niet onder randen geplakt en boven content */


/* ===== Core tokens ===== */
:root {
    --bg: #f5f7fb;
    --panel: #fff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
    /* Card tokens (Huiswerk-cards) */
    --card-bg: #fff;
    --card-border: #e5e7eb;
    --card-radius: 12px;
    --card-shadow: 0 1px 2px rgba(0,0,0,.04);
    --card-shadow-hover: 0 8px 24px rgba(0,0,0,.08);
    --blue: #2563eb;
}

body {
    margin: 0px;
}

/* ===== Reset bits you had ===== */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: #fff;
    padding: 1rem 1rem 1rem 3.7rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ===== App layout (sidebar + topbar + main) ===== */
.layout-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
    height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    transition: grid-template-columns .2s ease;
}


.app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 64px minmax(0, 1fr);
    grid-template-areas:
        "topbar"
        "main";
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    background: var(--sa-primary);
    padding: 14px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
    width: 270px;
    transition: width .2s ease, padding .2s ease, border-right-color .2s ease;
}






.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-footer {
    margin-top: auto;
    padding: 8px 4px;
    color: var(--muted);
    font-size: .95rem;
    display: flex;
    gap: 4px;
    flex-direction: column;
}



.nav-label {
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 10px 8px;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    align-self: center;
}

    .brand .logo {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        object-fit: contain; /* houdt verhoudingen goed */
    }

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 10px 12px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
}

    .nav-link.active, .nav-link:hover {
        background: #eef2ff;
        color: black;
    }

.nav-icon {
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

    .nav-icon svg {
        width: 1.15rem;
        height: 1.15rem;
        display: block;
        fill: currentColor;
    }

/* Topbar */
.topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: var(--sa-primary);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

    .topbar .page-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
    }

    .topbar .role {
        color: var(--muted);
    }

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Main area */
.main {
    grid-area: main;
    padding: 20px;
    overflow-y: auto; /* hier komt de scrollbar */
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* nodig in combinatie met CSS grid */
}


.context-sub-menu {
    display: flex;
    gap: .5rem;
    width: calc(100% + 40px);
    margin: -20px -20px 1rem;
    padding: .75rem 1.25rem;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.context-submenu-link {
    border: 1px solid transparent;
    background: transparent;
    color: var(--sa-primary);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.context-submenu-link:hover {
    background: #e8edf2;
}

.context-submenu-link.is-active {
    background: var(--sa-primary);
    color: #fff;
}

/* ===== Tabs (optioneel, boven je cards) ===== */
.tabs {
    display: flex;
    gap: .5rem;
    margin: 12px 0 16px;
}

.tab {
    border: 1px solid var(--border);
    background: #fff;
    color: #1f2937;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
}

    .tab.active {
        background: var(--sa-primary);
        color: #fff;
    }

        .tab.active:hover {
            background: var(--sa-blue-mid);
        }

/* ===== Generic cards grid ===== */
.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width:700px) {
    .cards {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (min-width:1100px) {
    .cards {
        grid-template-columns: repeat(3,1fr);
    }
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .2s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.card-body {
    padding: 14px 16px 10px 16px;
}

/* ===== Huiswerk page specific (als je bestaande Huiswerk.razor gebruikt) ===== */
.hw-title {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.hw-muted {
    color: var(--muted);
}

.hw-error {
    color: #b91c1c;
}

/* Grid met goal-cards */


@media (min-width:640px) {
    
}

@media (min-width:1024px) {
    
}

/* Goal-card */




.goal-priority {
}


/* Subdoelenpaneel (op plek “afbeelding”) */




/* Nice scrollbar for subgoals (webkit) */
.subgoals::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.subgoals::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
}

.subgoals::-webkit-scrollbar-track {
    background: transparent;
}

.user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user {
    color: white;
    display: flex;
    align-items: center;
    font-size: .9rem;
}

.page-actions {
    display: flex;
    gap: .5rem;
    margin: 12px 0 16px;
}

    .page-actions .btn {
        border: 1px solid var(--border);
        background: var(--sa-blue-mid);
        color: #fff;
        padding: 8px 12px;
        font-weight: 600;
        font-size: .9rem;
        cursor: pointer;
    }

/* ===== EditGoalDialog – visuele alignering met cards ===== */
/* Syncfusion SfDialog skeleton */
.e-dialog {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Header */
.e-dlg-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 14px 16px;
}

/* Content */
.e-dlg-content {
    padding: 16px;
    background: var(--panel);
}

/* Footer (buttons rechts) */
.e-footer-content {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: var(--panel);
}

/* Form lay-out binnen de dialog */
.edit-goal-form, /* als je formulier al deze class heeft */
.e-dlg-content form { /* anders grijpen we het generieke form binnen de dialog */
    display: grid;
    gap: 12px;
}

/* 2 kolommen op bredere schermen */
@media (min-width:700px) {
    .edit-goal-form,
    .e-dlg-content form {
        grid-template-columns: 1fr 1fr;
    }
    /* labels + inputs in volle breedte waar logisch */
    .form-span-2 {
        grid-column: 1 / -1;
    }
}

/* Velden */
.e-dlg-content label {
    display: block;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
    font-size: .85rem;
}

.e-dlg-content input[type="text"],
.e-dlg-content input[type="date"],
.e-dlg-content input[type="number"],
.e-dlg-content select,
.e-dlg-content textarea {
    /* width: 100%; */
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.2;
    font-size: .95rem;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .2s ease;
}

.e-dlg-content textarea {
    min-height: 96px;
    resize: vertical;
    /* zorgt dat harde enters zichtbaar zijn zoals op de cards */
    white-space: pre-wrap;
}

    /* Focus */
    .e-dlg-content input:focus,
    .e-dlg-content select:focus,
    .e-dlg-content textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    }

/* Validatie/labels */
.e-dlg-content .validation-message {
    color: #b91c1c;
    font-size: .9rem;
    margin-top: 4px;
}

/* Kleine field-rows */
.field-row {
    display: grid;
    gap: 8px;
}

/* Subgoals lijst in de dialog (matcht je Huiswerk-cards) */


    .dialog-subgoals li + li {
        margin-top: 8px;
    }

    .dialog-subgoals .title {
        font-weight: 600;
        color: #111827;
    }

    .dialog-subgoals .meta {
        color: var(--muted);
        font-size: .85rem;
    }

/* Buttons conform app */
.e-footer-content .btn,
.e-footer-content button {
    border: 1px solid var(--border);
    background: #fff;
    color: #1f2937;
    padding: 10px 14px;
    font-weight: 500;
    font-size: .9rem;
    border-radius: 10px;
    cursor: pointer;
}

    .e-footer-content .btn-primary,
    .e-footer-content button[type="submit"] {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    .e-footer-content .btn:hover,
    .e-footer-content button:hover {
        filter: brightness(0.98);
    }

/* Kleine quality-of-life details */
.e-dialog .e-dlg-closeicon-btn {
    border-radius: 8px;
}

    .e-dialog .e-dlg-closeicon-btn:hover {
        background: #f3f4f6;
    }

/* Bootstrap modal aligneren met app-stijl */







.modal-body form {
    display: grid;
    gap: 12px;
}

@media (min-width:700px) {
    .modal-body form {
        grid-template-columns: 1fr 1fr;
    }

    .modal-body .form-span-2 {
        grid-column: 1 / -1;
    }
}

.modal-body label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-body input, .modal-body select, .modal-body textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .95rem;
    box-shadow: var(--shadow-sm);
}

.modal-body textarea {
    min-height: 96px;
    white-space: pre-wrap;
}

.modal-footer .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Volscherm backdrop en overlay */






/* Optioneel: body scroll blokkeren wanneer modal open is */
body.modal-open {
    overflow: hidden;
}


/* ===== Les-combobox / autocomplete ===== */




    



    





    

/* Quick-add popin (onder input) */
.quickadd {
    margin-top: 10px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 10px;
    background: #fafafa;
}

    .quickadd .qa-row {
        display: grid;
        grid-template-columns: 160px 1fr;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .quickadd .qa-label {
        font-weight: 600;
        color: var(--text);
    }

    .quickadd .qa-value {
        color: var(--text);
    }

    .quickadd .qa-preview {
        display: block;
        width: 140px;
        height: 90px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid var(--border);
        margin-top: 6px;
    }

    .quickadd .qa-actions {
        display: flex;
        gap: .5rem;
        margin-top: 6px;
    }

/* Modal content: beperk breedte en zorg dat velden niet breder zijn */




.form-span-2 {
    grid-column: 1 / -1;
}

.form-group > .form-control,
.form-group > .form-select,
.form-group > textarea,
.combo-input {
    width: 100%;
    box-sizing: border-box;
}

/* ===== Les-combobox ===== */




    .combo-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,.15);
    }



    





    

/* Subgoallijst in dialog netjes laten inspringen */
.dialog-subgoals li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}

/* Subdoel: input blijft binnen modal en schaalt netjes */


    

/* veiligheidsnet: form-elementen binnen modal breken nooit uit */


/* Zorg dat de footer-knoppen altijd boven de combo-list liggen */
.modal-footer {
    position: relative;
    z-index: 60; /* combo-list zit op 50 */
}

/* Zeker weten dat de body de dropdown niet onder de footer duwt */


/* De combo-list gebruikt 50; dat is onder de footer (60) */


/* Subdoel: input blijft binnen de modal en schaalt netjes */
.subgoal-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto; /* input = elastisch, knop = auto */
    gap: 8px;
    align-items: center;
    max-width: 100%;
}

    .subgoal-inline .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

/* Veiligheidsnet: form-controls mogen nooit buiten de modal-content treden */
.modal-content .form-control,
.modal-content .form-select,
.modal-content textarea,
.modal-content .combo-input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Subdoel: rij met titel, prio, duur, prullenbak */
.subgoal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 140px auto; /* titel | prio | duur | delete */
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}







.sg-prio, .sg-duration {
    width: 100%;
}

/* plus- en prullenbak-knoppen als icon-only, zelfde basis .btn-styling */


    

        

/* subgoal add rij: input past binnen modal */
.subgoal-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}

/* Kaart-stijl per subdoel */


/* Regel 1: titel + prullenbak */




/* Regel 2: duur (compact), prioriteit, soort */
.sg-row-fields {
    display: grid;
    grid-template-columns: 140px 160px 1fr; /* pas aan naar wens */
    gap: 10px;
    align-items: end;
}

.sg-field {
    display: grid;
    grid-template-columns: 1fr;
}

.sg-label {
    font-size: .8rem;
    color: var(--muted, #6b7280);
    margin-bottom: 2px;
}


/* compact input voor duur */
.sg-field.compact .sg-duration {
    max-width: 120px;
}

/* icon-knoppen */
.icon-btn {
    padding: 8px 10px;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

    

        .icon-btn.danger:hover {
            filter: brightness(.95);
        }

/* lijst clean */
.modal-content .dialog-subgoals {
    list-style: none;
    margin: 0;
    padding: 0;
}

    /* kaart per subdoel */
    .modal-content .dialog-subgoals .subgoal-card {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: 10px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: var(--card-shadow);
        background: #fff;
        margin-bottom: 10px;
    }

    /* REGEL 1: titel + prullenbak */
    .modal-content .dialog-subgoals .sg-row-top {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) auto;
        column-gap: 8px;
        align-items: center;
    }

    /* REGEL 2: duur, prioriteit, soort */
    .modal-content .dialog-subgoals .sg-row-fields {
        display: grid !important;
        grid-template-columns: 140px 160px 1fr; /* pas aan naar smaak */
        column-gap: 10px;
        align-items: end;
    }

    .modal-content .dialog-subgoals .sg-title,
    .modal-content .dialog-subgoals .form-control,
    .modal-content .dialog-subgoals .form-select {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* compact veld voor duur */
    .modal-content .dialog-subgoals .sg-field.compact .sg-duration {
        max-width: 120px;
    }

    /* icon-only buttons */
    .modal-content .dialog-subgoals .icon-btn {
        padding: 8px 10px;
        line-height: 1;
        min-width: 40px;
        text-align: center;
    }

        .modal-content .dialog-subgoals .icon-btn.danger {
            color: #ef4444;
        }

/* --- Huiswerk-cards: minimale aanvullingen --- */


@media (min-width:640px) {
    
}

.hw-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width:1023.98px) {
    .hw-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:767.98px) {
    .hw-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.goal {
    display: flex;
    flex-direction: column; /* zodat footer altijd onderaan kan */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    overflow: hidden;
    height: 100%;
}

.goal-header {
    display: grid;
    grid-template-columns: 1fr auto; /* links tekst, rechts afbeelding */
    align-items: start;
    gap: 12px;
    padding: .5rem;
}

.goal-head-left {
    min-width: 0;
}

.goal-meta {
    display: flex;
    gap: .65rem;
    align-items: center;
    font-size: .85rem;
    color: var(--sa-text-muted);
    flex-wrap: wrap;
}

.priority-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    background: #eef2ff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.goal-lesson-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.goal-desc {
    padding: 0 .5rem .5rem .5rem;
    color: var(--sa-text);
    white-space: pre-line; /* harde enters weergeven */
    font-size: .85rem;
    line-height: 1.45;
    font-weight: 400;
}

.subgoals {
    margin: 2%;
    padding: 12px;
    background: linear-gradient(#fafafa,#f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-height: 180px;
    overflow: auto;
}

.subgoals--empty {
    display: flex;
    align-items: center;
    min-height: 64px;
    color: #6b7280;
}

.subgoal + .subgoal {
    margin-top: 10px;
}

.sub-title {
    font-weight: 500;
    font-size: .95rem;
    color: var(--sa-text);
    margin-bottom: 2px;
}

.sub-meta {
    display: flex;
    gap: .65rem;
    font-size: .85rem;
    color: var(--sa-text-muted);
}

/* Actie-footer onderaan kaart, altijd plakken aan onderzijde */
.goal-actions {
    margin-top: auto; /* duwt footer omlaag */
    display: flex;
    justify-content: flex-end;
    gap: .35rem;
    padding: 10px 12px 12px 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    padding: 8px 10px;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1;
}

    .icon-btn:hover {
        filter: brightness(.98);
    }

    .icon-btn svg {
        display: block;
    }

    .icon-btn.danger {
        color: #ef4444;
    }

/* ===== Agenda – subdoelenlijst als tabel ===== */
/* Reeds aanwezige priority pills worden hergebruikt */
.priority-pill { /* bestaat al, hier alleen defensief */
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid var(--border);
}


/* ===== Agenda – lay-out containers ===== */
.agenda-grid {
    display: grid;
    grid-template-columns: 320px 1fr; /* linker lijst | agenda */
    gap: 1rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

    .agenda-grid.no-left {
        grid-template-columns: 1fr; /* alleen agenda */
    }

        .agenda-grid.no-left .right-pane {
            grid-column: 1 / -1;
        }

    .agenda-grid .left-pane {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden; /* scroll alleen in de lijst, niet op de hele pane */
    }

        .agenda-grid .left-pane .card-list {
            min-height: 0;
            overflow-y: auto;
            padding-right: 4px;
        }

    .agenda-grid .right-pane {
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

/* Vervanger voor inline style "height:100%" op de wrapper rond SfSchedule */
.agenda-root {
    height: 100%;
}

/* Bestaande knoppen-styling opnieuw gebruiken; dit voegt alleen status-uitlijning toe */
.page-actions .status {
    margin-left: auto;
    color: var(--muted);
    font-size: .9rem;
}

/* Algemene utiliteit die we op meerdere plekken gebruiken */




/* ===== Agenda – subdoelenlijst (kolommen) ===== */
/* (Je hebt dit blok al grotendeels; dit vult het aan/maakt het compleet) */
.subgoals-table {
    display: grid;
    gap: 6px;
}

    .subgoals-table .row {
        display: grid;
        grid-template-columns: 1.1fr 1.4fr 0.9fr 0.9fr; /* Les | Titel | Deadline | Prioriteit */
        gap: 10px;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--card-shadow);
    }

    .subgoals-table .sg-head {
        font-weight: 700;
        color: #111827;
        background: #f8fafc;
        border-style: dashed;
    }

    .subgoals-table .row.selected {
        outline: 2px solid rgba(37,99,235,.25);
    }

    .subgoals-table .cell.title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ===== Syncfusion Schedule – popup/editor ruimer maken ===== */
/* Deze regels heb je grotendeels al; onderstaande zorgen dat alle velden breed zijn en het formulier 2 kolommen heeft */
.e-schedule .e-quick-popup .e-popup-content,
.e-schedule-dialog .e-dlg-content {
    max-width: none;
}

    .e-schedule .e-quick-popup .e-textlabel,
    .e-schedule-dialog .e-dlg-content .e-control,
    .e-schedule-dialog .e-dlg-content input,
    .e-schedule-dialog .e-dlg-content select,
    .e-schedule-dialog .e-dlg-content textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .e-schedule-dialog .e-dlg-content .e-schedule-form {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

@media (max-width: 760px) {
    .e-schedule-dialog .e-dlg-content .e-schedule-form {
        grid-template-columns: 1fr;
    }
}

/* Zorg dat de inhoud van het rooster kan scrollen (veiligheidsnet) */
.e-schedule .e-content-wrap {
    overflow: auto !important;
    max-height: unset;
}

/* ===== Agenda – subdoelen als cards (3 regels) ===== */
.subgoals-list {
    display: grid;
    gap: 8px;
}



    .subgoal-card.selected {
        outline: 2px solid rgba(37,99,235,.25);
    }

.is-clickable {
    cursor: pointer;
}

.sg-line {
    display: block;
}

/* 1) bovenste regel: lesnaam */
.sg-lesson {
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

/* 2) titel van het subdoel */


/* 3) meta: deadline links, prioriteit rechts */
.sg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sg-meta .deadline {
        color: var(--muted, #6b7280);
        font-size: .9rem;
    }

    .sg-meta .priority-pill {
        margin-left: auto; /* duwt de prioriteit naar rechts */
    }

/* optioneel: al bestaande priority-kleuren (laten staan als je ze al had) */
.priority-low {
    background: rgba(16,185,129,.12);
    border-color: rgba(16,185,129,.25);
    color: #065f46;
}

.priority-mid {
    background: rgba(245,158,11,.12);
    border-color: rgba(245,158,11,.25);
    color: #7c2d12;
}

.priority-high {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.25);
    color: #7f1d1d;
}

/* algemene util */


.hint {
    margin-top: .5rem;
}

.sg-info__actions .muted {
    margin-left: auto;
}

/* ====== Layout: 4 kolommen ====== */
.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1400px) {
    .columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .columns-4 {
        grid-template-columns: 1fr;
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .25rem 0 .5rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.5rem;
    padding: 0 .5rem;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
}

/* ====== Kaarten ====== */
.card-list {
    display: grid;
    gap: .75rem;
}

.goal-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 2%;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.goal-card.goal-card-toets {
    background: #fdf4ff;
    border-color: #f5d0fe;
}

.goal-card-meta {
    display: grid;
    gap: .3rem;
    margin-top: .25rem;
    font-size: .92rem;
}

.meta-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    padding-top: .1rem;
}

.meta-label {
    color: var(--sa-text-muted);
    min-width: 5.5rem;
    font-size: .7rem;
    font-weight: 400;
}

.meta-value {
    color: var(--sa-text-muted);
    min-width: 5.5rem;
    font-size: .7rem;
    font-weight: 400;
}

/* ====== Prioriteit chips (Laag/Middel/Hoog) ====== */
.priority {
    display: inline-flex;
    width: fit-content; /* enkel zo breed als de tekst */
    max-width: 100%;
    justify-self: start; /* in grid: links uitlijnen */
    align-self: start;
    /* align-items: center; */
    gap: .35rem;
    font-size: .75rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

/* ====== Helpers ====== */
.empty {
    padding: .75rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}

.loading {
    padding: .75rem;
}

/* ====== Modal ====== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(1px);
    z-index: 1000;
}

.modal-root {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 8vh 1rem 2rem;
    z-index: 1001;
}

.modal-content {
    width: min(720px, 95vw);
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 24px 48px rgba(0,0,0,.20);
    overflow: hidden;
    animation: modalIn .12s ease-out;
}

@keyframes modalIn {
    from {
        transform: translateY(-6px);
        opacity: .8;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header, .modal-footer {
    padding: .9rem 1rem;
}

.modal-body {
    padding: 1rem;
}

.icon-btn.close {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}

    .icon-btn.close:hover {
        opacity: 1;
    }

.detail-grid {
    display: grid;
    gap: .6rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: .75rem;
    align-items: start;
}

.detail-label {
    color: #64748b;
    font-size: .85rem;
}

.detail-value {
    color: #0f172a;
}

.detail-description .detail-value {
    grid-column: 1 / -1;
}

.detail-rich p {
    margin: .3rem 0;
}

/* ====== Buttons ====== */
.btn {
    appearance: none;
    border: 1px solid #e2e8f0;
    background: var(--sa-blue-mid);
    color: #fff;
    padding: .5rem .8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
}

    .btn:hover {
        background: var(--sa-blue-soft);
    }

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

    .btn-success:hover {
        filter: brightness(0.95);
    }

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #334155;
}

    .btn-ghost:hover {
        background: #f1f5f9;
    }

/* Fullscreen auth achtergrond + centrering */
.auth-body {
    min-height: 100vh;
    margin: 0;
    background: var(--sa-primary);
    display: grid;
    place-items: center;
    font-family: 'Inter', sans-serif;
}

.form-check {
    margin: 1rem;
}

.auth-wrapper {
    width: 100%;
    padding: 24px;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 28px;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Logo */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

    .login-logo img {
        display: block;
        width: 200px; /* pas aan naar wens */
        height: auto;
    }

/* Form fields & buttons */
.login-card .form-label {
    font-weight: 600;
}

.login-card .form-control {
    height: 44px;
    border-radius: 10px;
}

.login-card .btn {
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--sa-primary);
    color: white;
}

.login-card a.link-secondary {
    text-decoration: none;
    color: var(--sa-text);
    font-size: .8em;
}

    .login-card a.link-secondary:hover {
        text-decoration: underline;
    }


/* Register pagina */
.register-card {
    max-height: none;
    overflow: visible;
}

.register-success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.register-success .alert {
    width: 100%;
    text-align: center;
}

.register-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin: .15rem 0 .45rem;
}

.register-step {
    border: 1px solid var(--border, #d0d7e2);
    border-radius: 10px;
    padding: .45rem .35rem;
    background: #f9fafb;
    color: var(--muted, #6c757d);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

.register-step.completed {
    border-color: #1f8f4d;
    color: #1f8f4d;
    background: #eefaf3;
}

.register-step.active {
    border-color: var(--sa-primary);
    color: var(--sa-primary);
    background: rgba(48, 81, 215, .08);
    box-shadow: 0 0 0 1px rgba(48, 81, 215, .15);
}

.register-step-index {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.register-step-label {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.1;
}

.register-step-panel {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: .25rem;
}

.naw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
}

.naw-grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 767.98px) {
    .naw-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility helper om h1 te verbergen maar wel voor screenreaders te laten */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* added line */
}

.error-box {
    padding: .9rem 1rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #7f1d1d;
    border-radius: 12px;
    margin-bottom: 1rem;
}

    .error-box .error-msg {
        margin: .35rem 0 .75rem;
        white-space: pre-wrap;
    }

/* Header met les links + thumbnail rechts */
.goal-card-head,
.goal-header-main {
    display: grid;
    grid-template-columns: auto 1fr;
    /* align-items: center; */
    gap: .75rem;
    margin-bottom: .4rem;
}

.head-left {
    display: flex;
    gap: .25rem;
}

.lesson-line {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lesson-title,
.goal-title {
    font-weight: 600;
    color: var(--sa-text);
    font-size: 1.2rem;
}

.head-right {
    /* display: grid;
    align-items: center; */
}

.lesson-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

@media (max-width: 520px) {
    .lesson-thumb {
        width: 44px;
        height: 44px;
    }
}

/* (de bestaande .priority chips blijven werken) */
/* --- Huiswerk filters (tabs) --- */
.hw-filters {
    display: flex;
    gap: .5rem;
    margin: 0 0 12px 0;
    flex-wrap: wrap;
}

    .hw-filters .tab {
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #1f2937;
        padding: 8px 12px;
        border-radius: 999px;
        font-weight: 600;
        font-size: .95rem;
        cursor: pointer;
    }

        .hw-filters .tab.active {
            background: #1d4ed8;
            border-color: #1d4ed8;
            color: #fff;
        }
    /* Tweede filterrij voor materiaal */
    .hw-filters.hw-filters--material {
        margin-top: 4px;
        gap: .4rem;
    }

    .hw-filters .pill {
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #1f2937;
        padding: 6px 10px;
        border-radius: 999px;
        font-weight: 600;
        font-size: .9rem;
        cursor: pointer;
    }

        .hw-filters .pill.active {
            background: #059669; /* groen tint voor materiaal */
            border-color: #059669;
            color: #fff;
        }

/* ---- EditGoalDialog layout ---- */
.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* links breder, rechts subdoelen */
    gap: 16px;
}







.subgoal-add.subgoal-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

/* 4 kolommen naast elkaar: Duur | Volgorde | Soort | Online */


.sg-field .sg-label {
    display: block;
    font-size: .9rem;
    margin-bottom: 4px;
}

.sg-title {
    width: 100%;
}





/* ===========================
   EditGoalDialog – breedte & layout
   (additief: overschrijft niets kritisch)
   =========================== */

/* Header/body/footer spacing blijven gelijk aan jouw bestaande styles */




/* Twee-koloms layout binnen de dialog */
.modal-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr; /* linker kolom iets breder */
    gap: 18px;
}

/* Responsief: op small screens 1 kolom */
@media (max-width: 840px) {
    

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Kolommen */


/* Subdoelen-panel rechts – lucht en prettige scroll */




/* Add bar */
.subgoal-add.subgoal-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

/* Kaarten en rijen */




/* Vier velden naast elkaar: Duur | Volgorde | Soort | Online */


/* Labels en inputs consistent */


    .form-control:focus,
    .form-select:focus,
    .combo-input:focus {
        outline: none;
        border-color: #2563eb; /* blauw accent */
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    }

/* Checkbox netter uitlijnen */
.form-check-input[type="checkbox"] {
    inline-size: 18px;
    block-size: 18px;
    margin: 0;
    align-self: center;
}

/* Combo (leszoeker) – list boven andere elementen en klikbaar */




/* Buttons/icoonknoppen: height-harmonie met inputs */
.icon-btn,
.btn.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
}

/* Kleine verfijningen in de hoofdform kolom */
.modal-col.left .form-group {
    margin-bottom: 12px;
}


/* Zorg dat de modal op small screens niet aan de randen plakt */
@media (max-width: 520px) {
    .modal-content.modal-lg {
        max-height: calc(100vh - 6vh);
    }
}

/* ===== EditGoalDialog – spacing & layout tweaks ===== */

/* Binnenruimte voor de twee kolommen */


/* Kolommen zelf ook wat marge t.o.v. de modal-randen */
.modal-col.left,
.modal-col.right {
    min-width: 0;
}

/* Subdoelen-paneel gebruikt de beschikbare hoogte beter */




/* Label met invoerveld eronder i.p.v. ernaast */
.subgoal-panel-header {
    display: flex;
    flex-direction: column; /* <-- onder elkaar */
    align-items: stretch;
    gap: 8px;
    padding-right: 6px;
}

/* Input + plus-knop netjes full-width */
.subgoal-add.subgoal-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-width: 0px;
}

    .subgoal-add.subgoal-inline .btn {
        min-width: 42px; /* vaste zone voor de + zodat hij niet wegvalt */
        justify-content: center;
    }

    .subgoal-add.subgoal-inline input {
        min-width: 0; /* laat krimpen bij beperkte ruimte */
    }

/* Subdoelkaart: wat extra lucht */


.subgoal-card {
    display: flex;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
}

    .subgoal-card .priority-bar {
        width: 4px;
        border-radius: 999px;
        margin-right: 0.75rem;
    }

/* Titel + prullenbak */
.sg-row-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

/* Vier velden naast elkaar – met verhoudingen en marges */


/* Label styling consistent */
.sg-field .sg-label,
.form-group label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* Invoervelden basis (sluit aan op eerdere aanvulling) */
.form-control,
.form-select,
.combo-input {
    width: 100%;
    min-height: 36px;
    padding: 0.4rem 0.5rem;
    font: inherit;
    font-size: 0.9rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

/* Specifieke breedtes: Volgorde smal, Soort ruimer */
.sg-order {
    max-width: 72px;
}
/* 2 tekens + padding */

/* ruimer keuzemenu */

/* Checkbox Online netjes op dezelfde regel en niet geplakt aan de rand */
.sg-row-fields.sg-grid-4 .form-check-input[type="checkbox"] {
    inline-size: 18px;
    block-size: 18px;
    margin: 0 4px 4px 2px;
    align-self: center;
}

/* Combo (leszoeker) niet onder randen geplakt en boven content */






/* Responsief: 1 kolom, maar nog steeds lucht langs de randen */
@media (max-width: 840px) {
    

        

    
}

/* ===== Huiswerk EditGoalDialog – subdoelen breder & langer ===== */

/* Maak de rechter kolom (Subdoelen) duidelijk breder dan links */


/* Rechterkolom: niet tegen de buitenrand plakken */


/* Subdoelenpaneel: gebruik de hoogte beter, geen horizontale scrollbars */


/* Lijst binnen het paneel mag zelf ook scrollen zonder horizontale balk */


/* Vier velden op de kaart:
   Duur smal, Volgorde extra smal (2 chars), Soort ruim, Online checkbox compact */


/* Specifieke breedtes voor inputs zodat ze niet forceren naar rechts */

/* 1–10 = 2 karakters + padding */

/* comfortabel lange optie labels */


/* Checkbox 'Online' netjes in lijn en niet tegen de rand */


/* Responsief: op small screens weer 1 kolom, maar nog steeds extra binnenruimte */
@media (max-width: 900px) {
    

    
}

/* === Modal scroll & clipping fixes === */

/* Maak de middenzone (grid) de ENIGE scrollcontainer; header/footer blijven zichtbaar */




/* Op small screens: 1 kolom, met interne padding behouden */
@media (max-width: 900px) {
    
}

/* === Rechter kolom (Subdoelen) breder & hoger, zonder horizontale balkjes === */




/* Lijst zelf hoeft geen eigen max-height; laat het paneel scrollen */


/* === Velden in de subdoel-kaart === */
/* 4 kolommen: Duur | Volgorde (smal) | Soort (ruim) | Online (compact) */





/* 2 karakters */


/* Zet 'Online' op dezelfde regel: maak het LAATSTE veld een inline rij */


    

    

/* === Combo/dropdown lijstjes altijd boven andere elementen in de modal === */




/* Tekstveld omschrijving iets hoger en met extra ondermarge */
#desc.form-control {
    min-height: 110px;
}

.modal-col.left .form-group {
    margin-bottom: 14px;
}

/* Responsief: 1 kolom, maar nog steeds lucht langs de randen */
@media (max-width: 840px) {
    .modal-content.modal-lg {
        width: min(100%, 92vw);
        max-width: 92vw;
    }

        

    
}

/* ===== Huiswerk EditGoalDialog – subdoelen breder & langer ===== */

/* Maak de rechter kolom (Subdoelen) duidelijk breder dan links */


/* Rechterkolom: niet tegen de buitenrand plakken */


/* Subdoelenpaneel: gebruik de hoogte beter, geen horizontale scrollbars */


/* Lijst binnen het paneel mag zelf ook scrollen zonder horizontale balk */


/* Vier velden op de kaart:
   Duur smal, Volgorde extra smal (2 chars), Soort ruim, Online checkbox compact */


/* Specifieke breedtes voor inputs zodat ze niet forceren naar rechts */

/* 1–10 = 2 karakters + padding */

/* comfortabel lange optie labels */


/* Checkbox 'Online' netjes in lijn en niet tegen de rand */
.sg-row-fields.sg-grid-4 .form-check-input[type="checkbox"] {
    margin: 0 6px 6px 2px;
    align-self: center;
}

/* Responsief: op small screens weer 1 kolom, maar nog steeds extra binnenruimte */
@media (max-width: 900px) {
    

    
}

/* === Modal scroll & clipping fixes === */

/* Maak de middenzone (grid) de ENIGE scrollcontainer; header/footer blijven zichtbaar */
.modal-content.modal-lg .modal-header,
.modal-content.modal-lg .modal-footer {
    flex: 0 0 auto;
}

.modal-header {
    background: var(--sa-primary-light);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,.06);
}



/* Op small screens: 1 kolom, met interne padding behouden */
@media (max-width: 900px) {
    
}

/* === Rechter kolom (Subdoelen) breder & hoger, zonder horizontale balkjes === */




/* Lijst zelf hoeft geen eigen max-height; laat het paneel scrollen */
.dialog-subgoals {
    overflow: visible;
    min-width: 0px;
}

/* === Velden in de subdoel-kaart === */
/* 4 kolommen: Duur | Volgorde (smal) | Soort (ruim) | Online (compact) */
.sg-row-fields.sg-grid-4 {
    display: grid;
    grid-template-columns: 120px 72px 2fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 8px;
}




/* 2 karakters */


/* Zet 'Online' op dezelfde regel: maak het LAATSTE veld een inline rij */
.sg-row-fields.sg-grid-4 .sg-field:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .sg-row-fields.sg-grid-4 .sg-field:last-child .sg-label {
        margin: 0; /* label naast checkbox, geen ondermarge */
    }

    .sg-row-fields.sg-grid-4 .sg-field:last-child .form-check-input[type="checkbox"] {
        margin: 0; /* netjes centreren naast label */
    }

/* === Combo/dropdown lijstjes altijd boven andere elementen in de modal === */



/* === EditGoalDialog: rechterkolom breder + Online op dezelfde regel === */


/* Rechterkolom (Subdoelen) aanzienlijk breder dan links */


/* Rechterkolom mag niet klem zitten tegen de rand */


/* Subdoelen-paneel benut breedte en hoogt beter, geen horizontale scroll */
.subgoal-panel {
    overflow-x: hidden;
}

/* --- Subdoelkaart – 4 velden op één rij --- */
/* Zorg voor stabiele kolombreedtes:
   Duur smal, Volgorde extra smal, Soort flexibel/ruim, Online compact */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 {
    grid-template-columns: 120px /* Duur */
    64px /* Volgorde */
    minmax(260px, 1fr) /* Soort: ruimer en flexibel */
    auto; /* Online */
    gap: 12px;
    align-items: end;
}

/* Inputs binnen de kolommen forceren geen extra breedte */
.sg-duration {
    max-width: 120px;
}





/* Zet 'Online' écht naast de rest en voorkom afbreken/wrapping */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* blijf op één regel */
    min-width: max(110px, 12ch); /* voorkom krappe afbreking */
}

    .modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child .sg-label {
        margin: 0;
    }

    

/* Als je op small screens terug wil naar 1 kolom, laat dit staan */
@media (max-width: 900px) {
    
}

/* === 1) Linkerkolom direct breder en stabiel === */
/* Zorg dat de gridkolommen vanaf het openen dezelfde verhoudingen houden
   en dat de linkerkant nooit smaller wordt dan ~420px */


/* Optioneel: de les-combobox mag niet kleiner dan de kolom-min breedte */
.modal-col.left .combo-input {
    min-width: 100%;
}

/* === 2) 'Online' onder label (stacked) === */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child {
    display: flex; /* i.p.v. inline-flex */
    flex-direction: column; /* label boven, checkbox eronder */
    align-items: flex-start;
    gap: 6px;
    white-space: normal; /* mag afbreken indien nodig */
    min-width: 120px; /* voorkomt te smal worden */
}

    /* label & checkbox nette marges */
    

    

/* (blijft): kolombreedtes voor de 4 velden */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 {
    grid-template-columns: 110px /* Duur */
    64px /* Volgorde */
    minmax(340px, 1fr) /* Soort ruimer */
    minmax(140px, .8fr); /* Online-blok heeft nu eigen min-ruimte */
    gap: 12px;
    align-items: end;
}

/* Responsief fallback (1 kolom) blijft werken */
@media (max-width: 900px) {
    
}

/* Als laatste toegevoegd door Dennis %% */

/* ==== EditGoalDialog – rechterkolom breder + geen horizontale scroll ==== */

/* Linker | Rechter kolom: maak rechts duidelijk breder en voorkom x-scroll */


/* Rechterkolom niet tegen de rand en laat hem meeveren */
.modal-col.right {
    padding-right: 12px;
    max-width: none;
    width: 100%;
    min-width: 0; /* belangrijk om overflows te voorkomen */
}

/* Kaarten nemen de volle breedte aan */
.subgoal-panel,
.dialog-subgoals,
.subgoal-card {
    width: 100%;
    min-width: 0;
    /* overflow-x: hidden; */
    box-sizing: border-box;
    padding: 8px 10px;
    gap: 1px;
}

/* === Rij met 4 velden binnen de subdoelkaart ===
   Duur (smal) | Volgorde (extra smal) | Soort (ruim, flexibel) | Online (compact, stacked) */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 {
    grid-template-columns: 110px /* Duur */
    64px /* Volgorde */
    minmax(260px, 1fr) /* Soort: ruim en schaalbaar */
    120px; /* Online-blok: compact, schaalt mee */
    gap: 12px;
    align-items: end;
}

/* Specifieke inputbreedtes in lijn met de kolommen */
.sg-duration {
    max-width: 110px;
}

.sg-order {
    max-width: 64px;
}

.sg-soort {
    min-width: 240px;
    max-width: 100%;
}

/* 'Online' onder label (stacked) en compact */
.modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child {
    display: flex;
    flex-direction: column; /* label boven, checkbox eronder */
    align-items: flex-start;
    gap: 6px;
    min-width: 110px;
    white-space: normal;
}

    .modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child .sg-label {
        margin: 0 0 2px 0;
    }

    .modal-content.modal-lg .sg-row-fields.sg-grid-4 .sg-field:last-child .form-check-input[type="checkbox"] {
        margin: 0;
    }

/* Responsief fallback */
@media (max-width: 900px) {
    .modal-content.modal-lg .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Bovenste regel: les links, prio-pill rechts */
.subgoal-card .sg-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 4px;
}

    .subgoal-card .sg-header .sg-lesson {
        margin: 0;
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .subgoal-card .sg-header .priority-pill {
        margin-left: auto; /* rechts uitlijnen */
        font-size: .7rem;
    }

/* Tweede regel: titel iets compacter */
.subgoal-card .sg-title {
    margin: 0 0 4px 0;
}

/* Derde regel: meta onder elkaar; 'Volgorde' zelfde stijl als deadline */
.subgoal-card .sg-meta {
    display: block; /* override evt. flex */
}

    .subgoal-card .sg-meta .deadline {
        color: var(--muted, #6b7280);
        font-size: .8rem;
        margin: 0 0 2px 0;
    }

/* Mini-ruimte tussen de drie regels */
.subgoal-card .sg-lesson {
    margin-bottom: 1px;
}

/* Middenzone: neemt de overgebleven ruimte in */
.goal-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0; /* voorkomt overflow bij lange beschrijvingen */
}
/* Algemene form layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-row.inline {
        flex-direction: row;
        gap: 12px;
    }

        .form-row.inline > div {
            flex: 1 1 0;
            min-width: 0;
        }

label {
    font-size: .9rem;
    color: #374151;
}

.form-input, .form-select, textarea.form-input {
    /* width: 100%; */
    padding: 8px 10px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: .95rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

/* Dialog content spacing */
.e-dialog .e-dlg-content .form-grid {
    margin-top: 8px;
}


.agenda-title-input {
    min-height: 36px;
    border-radius: 0.375rem;
}

/* geef je outer container een class, bv. .agenda-page */
.e-appointment.evt-private {
    background: #9CA3AF !important;
    border-color: #6B7280;
}

.e-appointment.evt-school {
    background: #3B82F6 !important;
    border-color: #2563EB;
}

.e-appointment.evt-homework {
    background: #10B981 !important;
    border-color: #059669;
}

/* Huiswerk-varianten op basis van subdoel-soort */
.e-appointment.evt-homework-leren,
.e-appointment.evt-homework-maken {
    position: relative;
    overflow: hidden;
}

    /* smalle gekleurde rand rechts */
    .e-appointment.evt-homework-leren::after,
    .e-appointment.evt-homework-maken::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 6px; /* breedte van de rand */
        height: 100%;
    }

    /* kleur per soort */
    .e-appointment.evt-homework-leren::after {
        background: #0ea5e9; /* blauw voor 'leren' */
    }

    .e-appointment.evt-homework-maken::after {
        background: #fbbf24; /* geel/oranje voor 'maken' */
    }

.e-appointment.evt-hobby {
    background: #85E085 !important;
    border-color: #059669;
}

.e-appointment.evt-sporten {
    background: #ec990b !important;
    border-color: #059669;
}

.e-appointment.evt-toets {
    background: #ec64d1 !important;
    border-color: #059669;
}

.e-appointment.evt-reistijd {
    background: #108412 !important;
    border-color: #059669;
}

.e-appointment.evt-default {
    background: #E6E600 !important;
    border-color: #059669;
}

.e-appointment.evt-master {
    outline: 1px dashed rgba(0,0,0,.25);
}

.e-appointment.evt-series { /* subtiele hint, optioneel */
}

.e-appointment.evt-single { /* geen serie */
}

.e-schedule .e-vertical-view .e-day-wrapper .e-appointment .e-subject {
    font-size: .9rem;
    line-height: 1.2;
    margin-left: auto;
    min-height: 18px;
    overflow: hidden;
    overflow-wrap: break-word;
    padding-top: 4px;
    white-space: normal;
    word-wrap: break-word;
}
/* Agenda dialog spacing */
.form-row.inline.spaced {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* voor 3 kolommen-rijen */
    gap: 2rem;
}

    .form-row.inline.spaced > div,
    .form-row.inline.spaced-2 > div {
        display: flex;
        flex-direction: column;
    }

        /* Als je een rij met 2 kolommen hebt (Eindigt op / Max. aantal), override op die container */
        .form-row.inline.spaced > div:only-child {
            grid-column: span 3;
        }
    /* failsafe */
    .form-row.inline.spaced:nth-child(n) { /* noop; hou plek vrij als je wilt tunen */
    }

.form-row.inline.spaced-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* extra ruimte tussen 'Eindigt op' en 'Max. aantal' */
}

.e-dlg-content form {
    grid-template-columns: 1fr;
}



/* ===== Instellingen: custom menu + submenu (volle breedte onder header) ===== */
.settings-page {
    margin: -20px -20px 0;
}

.settings-main-menu,
.settings-sub-menu {
    display: flex;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1.25rem;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.settings-main-menu {
    background: #f3f4f6;
    border-bottom: 1px solid #dbe1e8;
}

.settings-sub-menu {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.settings-menu-button,
.settings-submenu-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--sa-primary);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

.settings-menu-button:hover,
.settings-submenu-button:hover {
    background: #e8edf2;
}

.settings-menu-button.is-active,
.settings-submenu-button.is-active {
    background: var(--sa-primary);
    color: #fff;
}

.settings-page .settings-section {
    padding: 0 1.25rem 1.25rem;
}

/* ===== Instellingen-pagina: content onder tabbladen ===== */

.tab-content {
    margin-top: 8px;
}

/* ===== Instellingen: tijdsblokken per dag ===== */

.timeblock-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

    .timeblock-row strong {
        font-size: .9rem;
        color: var(--text);
    }

    .timeblock-row ul {
        margin: 2px 0 4px 0;
        padding-left: 1.1rem;
    }

    .timeblock-row li {
        font-size: .9rem;
        color: var(--text);
    }

.timeblock-add {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

    .timeblock-add input[type="time"] {
        min-width: 90px;
        padding: 4px 6px;
        border-radius: 8px;
        border: 1px solid var(--border);
        font-size: .9rem;
    }

/* Link-knop voor 'Verwijderen' etc. (gebruik naast .btn) */
.btn-link {
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: .85rem;
    padding: 0;
    cursor: pointer;
}

    .btn-link:hover {
        text-decoration: underline;
    }

/* Kleine margin helper voor onderaan de pagina */
.mt-3 {
    margin-top: 1rem;
}

/* ===== Instellingen / Lesschema: eenvoudige form-rijen ===== */

.settings-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    max-width: 260px;
}

    .settings-form-row label {
        font-size: .9rem;
        font-weight: 600;
        color: var(--text);
    }

    .settings-form-row input[type="date"],
    .settings-form-row input[type="text"],
    .settings-form-row input[type="number"],
    .settings-form-row input[type="password"],
    .settings-form-row input[type="time"],
    .settings-form-row select {
        font-size: .9rem;
        padding: 6px 8px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--text);
    }

    .settings-form-row input[type="email"] {
        font-size: .9rem;
        padding: 6px 8px;
        border-radius: 8px;
        border: 1px solid var(--border);
        color: var(--text);
    }
    
    
    /* ===== Lesschema: weekoverzicht / rooster-tabel ===== */
    .timetable-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: .75rem;
        font-size: .9rem;
        background: var(--panel);
        border-radius: 12px;
        overflow: visible;
        box-shadow: var(--shadow-sm);
    }

        .timetable-table input[type="time"],
        .timetable-table input[type="number"] {
            font-size: .9rem;
            padding: 6px 8px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: #fff;
            color: var(--text);
        }

    .timetable-table thead {
        background: #f3f4f6;
    }

    .timetable-table th,
    .timetable-table td {
        border: 1px solid var(--border);
        padding: 6px 8px;
        text-align: left;
    }

    .timetable-table th {
        font-weight: 600;
        color: var(--text);
    }

    .timetable-table tbody tr:nth-child(even) {
        background: #f9fafb;
    }

    .timetable-table tbody {
        overflow: visible;
    }

    .timetable-table tr {
        overflow: visible;
    }

    

/* Optioneel: kleine hinttekst onder velden */
.settings-hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 2px;
}

.profile-photo-row .avatar {
    height: 300px;
    width: auto;
    object-fit: cover;
}

/* ====== Herbruikbare combo (LessonPicker) ====== */
.combo {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: .25rem;
}

.combo-input {
    width: 100%;
}

.combo-addon {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    border-radius: 0.375rem;
    padding: 0 .6rem;
    cursor: pointer;
    line-height: 1;
    min-width: 2.2rem;
}

    .combo-addon:hover {
        background: #e5e7eb;
    }

/* Dropdown lijst */
.combo-list {
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: .25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    max-height: 240px;
    overflow: auto;
    list-style: none;
    padding: .25rem 0;
}

.combo-item {
    padding: .4rem .6rem;
    cursor: pointer;
}

    .combo-item:hover {
        background: #f3f4f6;
    }

/* In tabellen moet de cel overflow toestaan zodat dropdown zichtbaar is */
.timetable-table td {
    position: relative;
    overflow: visible;
}

.region-settings .form-row {
    display: flex;
    gap: .75rem;
    align-items: end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.region-settings .form-label {
    display: block;
    font-weight: 600;
}

.region-settings .form-select,
.region-settings input[type="date"],
.region-settings input[type="number"],
.region-settings input[type="time"] {
    padding: .5rem .6rem;
    border: 1px solid #d0d7de;
    border-radius: .5rem;
    background: #fff;
}

.region-settings .btn {
    padding: .5rem .8rem;
    border-radius: .6rem;
    border: 1px solid #d0d7de;
    background: var(--sa-blue-mid);
    border-color: var(--sa-blue-mid);
    cursor: pointer;
    font-size: .9rem;
}

    .region-settings .btn.primary {
        background: var(--sa-blue-mid);
        color: #fff;
        border-color: var(--sa-blue-mid);
        font-size: .9rem;
    }

    .region-settings .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

    .region-settings .btn:hover {
        background: var(--sa-blue-soft);
    }

.region-settings .sep {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.vacation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.vacation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
}

    .vacation-table th, .vacation-table td {
        padding: .6rem .5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .vacation-table tbody tr:hover {
        background: #fafbfc;
    }

.muted {
    color: #6b7280;
}

.error-box {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: .75rem;
    border-radius: .5rem;
}

.mt-0 {
    margin-top: 0;
}

.timeblock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

    .timeblock-table th,
    .timeblock-table td {
        padding: 0.5rem;
        border-bottom: 1px solid #ddd;
    }

    .timeblock-table select,
    .timeblock-table input[type="time"] {
        width: 100%;
    }

/* ====== Huiswerk cards: verticale streep op basis van prioriteit ====== */

/* Outer layout in de card */
.goal-card-inner {
    display: flex;
    align-items: stretch;
}

/* Container voor de rest van de inhoud */
.goal-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* De subtiele verticale streep links in de card */
.goal-card-stripe {
    width: 4px; /* dunne streep */
    border-radius: 999px; /* afgerond */
    margin: .4rem .7rem .4rem .1rem; /* rondom een beetje ruimte in de card */
    background: #e5e7eb; /* neutraal als fallback */
    flex-shrink: 0;
}

    /* Kleur op basis van priority */
    .goal-card-stripe.stripe-low {
        background: #16a34a; /* groen */
    }

    .goal-card-stripe.stripe-medium {
        background: #f97316; /* oranje */
    }

    .goal-card-stripe.stripe-high {
        background: #ef4444; /* rood */
    }

/* Opvallende melding boven de lijst */
.auto-plan-status-box {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.status-success {
    background-color: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
}

.status-warning {
    background-color: #fff7ed;
    border: 1px solid #f97316;
    color: #9a3412;
}

.status-error {
    color: #b91c1c;
}

/* ===== Huiswerk page – header met verticale streep en afbeelding links ===== */

.goal-header-image {
    flex-shrink: 0;
}

/* scroll alleen binnen het huiswerk-gedeelte, niet de hele pagina */
.hw-scroll {
    max-height: calc(100vh - 220px); /* eventueel finetunen afhankelijk van topbar/filters */
    overflow-y: auto;
    padding-right: 4px; /* ruimte voor scrollbar */
}

/* Agenda nieuwe afspraak modal */

.e-dialog .e-dlg-header-content {
    border-bottom: 1px solid #dee2e6;
    padding: 12px 14px 12px 12px;
    background-color: var(--sa-primary-light);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.e-dialog .e-dlg-header {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.homework-dialog-title {
    font-weight: 700;
}


/* Spinner */
/* Container waar de spinner in komt */
.pomodoro-spinner-container {
    width: 100%;
    min-height: 420px; /* zodat er ruimte is voor een nette centerpositie */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* De spinner zelf */
.pomodoro-spinner {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    /* Pulsende glow */
    .pomodoro-spinner .pulse {
        position: absolute;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(118,213,110,0.25) 0%, rgba(82,165,227,0.15) 70%, rgba(255,255,255,0) 100% );
        animation: pulse-glow 2.2s ease-in-out infinite;
    }

@keyframes pulse-glow {
    0% {
        transform: scale(0.92);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }

    100% {
        transform: scale(0.92);
        opacity: 0.55;
    }
}

/* Roterende ring */
.pomodoro-spinner .rotating-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 6px solid transparent;
    border-top-color: #7EC254;
    border-right-color: #6BB5D9;
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo in het midden */
.pomodoro-spinner img.logo {
    width: 70px;
    height: auto;
    z-index: 5;
    opacity: 0.95;
}

.pomodor-spinner-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--sa-primary-light);
    text-align: center;
}

.e-control,
.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    font-family: 'Inter', sans-serif;
}

    .e-tab .e-tab-header .e-toolbar-item .e-tab-text:hover {
        color: white;
    }

    .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
        background: var(--sa-blue-mid);
    }

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    color: var(--sa-primary);
    background: var(--sa-blue-soft);
}
    .e-tab .e-tab-header .e-toolbar-item .e-tab-wrap:hover {
        background: var(--sa-blue-soft);
    }

    .e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-tab-text {
        color: white;
    }

/* Standaard: blocker uit, app aan */
.mobile-blocker {
    display: none;
}

.mobile-blocker-content {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.mobile-blocker h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mobile-blocker p {
    margin-bottom: 1rem;
}

.mobile-blocker-link {
    text-decoration: underline;
}

/* Op smartphones / kleine schermen: alleen de blocker tonen */
@media (max-width: 768px) {
    .layout-shell {
        display: none;
    }

    .mobile-blocker {
        display: flex;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }
}


.logout-button {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.e-tab .e-tab-header:not(.e-vertical) .e-indicator, .e-tab .e-tab-header.e-vertical .e-indicator {
    transition: none;
}

.lesson-progress-list {
    list-style: none;
}

.lesson-deadline {
    font-size: .75rem;
    color: var(--sa-primary-light);
}

.lesson-row {
    font-size: 1.1rem;
    color: var(--sa-primary);
}

.home-page .card-title {
    font-size: 1.3rem;
    color: var(--sa-primary);
    margin-bottom: 1rem;
}

.onboarding-checklist {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.onboarding-checklist-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--sa-primary);
}

.onboarding-checklist-item a {
    color: inherit;
    text-decoration: none;
}

.onboarding-checklist-item a:hover {
    text-decoration: underline;
}

.onboarding-checklist-item.is-done {
    color: var(--muted);
}

.onboarding-checklist-item .checkmark {
    width: 1rem;
    font-weight: 700;
}


.home-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.homework-progress-card {
    grid-column: span 2;
}

.homework-progress-card.is-expanded {
    grid-column: span 3;
}

.upcoming-tasks-card {
    grid-column: span 1;
}

@media (max-width: 1100px) {
    .home-overview-grid {
        grid-template-columns: 1fr;
    }

    .homework-progress-card,
    .upcoming-tasks-card {
        grid-column: auto;
    }
}

.upcoming-task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .4rem;
}

.upcoming-task-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    border-left: 4px solid transparent;
    padding-left: .5rem;
    border-radius: 4px;
}

.upcoming-task-item.task-upcoming {
    border-left-color: #1f9d55;
    background: rgba(31, 157, 85, 0.08);
}

.upcoming-task-item.task-due-today {
    border-left-color: #f08c00;
    background: rgba(240, 140, 0, 0.1);
}

.upcoming-task-item.task-overdue {
    border-left-color: #e03131;
    background: rgba(224, 49, 49, 0.1);
}

.upcoming-task-list a {
    color: var(--sa-primary);
    text-decoration: none;
}

.upcoming-task-date {
    color: var(--muted);
    font-size: .85rem;
    white-space: nowrap;
}

.upcoming-task-list a:hover {
    text-decoration: underline;
}
.tasks-page {
    display: grid;
    gap: 12px;
}

.task-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.task-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-list {
    display: grid;
    gap: 12px;
}

.task-list--rows {
    gap: 10px;
}

.task-list-header {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 140px 140px minmax(160px, 1fr) 96px;
    gap: 8px;
    align-items: center;
    font-size: .85rem;
    color: var(--muted);
    padding: 0 10px;
}

.task-list-header-meta {
    text-align: left;
}

.task-sort {
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.task-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) 140px 140px minmax(160px, 1fr) 96px;
    gap: 8px;
    align-items: center;
}

.task-row-main {
    font-weight: 600;
}

.task-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
}

.task-progress-wrap {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.task-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--muted);
}

.task-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e6ecff;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: var(--sa-primary);
    border-radius: inherit;
}

.task-meta {
    color: var(--muted);
}

.task-editor-dialog {
    max-width: 640px;
    width: min(94vw, 640px);
}


.task-editor-dialog .modal-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-editor-dialog .task-field-full {
    grid-column: 1 / -1;
}

.task-editor-dialog .task-title-input {
    min-height: 36px;
    border-radius: 0.375rem;
}

.task-editor-dialog .task-dates-row {
    grid-column: 1 / -1;
}

.task-editor-dialog .task-dialog-actions {
    justify-content: flex-end;
}

.flashcard-deck-list {
    display: grid;
    gap: 8px;
}

.flashcard-deck-row {
    border: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
}

.flashcard-deck-content {
    min-width: 0;
}

.flashcard-deck-progress-wrap {
    margin-top: .55rem;
}

    .flashcard-deck-row.active {
        border-color: var(--sa-primary);
        box-shadow: 0 0 0 1px rgba(48, 81, 215, .15);
        background: rgba(48, 81, 215, .04);
    }

.task-editor-dialog .modal-body.flashcard-dialog-body {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1rem 1.2rem;
}

    .flashcard-dialog-body .form-group {
        margin: 0;
    }

.fivew-editor-body .fivew-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.fivew-editor-body .fivew-tab-panel {
    margin-top: .25rem;
}

.fivew-editor-body .fivew-tab-panel textarea {
    min-height: 180px;
}

.flashcard-study-modal {
    width: min(94vw, 760px);
    max-width: 760px;
}

.flashcard-study-modal .modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.flashcard-study-header {
    align-items: center;
}

.flashcard-study-title {
    margin: 0;
    font-size: 1.05rem;
}

.flashcard-study-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.2rem;
}

.flashcard-study-card {
    margin: 0;
    min-height: 320px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    perspective: 1200px;
}

.flashcard-study-card-inner {
    position: relative;
    min-height: 320px;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s ease;
}

.flashcard-study-card.is-flipped .flashcard-study-card-inner {
    transform: rotateY(180deg);
}

.flashcard-study-card-face {
    position: absolute;
    inset: 0;
    padding: 1rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flashcard-study-card-back {
    transform: rotateY(180deg);
}

.flashcard-study-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: .9rem;
    text-align: left;
}

.flashcard-study-question {
    margin: 0;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 600;
    white-space: pre-wrap;
    word-break: break-word;
}

.flashcard-study-media {
    max-width: min(100%, 240px);
    border-radius: 8px;
}

.flashcard-study-text-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.flashcard-study-text-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .65rem .75rem;
    background: #fff;
}

.flashcard-study-text-item.active {
    border-color: var(--sa-primary);
    box-shadow: 0 0 0 1px rgba(48, 81, 215, .15);
    background: rgba(48, 81, 215, .04);
}

.flashcard-study-text-label {
    display: block;
    margin-bottom: .25rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
}

.flashcard-study-text-value {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .95rem;
}

.flashcard-answer-input {
    margin: 0;
}


.flashcard-study-side-indicator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.flashcard-study-side-box {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .6rem .75rem;
    text-align: center;
    font-weight: 600;
    color: #334155;
    background: #fff;
}

.flashcard-study-side-box.active {
    border: 2px solid #1e293b;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.flashcard-study-footer-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    align-items: start;
}

.flashcard-study-footer-col {
    min-height: 42px;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.flashcard-study-footer-col .btn {
    width: fit-content;
}

.flashcard-study-footer-col:last-child {
    align-items: flex-end;
}

.flashcard-study-card-index {
    color: var(--muted);
    font-size: .92rem;
    white-space: nowrap;
    text-align: center;
}

.flashcard-study-footer {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: stretch;
}

.flashcard-study-actions {
    display: flex;
    gap: .55rem;
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.flashcard-study-footer .icon-only,
.flashcard-study-footer .review-btn {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flashcard-study-footer .icon-only.active {
    border-color: var(--sa-primary);
    box-shadow: 0 0 0 1px rgba(48, 81, 215, .15);
    color: var(--sa-primary);
}

.flashcard-study-footer .review-btn svg {
    fill: currentColor;
}

.flashcard-study-footer .review-btn.good {
    color: #1f8f4d;
}

.flashcard-study-footer .review-btn.twijfel {
    color: #dc8a1f;
}

.flashcard-study-footer .review-btn.twijfel svg {
    transform: rotate(90deg);
}

.flashcard-study-footer .review-btn.fout {
    color: #cb3d3d;
}

.flashcard-study-footer .review-btn.fout svg {
    transform: rotate(180deg);
}

@media (max-width: 640px) {
    .flashcard-study-text-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .flashcard-study-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .flashcard-study-footer-col:last-child {
        align-items: flex-start;
    }
}

.flashcard-card-list {
    display: grid;
    gap: .7rem;
}

.flashcard-card-list-header {
    grid-template-columns: minmax(220px, 1.5fr) 140px 130px 130px 120px 96px;
}

.flashcard-review-summary {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    align-items: center;
}

.flashcard-review-item {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    font-size: .86rem;
    font-weight: 600;
}

.flashcard-review-item svg {
    fill: currentColor;
}

.flashcard-review-item.good {
    color: #1f8f4d;
}

.flashcard-review-item.twijfel {
    color: #dc8a1f;
}

.flashcard-review-item.twijfel svg {
    transform: rotate(90deg);
}

.flashcard-review-item.fout {
    color: #cb3d3d;
}

.flashcard-review-item.fout svg {
    transform: rotate(180deg);
}

.flashcard-review-item.none {
    color: var(--muted);
}

.flashcard-review-item.none svg {
    transform: rotate(0deg);
}

.flashcard-card-row {
    grid-template-columns: minmax(220px, 1.5fr) 140px 130px 130px 120px 96px;
    padding: .6rem .75rem;
}

@media (max-width: 860px) {
    .flashcard-card-list-header {
        display: none;
    }

    .flashcard-card-row {
        grid-template-columns: minmax(0, 1fr);
        gap: .45rem;
    }

    .flashcard-card-row .task-row-actions {
        justify-content: flex-end;
    }
}

.flashcard-study-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .75rem 0;
}

.flashcard-study-filter-options label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .95rem;
}



.flashcard-study-option-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-bottom: .6rem;
}

.flashcard-tag-list .btn.btn-primary,
.flashcard-study-option-row .btn.btn-primary {
    background: var(--sa-primary);
    border-color: var(--sa-primary);
    color: #fff;
}
.flashcard-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 640px) {
    .flashcard-study-actions {
        justify-content: center;
    }
}

.week-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.week-day-column {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .75rem;
    background: #fff;
    min-height: 180px;
}

.week-day-column h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    text-transform: capitalize;
}

.week-item {
    margin-bottom: .6rem;
    padding: .65rem;
}

.week-item:last-child {
    margin-bottom: 0;
}

.week-item-head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
}

.week-item-title-wrap {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    flex-wrap: wrap;
}

.week-item-title {
    font-weight: 600;
}

.week-item-time {
    font-size: .85rem;
    color: #4b5563;
}

.week-item-goaltype {
    font-size: .75rem;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: .1rem .45rem;
    white-space: nowrap;
}

.week-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: #374151;
    margin-bottom: .2rem;
}

.week-item-learning-method {
    font-size: .85rem;
    color: #374151;
}

.week-kind {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.week-kind svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .week-overview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .week-grid {
        grid-template-columns: 1fr;
    }
}


.fivew-row {
    grid-template-columns: minmax(180px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto auto;
}

.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.study-grid > div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: var(--panel-bg);
}

.study-grid p {
    margin: 4px 0 0;
}

.quiz-stepper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .45rem;
    margin: .15rem 0 .45rem;
}

.quiz-step {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .45rem .35rem;
    background: #f9fafb;
    color: var(--muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

.quiz-step.done {
    border-color: #1f8f4d;
    color: #1f8f4d;
    background: #eefaf3;
}

.quiz-step.active {
    border-color: var(--sa-primary);
    color: var(--sa-primary);
    background: rgba(48, 81, 215, .08);
    box-shadow: 0 0 0 1px rgba(48, 81, 215, .15);
}

.quiz-step-index {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.quiz-step-label {
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.1;
}

.quiz-summary-grid .quiz-result-score,
.quiz-summary-grid .quiz-result-thumb {
    font-size: 1.06rem;
    font-weight: 700;
}

.quiz-summary-grid .score-good {
    color: #1f8f4d;
}

.quiz-summary-grid .score-warning {
    color: #dc8a1f;
}

.quiz-summary-grid .score-bad {
    color: #cb3d3d;
}

@media (max-width: 760px) {
    .quiz-stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.quiz-loading-modal {
    width: min(92vw, 420px);
    max-width: 420px;
    padding: 1.2rem 1rem 1.4rem;
}

.quiz-loading-modal .pomodoro-spinner-container {
    min-height: 180px;
}

.btn-loading-content {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: spin .8s linear infinite;
    display: inline-block;
}

/* ===== Abonnementsoverzicht ===== */
.subscription-overview {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    margin: 0;
}

.subscription-overview dt,
.subscription-overview dd {
    margin: 0;
    padding: 0.1rem 0;
}

.subscription-overview .col-sm-4,
.subscription-overview .col-sm-8 {
    flex: 0 0 100%;
    max-width: 100%;
}

.subscription-overview dt {
    font-weight: 600;
    color: var(--sa-text);
}

.subscription-overview dd {
    color: var(--sa-text-muted);
    margin-bottom: 0.45rem;
}

@media (min-width: 576px) {
    .subscription-overview .col-sm-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .subscription-overview .col-sm-8 {
        flex: 0 0 66.6667%;
        max-width: 66.6667%;
    }
}

.flashcard-deck-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.flashcard-deck-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    cursor: pointer;
}

.flashcard-set-card {
    cursor: pointer;
}

.flashcard-set-content {
    padding: 0 .75rem .75rem;
    gap: .75rem;
}

.flashcard-deck-actions {
    justify-content: flex-end;
}

.flashcard-deck-title-row {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}


.flashcard-review-summary-neutral .flashcard-review-item {
    color: inherit;
}

@media (max-width: 1000px) {
    .flashcard-deck-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .flashcard-deck-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.flashcard-set-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flashcard-set-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
}

@media (max-width:1279.98px) {
    .flashcard-set-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width:1023.98px) {
    .flashcard-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width:767.98px) {
    .flashcard-set-grid { grid-template-columns: minmax(0, 1fr); }
}


.notes-page .notes-filters{display:flex;gap:12px;margin-bottom:16px;max-width:520px}.notes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.note-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;display:flex;flex-direction:column;min-height:220px;box-shadow:0 4px 16px rgba(0,0,0,.04)}.note-card-body{padding:14px;display:flex;flex-direction:column;gap:8px}.note-card-body h4{margin:0;font-size:1.05rem}.note-meta{font-size:.85rem;color:#5b6470}.note-card-body p{margin:0;color:#2f3640;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;overflow:hidden;text-overflow:ellipsis}.note-card-actions{margin-top:auto;padding:12px 14px;border-top:1px solid #eef1f4;display:flex;justify-content:space-between}.note-card-actions .icon-btn{padding:8px 10px;border-radius:8px;border:1px solid #d9dee5;background:#fff}.note-card-actions .icon-btn.danger{border-color:#f2c3c3;color:#b42318}@media (max-width:1200px){.notes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:900px){.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:640px){.notes-grid{grid-template-columns:1fr}}


.nav-submenu {
    margin: -0.25rem 0 0.4rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-sublink {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .87rem;
    padding: .2rem .5rem;
    border-radius: 8px;
}

.nav-sublink:hover,
.nav-sublink.active {
    color: #fff;
    background: rgba(255,255,255,.14);
}

.note-content {
    white-space: pre-wrap;
}

/* ===== Magister import preview modal ===== */
.import-preview-modal {
    width: min(1080px, 94vw);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
}

.import-preview-modal .modal-header {
    flex: 0 0 auto;
}

.import-preview-body {
    min-height: 0;
    overflow: auto;
    background: var(--sa-surface);
}

.import-preview-intro {
    margin: 0 0 1rem;
    color: var(--sa-text-muted);
    line-height: 1.5;
}

.import-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-lg);
    background: var(--sa-surface);
}

.import-preview-table {
    margin: 0;
    border: 0;
    min-width: 760px;
}

.import-preview-table th {
    background: #f8fafc;
    color: var(--sa-text);
    font-weight: 600;
    white-space: nowrap;
}

.import-preview-table th,
.import-preview-table td {
    border-color: var(--sa-border);
    vertical-align: middle;
}

.import-preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.import-preview-table .form-control,
.import-preview-table .form-select {
    min-height: 38px;
    border: 1px solid var(--sa-border);
    border-radius: 10px;
    background: #fff;
    color: var(--sa-text);
}

.import-preview-table .form-control:focus,
.import-preview-table .form-select:focus {
    border-color: var(--sa-blue-mid);
    box-shadow: 0 0 0 3px rgba(111, 140, 165, .18);
    outline: none;
}

.import-preview-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    border-top: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

@media (max-width: 640px) {
    .import-preview-modal {
        width: min(96vw, 96vw);
        max-height: 90vh;
    }

    .import-preview-actions {
        flex-direction: column-reverse;
    }

    .import-preview-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
