:root {
    --portal-sidebar-width: 250px;
    --portal-bg: #f8fafc;
    --mobile-nav-height: 60px;
}

body {
    background-color: var(--portal-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
}

.sidebar {
    width: var(--portal-sidebar-width);
    min-height: 100vh;
}

.rounded-card {
    border-radius: 14px;
}

.nav-link.active {
    background-color: rgba(13, 110, 253, 0.12) !important;
    color: #0d6efd !important;
    font-weight: 600;
}

/* --- Mobiele Navigatie & Ruimte onderaan --- */
.bottom-nav {
    border-top: 1px solid #e2e8f0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991.98px) {
    main {
        /* Voorkomt dat de mobiele onderbalk over knoppen heen ligt */
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 25px) !important;
    }
}

/* --- Voorkomt iOS Safari auto-zoom bij focus --- */
@media (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Vinger-vriendelijke schakelaars (Minimaal 40px) --- */
.form-switch .form-check-input {
    width: 2.75em;
    height: 1.5em;
    cursor: pointer;
}

/* --- Vaste actiebalk onderaan modals op mobiel --- */
@media (max-width: 767.98px) {
    .modal-fullscreen-md-down .modal-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 1020;
    }
}
