/* Fluent Design System / WPF-adapted voor dbsa SkoelToel */

:root {
    --bs-primary: #0078D4;
    --bs-primary-rgb: 0, 120, 212;
    --bs-primary-text-emphasis: #004578;
    --bs-primary-bg-subtle: #EFF6FC;
    --bs-primary-border-subtle: #C7E0F4;

    --bs-secondary: #605E5C;
    --bs-secondary-rgb: 96, 94, 92;
    --bs-secondary-bg-subtle: #EDEBE9;

    --bs-success: #107C10;
    --bs-success-rgb: 16, 124, 16;
    --bs-success-bg-subtle: #DFF6DD;
    --bs-success-border-subtle: #A6D2A1;

    --bs-warning: #FF8C00;
    --bs-warning-rgb: 255, 140, 0;
    --bs-warning-bg-subtle: #FFF4CE;
    --bs-warning-border-subtle: #FFD679;

    --bs-danger: #C42B1C;
    --bs-danger-rgb: 196, 43, 28;
    --bs-danger-bg-subtle: #FDE7E9;
    --bs-danger-border-subtle: #F4ABAB;

    --bs-info: #00B7C3;
    --bs-info-rgb: 0, 183, 195;
    --bs-info-bg-subtle: #E8F7F8;
    --bs-info-border-subtle: #A0DCE0;

    --bs-body-color: #201F1E;
    --bs-body-bg: #F3F2F1;
    --bs-secondary-color: #605E5C;
    --bs-tertiary-color: #8A8886;
    --bs-border-color: #C8C6C4;
    --bs-border-color-translucent: rgba(0,0,0,0.10);

    --bs-border-radius: 0.25rem;
    --bs-border-radius-sm: 0.15rem;
    --bs-border-radius-lg: 0.375rem;
    --bs-border-radius-xl: 0.5rem;
    --bs-border-radius-pill: 50rem;

    --bs-font-sans-serif: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    --app-navbar-bg: #1F3864;
    --app-navbar-accent: #0078D4;
    --app-shadow: 0 1px 4px rgba(0,0,0,0.10);
    --app-shadow-md: 0 3px 12px rgba(0,0,0,0.12);
}

/* === Layout === */

body {
    background-color: var(--bs-body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-body-color);
}

/* === Navbar === */

.app-navbar {
    background-color: var(--app-navbar-bg);
    border-bottom: 2px solid var(--app-navbar-accent);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.navbar-brand {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.1s ease;
}

.app-navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.app-navbar .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    font-weight: 600;
}

.school-switcher {
    font-size: 0.8125rem;
    border-radius: 0.25rem;
    border-color: rgba(255,255,255,0.25);
    background-color: rgba(255,255,255,0.08);
    color: white;
}

.school-switcher option {
    background-color: #1F3864;
    color: white;
}

/* === Cards === */

.card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    box-shadow: var(--app-shadow);
}

.card-header {
    border-radius: 0.25rem 0.25rem 0 0 !important;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #F3F2F1;
    border-bottom: 1px solid var(--bs-border-color);
}

/* === Stat cards (dashboard) === */

.stat-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    border-radius: 0.25rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md) !important;
}

.stat-card.stat-primary { border-left: 4px solid #0078D4 !important; }
.stat-card.stat-warning  { border-left: 4px solid #FF8C00 !important; }
.stat-card.stat-info     { border-left: 4px solid #107C10 !important; }

.stat-icon {
    flex-shrink: 0;
    min-width: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem !important;
}

/* === Forms === */

.form-control, .form-select {
    border-color: var(--bs-border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: #323130;
}

/* === Checkboxes: zichtbare rand en duidelijke checked state === */

.form-check-input[type="checkbox"] {
    width: 1.15em;
    height: 1.15em;
    border: 2px solid #605E5C;
    border-radius: 3px;
    cursor: pointer;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0078D4;
    border-color: #0078D4;
}

.form-check-input[type="checkbox"]:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 3px rgba(0,120,212,0.2);
}

.form-check-input[type="checkbox"]:hover:not(:disabled) {
    border-color: #0078D4;
}

.form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* === Tabellen === */

.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #605E5C;
    border-bottom-color: #C8C6C4;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.table td {
    font-size: 0.875rem;
    border-color: #EDEBE9;
}

.table-light > thead > tr > th,
.table-light > thead > tr > td {
    background-color: #F3F2F1;
}

.table-hover > tbody > tr:hover > td {
    background-color: #EFF6FC;
}

/* === Knoppen === */

.btn {
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.25rem;
    padding: 0.35rem 0.875rem;
}

.btn-primary {
    background-color: #0078D4;
    border-color: #0078D4;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #106EBE;
    border-color: #106EBE;
}

.btn-outline-primary {
    color: #0078D4;
    border-color: #0078D4;
}

.btn-outline-primary:hover {
    background-color: #0078D4;
    border-color: #0078D4;
}

.btn-outline-secondary {
    color: #605E5C;
    border-color: #C8C6C4;
}

.btn-outline-secondary:hover {
    background-color: #EDEBE9;
    color: #201F1E;
    border-color: #C8C6C4;
}

/* === Badges === */

.badge {
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 0.2rem;
    padding: 0.3em 0.55em;
}

/* === Nav tabs === */

.nav-tabs {
    border-bottom: 1px solid #C8C6C4;
}

.nav-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #605E5C;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 1rem;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: #0078D4;
    border-bottom-color: #C7E0F4;
    background: none;
}

.nav-tabs .nav-link.active {
    color: #0078D4;
    font-weight: 600;
    border-bottom: 2px solid #0078D4;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* === Alerts === */

.alert {
    border-radius: 0.25rem;
    font-size: 0.875rem;
    border-left-width: 4px;
}

/* === Autocomplete === */

.autocomplete-dropdown {
    position: fixed;
    z-index: 1050;
    background: #fff;
    border: 1px solid #C8C6C4;
    border-radius: 0.25rem;
    box-shadow: var(--app-shadow-md);
    max-height: 240px;
    overflow-y: auto;
    min-width: 280px;
}

.autocomplete-dropdown .ac-item {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    border-bottom: 1px solid #F3F2F1;
}

.autocomplete-dropdown .ac-item:hover,
.autocomplete-dropdown .ac-item.active {
    background-color: #EFF6FC;
    color: #0078D4;
}

.autocomplete-dropdown .ac-item:last-child {
    border-bottom: none;
}

/* === Footer === */

.footer {
    margin-top: auto;
    background-color: #EDEBE9 !important;
    border-top: 1px solid #C8C6C4 !important;
}

.footer span {
    font-size: 0.8rem;
    color: #8A8886;
}

/* === Login split-screen === */

body.login-split {
    flex-direction: row;
    background-color: #fff;
}

.login-hero {
    flex: 1.4;
    background-image: url('/assets/img/pexels-gustavo-fring-4017420_small.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,20,50,0.88) 0%, rgba(10,20,50,0.35) 45%, rgba(10,20,50,0.08) 100%);
}

.login-hero-branding {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    color: #fff;
}

.login-hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    letter-spacing: -0.01em;
}

.login-hero-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.70);
    margin-top: 0.3rem;
}

.login-panel {
    width: 420px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.07);
}

.login-form-wrap {
    width: 100%;
    max-width: 320px;
}

.login-brand-title {
    color: #1F3864;
    font-size: 1.4rem;
}

@media (max-width: 991.98px) {
    body.login-split {
        flex-direction: column;
        background-color: #F3F2F1;
        align-items: center;
        justify-content: center;
    }

    .login-panel {
        width: 100%;
        max-width: 480px;
        padding: 2rem 1.5rem;
        box-shadow: none;
    }
}

/* === Modals === */

.modal-header {
    border-bottom-color: #C8C6C4;
    padding: 0.875rem 1.25rem;
}

.modal-footer {
    border-top-color: #C8C6C4;
}

.modal-content {
    border: 1px solid #C8C6C4;
    border-radius: 0.375rem;
}

/* === Dropdowns === */

.dropdown-menu {
    border: 1px solid #C8C6C4;
    border-radius: 0.25rem;
    box-shadow: var(--app-shadow-md);
    font-size: 0.875rem;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #EFF6FC;
    color: #0078D4;
}

/* === Responsive === */

@media (max-width: 576px) {
    .display-6 {
        font-size: 1.5rem;
    }
    .stat-icon {
        min-width: 44px;
        min-height: 44px;
    }
}
