/* =====================[ Basis ]===================== */

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #f7f7f7;
}

/* Validatie / foutjes */

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 */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* =====================[ Layout ]===================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
    width: 230px; /* iets smaller dan eerst */
    background: #f5f5f5;
    min-height: 100vh;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex; /* zodat footer naar onder kan */
    flex-direction: column;
}

/* blok met logo + menu */
.sidebar-top {
    padding: 0 0 10px 0;
}

/* logo */

.sidebar-logo {
    text-align: center;
    padding: 10px 0 25px 0;
}

    .sidebar-logo img {
        width: 140px;
        opacity: 0.95;
    }

/* menu */

.nav-section {
    display: flex;
    flex-direction: column;
}

/* NavLink standaard-styling */

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin: 6px 14px;
    background: #ffffff;
    border-radius: 12px;
    color: #444;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .nav-item:hover {
        background: #e7e7e7;
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0,0,0,0.10);
    }

    .nav-item .icon {
        font-size: 18px;
        opacity: 0.8;
    }

    .nav-item.active {
        background: #4a4a4a;
        color: #ffffff;
    }

        .nav-item.active .icon {
            opacity: 1;
        }

.logout-form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    text-align: left;
    background: white;
    border: none;
    cursor: pointer;
}

    .logout-btn:hover {
        background: #e7e7e7;
    }

/* footer met user-info ONDERIN */

.sidebar-footer {
    margin-top: auto; /* duwt hem écht naar de onderkant */
    padding: 12px 18px 40px 18px;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #ddd;
}

/* ---------- Content rechts ---------- */

.main-content {
    flex: 1;
    padding: 24px 32px;
    margin-left: 230px; /* zelfde breedte als .sidebar */
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 16px 20px;
    }

    .sidebar-logo img {
        width: 120px;
    }
}


/* Basis typografie met Manrope */
/*html, body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #f7f7f7;
}*/

/* Validatie / foutjes */
/*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 (mag je laten staan) */
/*.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }*/

/* Checkbox randje iets donkerder */
/*.darker-border-checkbox.form-check-input {
    border-color: #929292;
}*/

/* =====================[ Layout ]===================== */

/*.app-layout {
    display: flex;
    min-height: 100vh;
}*/

/* Sidebar links */

/*.sidebar {
    width: 240px;
    background: #f5f5f5;
    min-height: 100vh;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-logo {
    text-align: center;
    padding: 20px 0 30px 0;
}

    .sidebar-logo img {
        width: 140px;
        opacity: 0.95;
    }*/

/* Menu items */

/*.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin: 6px 14px;
    background: #ffffff;
    border-radius: 12px;
    color: #444;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .nav-item:hover {
        background: #e7e7e7;
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0,0,0,0.10);
    }

    .nav-item .icon {
        font-size: 18px;
        opacity: 0.8;
    }

    .nav-item.active {
        background: #4a4a4a;
        color: #ffffff;
    }

        .nav-item.active .icon {
            opacity: 1;
        }*/

/* Content rechts naast de sidebar */

/*.main-content {
    flex: 1;
    padding: 24px 32px;
    margin-left: 240px;*/ /* zelfde breedte als .sidebar */
/*}*/

/* Maak content iets smaller op hele kleine schermen */
/*@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 16px 20px;
    }
}

.sidebar {
    width: 260px;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;*/ /* BELANGRIJK */
/*}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    margin-top: auto;*/ /* DUWT NAAR ONDER */
    /*font-size: 14px;
    color: #333;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}*/
