/* =========================================================
   TENNISADMINISTRATIE – OPGESCHOONDE STYLESHEET
   ========================================================= */

/* 1. KLEUREN EN BASIS */
:root {
    --bg: #0B1230;
    --card: #19264A;
    --card-hover: #22325d;
    --lime: #A8F044;
    --blue: #42A5F5;
    --text: #FFFFFF;
    --text-secondary: #B8C3DD;
    --danger: #EF5350;
    --success: #4CAF50;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

html,
body {
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding-top: calc(env(safe-area-inset-top) + 20px);
    box-sizing: border-box;
}

/* 2. DASHBOARDKOP */
.dashboard-header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dashboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--text);
}

.dashboard-title span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-date {
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.4;
}

.app-naam-bewerk {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(168, 240, 68, .65);
    border-radius: 13px;
    background: rgba(168, 240, 68, .06);
    color: var(--lime);
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.app-naam-bewerk:active {
    transform: scale(.94);
    background: rgba(168, 240, 68, .14);
}

h1 {
    font-size: 24px;
    margin: 8px 0 0;
    font-weight: 800;
}

.datum {
    font-size: 11px;
    margin: 0 0 8px;
    opacity: .7;
}

/* 3. KAARTEN EN KOPPEN */
.card:first-of-type {
    margin-top: 0;
}

.card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 26px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.card h2 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.3px;
    color: var(--text);
}

.instellingen-titel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instellingen-titel svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: var(--lime);
}

.omzet-dashboard-titel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maandoverzicht-titel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maandoverzicht-titel svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: var(--lime);
}

.omzet-dashboard-titel svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: var(--lime);
}

.vandaag-card {
    margin-top: 20px;
}

/* 4. FORMULIEREN EN VELDEN */
label {
    display: block;
    text-align: left;
    margin: 10px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

input,
select {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #24335F;
    color: white;
    padding: 0 12px;
    font-size: 16px;
}

input {
    width: 92%;
    padding: 0 15px;
    text-align: center;
}

select {
    padding: 0 12px;
}

input[type="number"] {
    font-size: 16px;
}

.compact-input {
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
}

.instellingen-rij {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.instellingen-kolom {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.instellingen-kolom label {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
}

.instellingen-kolom input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: linear-gradient(145deg, #293B68, #22335B);
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.instellingen-kolom input:focus {
    border-color: var(--lime);
}

.les-datum,
.les-tijd {
    flex: 1;
    width: 100%;
    height: 40px;
    margin: 0;
    box-sizing: border-box;
}

.btw-label {
    margin-top: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.btw-input {
    width: 80px;
    height: 36px;
}

.btw-kolom {
    flex: .6;
    min-width: 70px;
    max-width: 80px;
}

/* 5. OMZET EN STATISTIEKEN */
.grote-omzet {
    margin: 10px 0;
    color: #38a35d;
    text-align: center;
    font-size: 60px;
    font-weight: 800;
}

.subtekst {
    color: #6b7280;
    text-align: center;
    font-size: 15px;
}

.stats {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.stats > div {
    background: #22325d;
    border-radius: 20px;
    padding: 16px;
}

.stat-getal {
    color: var(--lime);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

/* 6. KNOPPEN */
.knoppen {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.knoppen button {
    min-height: 75px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(135deg, #43b765, #39a85b);
    color: white;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}

.knoppen span {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.opslaan-button {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px;
    margin-top: 18px;
    background: #38a35d;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.reset-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px;
    margin: 0 0 14px;
    background: #e0524c;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.alles-reset-button {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px;
    margin: 16px 0 20px;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.toon-meer-button {
    width: 100%;
    border: none;
    margin-top: 10px;
    padding: 10px;
    background: transparent;
    color: #38a35d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.uitgevallen-button {
    background: #f59e0b;
    color: white;
}

/* 7. TOTALEN EN REGELS */
.regel,
.totaal-regel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.regel span,
.totaal-regel span {
    color: #6b7280;
    font-size: 15px;
}

.regel strong,
.totaal-regel strong {
    min-width: 110px;
    text-align: right;
    color: #38a35d;
    font-weight: 700;
}

hr {
    border: none;
    border-top: 1px solid #ececec;
    margin: 14px 0;
}

.actie-scheiding {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 20px 0;
}

/* 8. LESSENLIJSTEN */
.les-item {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
    font-size: 14px;
}

.les-item-alle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.les-item-compact {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.les-tijdstip {
    min-width: 75px;
    margin-right: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    background: #24335F;
    color: white;
    text-align: center;
    font-weight: 700;
}

.les-info {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.les-naam {
    flex: 1;
    min-width: 0;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.les-bedrag {
    width: 55px;
    flex-shrink: 0;
    color: var(--lime);
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

.les-acties {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
}

.les-tarief {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

.verwijder-knop {
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    padding: 7px 10px;
    background: #e0524c;
    color: white;
}

.verwijder-klein {
    flex-shrink: 0;
    margin-left: auto;
    border: none;
    padding: 4px;
    background: transparent;
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.verwijder-klein:hover {
    color: #d14343;
}

.bewerk-knop {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.bewerk-knop,
.verwijder-klein {
    opacity: .45;
    transition: .2s;
}

.bewerk-knop:hover,
.verwijder-klein:hover {
    opacity: 1;
}

.bewerk-paneel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    background: #24335F;
}

.bewerk-paneel input,
.bewerk-paneel select {
    width: 100%;
}

#lessenLijst:empty::before {
    content: "Nog geen lessen geregistreerd";
    color: #9ca3af;
    font-style: italic;
}

#alleLessenLijst:empty::before {
    content: "Nog geen lessen toegevoegd";
    color: #9ca3af;
    font-style: italic;
}

/* Vandaag geregistreerd – desktopbasis */
.vandaag-info {
    flex: 1;
}

.vandaag-bedrag {
    width: 80px;
    flex-shrink: 0;
    color: var(--lime);
    text-align: right;
    font-weight: 700;
}

/* 9. SEIZOENSMONITOR */
#seizoensMonitor .regel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

#seizoensMonitor strong {
    color: #38a35d;
    font-weight: 700;
}

.dag-kop {
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e5e7eb;
    color: #38a35d;
    font-size: 18px;
    font-weight: 700;
}

.dag-header {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background: #24335F;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.voortgang {
    width: 120px;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.voortgang-balk {
    height: 100%;
    background: #22c55e;
}

/* 10. DATUMGROEPEN EN BLOKKEN */
.datum-header {
    margin: 10px 0 6px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #24335F;
    color: var(--lime);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.blok-registreren {
    margin-top: 24px;
}

.blok-interval {
    margin-bottom: 20px;
}

.lesblok-card {
    margin-bottom: 24px;
}

/* 11. STATUS EN HULPKLASSEN */
.uitgevallen {
    color: #9ca3af;
    font-style: italic;
}

#beheerContainer {
    display: none;
}

/* 12. TOASTMELDING */
.toast {
    position: fixed;
    z-index: 20000;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 12px;
    background: #38a35d;
    color: white;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.toast.show {
    opacity: 1;
}

/* 13. FLOATING ACTION BUTTON EN MENU */

#fab.open {
    transform: rotate(45deg);
}

#fabMenu {
    position: fixed;
    z-index: 9998;
    right: 24px;
    bottom: 24px;
}

#fabMenu .fab-item {
    white-space: nowrap;
    position: fixed;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 250px;
    height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 17px;
    background: linear-gradient(145deg, #293B68, #22335B);
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    opacity: 0;
    transform: translateY(12px) scale(.96);
    pointer-events: none;
    transition: opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
    will-change: transform, opacity;
}

.fab-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    border-radius: 11px;
    background: rgba(168, 240, 68, .12);
    color: var(--lime);
}

.fab-icon svg {
    width: 19px;
    height: 19px;
}

.fab-les .fab-icon {
    background: rgba(11, 18, 48, .10);
    color: #0B1230;
}

/* Volgorde van boven naar beneden */

#fabMenu .fab-les {
    bottom: 310px;
    background: linear-gradient(145deg, #B9FF5A, #91D52B);
    color: #0B1230;
    border-color: rgba(255, 255, 255, .15);
}

#fabMenu .fab-activiteit {
    bottom: 244px;
}

#fabMenu .fab-blok {
    bottom: 178px;
}

#fabMenu .fab-tarieven {
    bottom: 112px;
}

#fabMenu.open .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#actieMenu {
    display: none;
    position: fixed;
    z-index: 998;
    right: 24px;
    bottom: 100px;
    padding: 12px;
    border-radius: 16px;
    background: #24335F;
}

/* 14. POPUPS EN OVERLAY */
#overlay {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

#overlay.open {
    opacity: 1;
    pointer-events: auto;
}

#fabSubMenu {
    position: fixed;
    z-index: 10001;
    top: 50%;
    left: 50%;
    width: 92%;
    max-width: 420px;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    background: #19264A;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: .25s;
}

#fabSubMenu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

#fabSubMenu input,
#fabSubMenu select {
    width: 100%;
    margin-bottom: 12px;
}

.popup-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
}

.popup-close {
    width: 100%;
    height: 56px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: transparent;
    color: #B8C3DD;
    font-size: 15px;
    font-weight: 700;
}

#fabSubMenu .popup-close {
    width: 100%;
    margin-top: 12px;
}

/* 15. LESBLOK-POPUP */
#fabSubMenu:has(.blok-form) {
    height: auto;
    max-height: 82dvh;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

#fabSubMenu .blok-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

#fabSubMenu .blok-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    min-width: 0;
}

#fabSubMenu .blok-field label {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
}

#fabSubMenu .blok-field input,
#fabSubMenu .blok-field select {
    width: 92%;
    min-width: 0;
    height: 39px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 11px;
    font-size: 14px;
}

#fabSubMenu .blok-datums {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
}

#fabSubMenu .blok-datums .blok-field {
    width: 100%;
    min-width: 0;
}

#fabSubMenu .blok-datums input {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 12px;
}

#fabSubMenu .blok-tijden {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#fabSubMenu .blok-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 3px;
}

#fabSubMenu .blok-actions button {
    width: 100%;
    min-height: 39px;
    padding: 6px 10px;
    border-radius: 11px;
    font-size: 15px;
}

/* 16. DATUM- EN TIJDVELDEN IN SAFARI */
#fabSubMenu input[type="date"],
#fabSubMenu input[type="time"] {
    display: block;
    width: 88%;
    height: 45px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    line-height: 45px;
    text-align: center;
    text-align-last: center;
}

#fabSubMenu input[type="date"]::-webkit-date-and-time-value,
#fabSubMenu input[type="time"]::-webkit-date-and-time-value {
    height: 100%;
    line-height: 45px;
    text-align: center;
}

/* =========================================================
   17. MOBIELE WEERGAVE
   ========================================================= */
@media screen and (max-width: 768px) {
    html {
        font-size: 80% !important;
    }

    body {
        padding: 10px;
    }

    .dashboard-title {
        font-size: 26px !important;
        line-height: 1.15;
    }

    h1 {
        font-size: 24px;
        line-height: 1.15;
    }

    .dashboard-date {
        font-size: 13px;
    }

    .card {
        padding: 16px;
        border-radius: 24px;
    }

    .card h2 {
        font-size: 16px;
    }

    label {
        font-size: 13px;
        color: var(--text-secondary);
    }

    input,
    select {
        height: 38px;
        padding: 0 8px;
        font-size: 13px;
    }

    .instellingen-kolom input {
        height: 42px;
        font-size: 16px;
    }

    .dag-header {
        padding: 12px;
        font-size: 14px;
    }

    .datum-header {
        padding: 8px 12px;
        font-size: 10px;
    }

    .les-tijdstip {
        min-width: 45px;
        padding: 4px 8px;
        font-size: 10px;
        flex-shrink: 0;
    }

    .les-naam {
        min-width: 0;
        flex: 1;
        font-size: 12px;
    }

    .les-bedrag {
        width: 75px;
        flex-shrink: 0;
        text-align: right;
        font-size: 12px;
    }

    .les-acties {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    /* Vandaag geregistreerd */
    #lessenLijst .les-item-compact {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr) 82px 28px;
        align-items: center;
        column-gap: 12px;
        width: 100%;
        padding: 6px 0;
        box-sizing: border-box;
    }

    #lessenLijst .vandaag-info {
        display: contents;
    }

    #lessenLijst .vandaag-tijd {
        grid-column: 1;
        grid-row: 1;
        padding: 5px 3px;
        border-radius: 30px;
        background: #263761;
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }

    #lessenLijst .vandaag-type {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
    }

    #lessenLijst .vandaag-bedrag {
        display: block;
        grid-column: 3;
        grid-row: 1;
        padding-right: 4px;
        color: var(--lime);
        text-align: right;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    #lessenLijst .verwijder-klein {
        position: static;
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Alle lessen: bestaande uitlijning behouden */
    #alleLessenLijst .les-item-compact {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr) 64px;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #alleLessenLijst .les-tijdstip {
        min-width: 0;
        white-space: nowrap;
    }

    #alleLessenLijst .les-info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    #alleLessenLijst .les-naam {
        min-width: 0;
    }

    #alleLessenLijst .les-bedrag {
        white-space: nowrap;
        font-size: 13px;
    }

    #alleLessenLijst .les-acties {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 3px;
        min-width: 0;
    }

    #alleLessenLijst .les-acties button {
        flex-shrink: 0;
        padding: 2px;
    }

    /* Popups op mobiel */
    #fabSubMenu {
        width: calc(100% - 48px);
        max-width: 340px;
        max-height: 82dvh;
        overflow-y: auto;
        padding: 18px;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .popup-title {
        margin-bottom: 14px;
        font-size: 19px;
    }

    #fabSubMenu input,
    #fabSubMenu select {
        height: 42px;
        margin-bottom: 9px;
        font-size: 14px;
    }

    .tarief-preview {
        margin: 8px 0;
        font-size: 22px;
    }

    .registreren-button {
        height: 56px;
        font-size: 16px;
    }

    .popup-close {
        height: 48px;
        margin-top: 8px;
    }

    /* Compacte lesblok-popup */
    #fabSubMenu:has(.blok-form) {
        width: 94%;
        max-height: 82dvh;
        padding: 14px;
    }

    #fabSubMenu:has(.blok-form) .popup-title {
        margin-bottom: 10px;
        font-size: 19px;
    }

    #fabSubMenu .blok-form {
        gap: 7px;
    }

   #fabSubMenu .blok-tijden {
    gap: 7px;
}

} /* Sluit max-width: 768px */

/* Extra compacte lesblokweergave op kleine telefoons */
@media screen and (max-width: 480px) {
    #fabSubMenu:has(.blok-form) {
        width: 94%;
        max-height: 82dvh;
        padding: 14px;
    }

    #fabSubMenu .blok-field input,
    #fabSubMenu .blok-field select {
        width: 92%;
    }
}

/* =========================================
   UNIFORME POPUP-KNOPPEN
   ========================================= */

#fabSubMenu button:not(.popup-close) {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: none;
    border-radius: 13px;
    background: #38a35d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}

#fabSubMenu .popup-close {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 13px;
    background: transparent;
    color: #B8C3DD;
    font-size: 14px;
    font-weight: 700;
}

/* Mobiele popup iets compacter */
@media screen and (max-width: 768px) {
    #fabSubMenu {
        padding: 16px;
    }

    #fabSubMenu button:not(.popup-close) {
        min-height: 44px;
        font-size: 13px;
    }
}

/* Starttijd en eindtijd compacter maken */
#fabSubMenu .blok-tijden input[type="time"] {
    height: 34px;
    line-height: 34px;
}

#fabSubMenu .blok-tijden input[type="time"]::-webkit-date-and-time-value {
    line-height: 34px;
}

/* Voorkom automatisch inzoomen op iPhone */
#fabSubMenu input,
#fabSubMenu select,
#fabSubMenu textarea {
    font-size: 16px !important;
}

/* Popup passend houden op het iPhone-scherm */
#fabSubMenu {
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* Sluiten-knop bereikbaar houden */
#fabSubMenu .popup-close {
    position: sticky;
    bottom: 0;
    z-index: 5;
}

/* Alle lessen: dezelfde compacte weergave als Vandaag */

#alleLessenLijst .les-item-compact {
    padding: 6px 0;
    min-height: 0;
    column-gap: 8px;
}

/* Tijdvak compacter maken */
#alleLessenLijst .les-tijdstip {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.2;
}

/* Bewerk- en verwijderknoppen verkleinen */
#alleLessenLijst .les-acties {
    gap: 3px;
}

#alleLessenLijst .les-acties button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

/* =========================
   MAANDKALENDER
========================= */

.kalender-card {
    margin-top: 20px;
}

.kalender-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}


.kalender-titel {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.kalender-icoon {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #293B68;
    color: var(--lime);
}

.kalender-icoon svg {
    width: 27px;
    height: 27px;
}

.kalender-kop h2 {
    font-size: 18px;
    font-weight: 750;
}

.kalender-toggle,
.kalender-navigatie button {
    background: linear-gradient(145deg, #293B68, #22335B);
    color: var(--lime);
    border: 1px solid rgba(168, 240, 68, .10);
    border-radius: 12px;
    cursor: pointer;
    font-size: 22px;
    min-width: 38px;
    min-height: 38px;
    transition: transform .15s ease, background .2s ease;
}

.kalender-toggle:active,
.kalender-navigatie button:active {
    transform: scale(.94);
    background: #344875;
}

.kalender-navigatie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.kalender-keuze {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.kalender-keuze select {
    background: #26365F;
    color: white;
    border: 1px solid #34446B;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 14px;
    min-width: 0;
}

.kalender-weekdagen,
.kalender-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.kalender-weekdagen {
    margin-bottom: 8px;
}

.kalender-weekdagen span {
    color: var(--text-secondary);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.kalender-dag {
    background: #26365F;
    border: 1px solid transparent;
    border-radius: 9px;
    min-width: 0;
    min-height: 43px;
    padding: 5px 2px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font: inherit;
}

.kalender-dag:hover {
    border-color: var(--lime);
}

.kalender-dag.buiten-maand {
    opacity: 0.35;
}

.kalender-dag.vandaag {
    border-color: var(--lime);
}

.kalender-dag.geselecteerd {
    background: var(--lime);
    color: #19264A;
    font-weight: 700;
}

.kalender-dagnummer {
    font-size: 13px;
    line-height: 1;
}

.kalender-indicatoren {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 6px;
}

.kalender-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kalender-dot-les {
    background: var(--lime);
}

.kalender-dot-afwezig {
    background: #C62828;
}

.kalender-dot-activiteit {
    background: #A78BFA;
}

.kalender-dag.geselecteerd .kalender-dot-les {
    background: #19264A;
}

.kalender-dag.geselecteerd .kalender-dot-afwezig {
    background: #2877B5;
}

.kalender-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

.kalender-legenda span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kalender-dagoverzicht {
    border-top: 1px solid #34446B;
    margin-top: 16px;
    padding-top: 15px;
}

.kalender-dag-kop {
    font-weight: 700;
    margin-bottom: 12px;
}

.kalender-leeg {
    color: var(--text-secondary);
    font-size: 13px;
}

.kalender-les-regel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #34446B;
    font-size: 13px;
}

.kalender-les-info {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.kalender-les-tijd {
    color: var(--text-secondary);
    margin-right: 0;
    font-variant-numeric: tabular-nums;
}

.kalender-les-bedrag {
    white-space: nowrap;
    font-weight: 600;
}

.kalender-dag-totaal {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-weight: 700;
}

.kalender-dag-totaal span:last-child {
    color: var(--lime);
}

@media (max-width: 480px) {
    .kalender-grid {
        gap: 4px;
    }

    .kalender-dag {
        min-height: 39px;
        border-radius: 7px;
    }

    .kalender-keuze select {
        padding: 8px 5px;
        font-size: 13px;
    }
}

/* Activiteiten exact uitlijnen met de lesregels */
.kalender-activiteit-regel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 0;
    border-bottom: 1px solid #34446B;
    font-size: 13px;
}

.kalender-activiteit-info {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.kalender-activiteit-tijd {
    color: var(--text-secondary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.kalender-activiteit-omschrijving {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
}

.kalender-activiteit-regel .kalender-bewerk-knop {
    margin-left: 0;
    flex-shrink: 0;
}

.kalender-activiteit-regel .kalender-verwijder-knop {
    flex-shrink: 0;
}

.kalender-verwijder-knop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #EF5350;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.kalender-verwijder-knop:active {
    background: rgba(239, 83, 80, 0.15);
}

/* Vandaag geregistreerd verbergen */
.vandaag-card {
    display: none;
}

.alle-lessen-card .kalender-kop {
    margin-bottom: 0;
}

.alle-lessen-card #alleLessenInhoud {
    margin-top: 15px;
}

.alle-lessen-card .kalender-toggle {
    flex-shrink: 0;
}

/* Primaire toevoegknoppen */
#fabSubMenu .actie-toevoegen-button {
    background: #A8F044 !important;
    background-color: #A8F044 !important;
    color: #0B1230 !important;
    border: none !important;
    font-weight: 800 !important;
}

/* Hover */
#fabSubMenu .actie-toevoegen-button:hover {
    background: #91D52B !important;
}



/* =========================================
   DASHBOARD – MAANDOVERZICHT
========================================= */

.dashboard-maand {
    margin-top: 20px;
}

.dashboard-maand-kop {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-maand-kop h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.dashboard-maand-navigatie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.dashboard-maand-navigatie button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    flex-shrink: 0;

    border: 1px solid rgba(168, 240, 68, .10);
    border-radius: 14px;

    background: linear-gradient(
        145deg,
        #293B68,
        #22335B
    );

    color: var(--lime);
    font-size: 25px;
    font-weight: 700;
    cursor: pointer;

    transition: background .2s ease, transform .15s ease;
}

.dashboard-maand-navigatie button:active {
    transform: scale(.94);
    background: #344875;
}

.dashboard-maand-navigatie select {
    flex: 0 1 260px;
    width: 260px;
    max-width: calc(100% - 112px);
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid #34446B;
    border-radius: 14px;
    background: #26365F;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* Statistieken */

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-stat {
    min-width: 0;
    min-height: 112px;
    padding: 14px 7px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: linear-gradient(
        145deg,
        #293B68,
        #22335B
    );

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;

    box-shadow: 0 5px 14px rgba(0,0,0,.12);

    text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}

.dashboard-stat-getal {
    color: var(--lime);
    font-size: 29px;
    line-height: 1.1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.dashboard-stat-getal.dashboard-bedrag {
    font-size: 19px;
    letter-spacing: -.5px;
}

.dashboard-stat-label {
    margin-top: 0;
    max-width: 100%;
    padding: 0 4px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
    text-align: center;
    overflow-wrap: break-word;
}

/* Financieel gedeelte */

.dashboard-financieel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.dashboard-financieel-kop {
    margin-bottom: 12px;
    color: white;
    font-size: 16px;
    font-weight: 750;
}

.dashboard-financieel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-financieel-stat {
    min-width: 0;
    min-height: 92px;
    padding: 14px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;

    background: linear-gradient(
        145deg,
        #293B68,
        #22335B
    );

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.dashboard-financieel-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.dashboard-financieel-bedrag {
    color: var(--lime);
    font-size: clamp(16px, 4.4vw, 22px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dashboard-btw-stat {
    grid-column: 1 / -1;
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 20px;
}

.dashboard-btw-stat .dashboard-financieel-label {
    font-size: 14px;
}

.dashboard-btw-stat .dashboard-financieel-bedrag {
    font-size: 21px;
}

/* Specifieke dashboardcijfers */

#dashboardLessen,
#dashboardBtw {
    font-size: 26px !important;
    line-height: 1.2;
}

/* Kleine telefoons */

@media screen and (max-width: 380px) {
    .dashboard-maand-kop {
        align-items: flex-start;
    }

    .dashboard-stat {
        min-height: 94px;
        padding: 10px 4px;
    }

    .dashboard-stat-getal {
        font-size: 27px;
    }

    .dashboard-stat-getal.dashboard-bedrag {
        font-size: 16px;
    }

    .dashboard-stat-label {
        font-size: 11px;
    }
}


/* Compacte weergave uitsluitend voor de beginschermapp */
html.standalone-mode {
    zoom: 0.85;
}

/* Kalender bewerkknop */
.kalender-bewerk-knop {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid rgba(168, 240, 68, .25);
    border-radius: 9px;
    background: rgba(168, 240, 68, .10);
    color: var(--lime);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.kalender-bewerk-knop:active {
    background: rgba(168, 240, 68, .25);
    transform: scale(.94);
}

.kalender-bewerk-paneel {
    margin: 8px 0 14px;
}

/* Opslaan-knop activiteit bewerken */
.kalender-bewerk-paneel button {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: var(--lime);
    color: var(--bg);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.kalender-bewerk-paneel button:active {
    background: #91D52B;
    transform: scale(.98);
}

/* Type les exact gelijk aan datum en tijd */

#fabSubMenu select#popupType {
    display: block;
    width: 88% !important;
    height: 45px !important;
    min-height: 45px !important;
    margin: 0 auto 12px !important;
    padding: 0 15px !important;
    box-sizing: border-box;
    border-radius: 14px;
    font-size: 16px !important;
}

/* Type les: tekst centreren in het selectievak */

#fabSubMenu select#popupType {
    text-align: center !important;
    text-align-last: center !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Financiële bedragen verbergen */

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

.financieel-blur-knop {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 1px solid rgba(168, 240, 68, .3);
    border-radius: 10px;
    background: #26365F;
    color: var(--lime);
    font-size: 19px;
    cursor: pointer;
}

.dashboard-financieel.bedragen-verbergen
.dashboard-financieel-bedrag {
    filter: blur(8px);
    user-select: none;
}


/* POPUP APPNAAM AANPASSEN */

.app-naam-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 10, 25, 0.78);
    backdrop-filter: blur(5px);
}

.app-naam-popup {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 24px;
    border: 1px solid rgba(168, 240, 68, 0.25);
    border-radius: 20px;
    background: #1B294D;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.app-naam-popup-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.app-naam-popup-kop h3 {
    margin: 0;
    font-size: 20px;
    color: white;
}

#appNaamTitel {

    min-width: 0;
    flex: 1;
    font-weight: 700;
}

.app-naam-sluiten {
    border: none;
    background: transparent;
    color: #AAB5CC;
    font-size: 28px;
    cursor: pointer;
}

.app-naam-popup p {
    margin: 8px 0 22px;
    color: #AAB5CC;
    font-size: 14px;
}

.app-naam-popup label {
    display: block;
    margin-bottom: 9px;
    color: #A8F044;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-naam-popup input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #52618A;
    border-radius: 12px;
    outline: none;
    background: #172443;
    color: white;
    font-size: 16px;
}

.app-naam-popup input:focus {
    border-color: #A8F044;
}

.app-naam-acties {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.app-naam-acties button {
    flex: 1;
    height: 46px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.app-naam-annuleren {
    background: #344363;
    color: white;
}

.app-naam-opslaan {
    background: #A8F044;
    color: #0B1230;
}

.app-naam-bewerk {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    padding: 0;

    flex-shrink: 0;

    border: 1px solid #A8F044;

    border-radius: 9px;

    background: rgba(168, 240, 68, 0.08);

    color: #A8F044;

    font-size: 15px;

    cursor: pointer;
}

.app-naam-bewerk:active {
    background: rgba(168, 240, 68, 0.22);
    transform: scale(0.94);
}

html,
body {
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

/* Navigatieschermen */
.app-scherm {
    display: none;
}

.app-scherm.actief {
    display: block;
}

/* =========================
   ONDERSTE NAVIGATIE
========================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    height: 68px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #19264A;
    border-top: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    color: #B8C3DD;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    font-size: 25px;
    line-height: 1;
}

.nav-item span svg {
    display: block;
}

.nav-item small {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 650;
}

.nav-item.actief {
    color: var(--lime);
}

.nav-item[data-scherm="seizoen"] span,
.nav-item[data-scherm="dashboard"] span {
    font-size: 28px;
}

/* Ruimte voor de vaste navigatie */
.container {
    padding-bottom: 100px;
}

/* Plusknop in het midden */
.nav-add-button {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #B9FF5A,
        #91D52B
    );

    color: #0B1230;
    font-size: 34px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 5px;
    padding: 0;

    box-shadow: 0 5px 18px rgba(168, 240, 68, .22);

    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;

    z-index: 1101;
}

.nav-add-button:active {
    transform: scale(.93);
    box-shadow: 0 2px 8px rgba(168, 240, 68, .18);
}

/* Oude positie en afmetingen van de plusknop uitschakelen */
#fab {
    position: static !important;
    transform: none !important;
    min-width: 58px !important;
    width: 58px !important;
    height: 58px !important;
    bottom: auto !important;
    right: auto !important;
}

/* TOTALE SEIZOENSVOORTGANG */

.seizoen-totaal-card {
    background: #22325d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.seizoen-totaal-card h3 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 750;
    color: white;
}

.seizoen-totaal-cijfers {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 14px;
}

.seizoen-totaal-cijfers strong {
    font-size: 32px;
    font-weight: 800;
    color: var(--lime);
}

.seizoen-totaal-cijfers span {
    color: var(--text-secondary);
    font-size: 14px;
}

.seizoen-totaal-balk {
    width: 100%;
    height: 13px;
    background: #E2E5EB;
    border-radius: 20px;
    overflow: hidden;
}

#seizoenTotaalBalk {
    width: 0%;
    height: 100%;
    background: var(--lime);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.seizoen-totaal-onder {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 12px;
}

.omzet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.omzet-stat {
    background: linear-gradient(
        145deg,
        #293B68,
        #22335B
    );
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 15px 18px;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
    transition: transform .2s ease, border-color .2s ease;
}

.omzet-stat:hover {
    transform: translateY(-2px);
}

.omzet-stat:hover {

    transform: translateY(-2px);

}

.omzet-label {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.omzet-waarde {
    font-size: 27px;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {

    .omzet-grid {

        grid-template-columns:
        1fr;

    }
}

/* =================================
   LOGIN SCHERM
================================= */

.login-scherm {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
    box-sizing: border-box;

    background: #0b1230;
    overflow-y: auto;
}

.login-kaart {
    width: 100%;
    max-width: 380px;
    margin: auto;
    padding: 28px 24px;

    box-sizing: border-box;

    background: #111b3b;
    border: 1px solid #26385f;
    border-radius: 22px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.login-kaart h1 {
    margin: 0 0 10px;
    font-size: 25px;
    text-align: center;
}

.login-kaart p {
    margin: 0 0 24px;
    text-align: center;
    color: #b8c5e0;
}

.login-kaart label {
    display: block;
    margin: 14px 0 7px;
    font-size: 14px;
    font-weight: 600;
}

.login-kaart input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;

    border-radius: 12px;
    border: 1px solid #354970;

    background: #26385f;
    color: white;
    font-size: 15px;
}

.login-kaart button {
    width: 100%;
    min-height: 44px;
    margin-top: 12px;

    border: none;
    border-radius: 12px;

    background: #a3ed36;
    color: #10182d;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.login-kaart button + button {
    background: #26385f;
    color: white;
}

.login-kaart #authMelding {
    margin: 16px 0 0;
    font-size: 13px;
}

/* Navigatie verbergen tijdens inloggen */

body:has(#loginScherm[style*="display: flex"]) .bottom-nav {
    display: none !important;
}

.uitloggen-card {
    margin-top: 20px;
}

.uitloggen-button {
    width: 100%;
    padding: 13px;
    border: 1px solid #ef4444;
    border-radius: 12px;
    background: #351c2b;
    color: #ff7777;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.potlood-omgekeerd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    line-height: 1;
    transform: scaleX(-1);
}

.kalender-bewerk-knop svg {
    color: #ff9b35;
    fill: #ff9b35;
}

.kalender-activiteit-acties {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.kalender-les-regel .kalender-bewerk-knop {
    transform: translateX(15px);
}

.kalender-activiteit-regel .kalender-bewerk-knop {
    transform: translateX(9px);
}

/* INSTELLINGEN - SECTIE OPMAAK */


.instellingen-sectie {
    display: flex;
    flex-direction: column;
    padding: 6px 0 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}


.instellingen-sectie-kop {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}


.instellingen-icoon {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #293B68;
    color: var(--lime);
}

.instellingen-icoon svg {
    display: block;
    width: 27px;
    height: 27px;
}

.instellingen-icoon svg {
    display: block;
    width: 34px;
    height: 34px;
}

.instellingen-tekst {
    flex: 1;
    min-width: 0;
}


.instellingen-tekst h2 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;
    color: var(--text);
}

.instellingen-tekst p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.instellingen-seizoen-invoer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.instellingen-seizoen-invoer label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 650;
}

.instellingen-seizoen-invoer input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: linear-gradient(145deg, #293B68, #22335B);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.instellingen-seizoen-invoer input:focus {
    border-color: var(--lime);
    outline: none;
}

.instellingen-uitleg {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.uitloggen-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(239, 83, 80, .55);
    border-radius: 15px;
    background: rgba(239, 83, 80, .10);
    color: #FF7777;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.uitloggen-button:active {
    transform: scale(.98);
    background: rgba(239, 83, 80, .18);
}

/* BACK-UP & HERSTEL */

.backup-acties {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.backup-acties button {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease;
}

#btn-backup-export {
    border: 1px solid var(--lime);
    background: var(--lime);
    color: #0B1230;
}

#btn-backup-import {
    border: 1px solid var(--blue);
    background: rgba(66, 165, 245, .10);
    color: var(--blue);
}

.backup-acties button:active {
    transform: scale(.97);
}

/* SEIZOEN HEADER */

.seizoen-kop {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.seizoen-icoon {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #293B68;
    color: var(--lime);
}

.seizoen-icoon svg {
    width: 27px;
    height: 27px;
}

.seizoen-kop h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 750;
    color: var(--text);
}

