/* styles-template.css */
/* Algemene stijlen voor de hele site (header, menu, etc.) */


body {
    margin: 0;
    padding-left: 5px; /* Voeg extra padding toe aan de linkerkant om ruimte te creëren voor het zwarte logo */
    background-image: url("/Image/Zonsondergang.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Century Gothic", sans-serif;
}

.nd-main-content {
    margin-top: 62px; /* Ruimte onder de nd-header */
    padding-left: 50px; /* Voeg hier extra padding toe als de inhoud verder van de linkerkant moet staan */
    overflow-y: auto; /* Verticale scrollbar indien nodig */
    overflow-x: hidden; /* Verwijdert horizontale scrollbar */
    height: calc(100vh - 62px); /* Volledige hoogte minus de nd-header */
    flex-grow: 1;
    scrollbar-gutter: stable; /* Reserveer ruimte voor de scrollbar */
    overflow-y: scroll; /* Forceer altijd een scrollbar */
}

/* Scrollbar Stijlen */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: black;
}
::-webkit-scrollbar-thumb {
    background-color: orange;
    border-radius: 16px;
    border: none;
}
.scrollbar-color-orange ::-webkit-scrollbar-thumb {
    background-color: orange;
}
.scrollbar-color-green ::-webkit-scrollbar-thumb {
    background-color: green;
}
.scrollbar-color-blue ::-webkit-scrollbar-thumb {
    background-color: blue;
}
.scrollbar-color-orange * {
    scrollbar-color: orange black;
}
.scrollbar-color-green * {
    scrollbar-color: green black;
}
.scrollbar-color-blue * {
    scrollbar-color: blue black;
}
* {
    scrollbar-width: thick;
    scrollbar-color: orange black;
}

/* ================== HEADER STYLES ===================== */

/* Hoofdcontainer header: links logo/titel, rechts alles via flexbox */
.nd-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 60px;
    background: linear-gradient(
        to right, 
        #000 0%, 
        rgba(0,0,0,0.97) 25%, 
        rgba(0,0,0,0.87) 55%, 
        rgba(0,0,0,0.78) 80%, 
        rgba(0,0,0,0.72) 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 0 10px;
}



/* ============= RECHTERKANT HEADER: flexbox voor dropdown, iconen, afdeling ============= */
.nd-header-flexbox {
    display: flex;
    flex-direction: row; /* Links -> rechts: dropdown, iconen, afdeling */
    align-items: center;
    gap: 18px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 10;
}

/* Dropdown links in flexbox */
.nd-header-dropdown-container {
    display: flex;
    align-items: center;
}

/* Iconen in het midden van de flexbox */
.nd-header-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Afdelingsnaam helemaal rechts, afgerond RECHTS, strak tegen rand */
.nd-header-active-afdeling {
    padding: 7px 19px;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 1em;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.23);
    border: 2px solid #fff3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center; /* Of flex-end voor helemaal rechts */
    margin-right: 0;
}


/* ============= LINKERKANT HEADER: Logo & Titel ============ */
.nd-header h1,
.nd-title {
    font-size: 24px;
    margin-left: 130px;  /* Logo-breedte + wat ruimte (stel evt. bij) */
    padding-left: 0;     /* Geen extra padding meer nodig */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: white;
    line-height: 60px;   /* Optioneel: netjes gecentreerd in header-hoogte */
}
.nd-logo-left {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 110px;
    height: 110px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: visible;
}
.nd-logo-left img {
    max-width: 100px;
    max-height: 100px;
    z-index: 3000;
    display: block;
    margin-right: -35px;
    margin-bottom: -45px;
}

/* =========== Login-info onder de header, helemaal rechts =========== */
.nd-header-login-info {
    position: fixed;
    top: 64px;
    right: 15px;
    color: orange;
    font-weight: bold;
    font-size: 0.80em;
    background: rgba(0,0,0,1);
    padding: 8px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
    letter-spacing: 0.03em;
    z-index: 2100;
    max-width: 380px;
    min-width: 140px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.nd-header-login-info span {
    color: #fff;
    font-weight: normal;
    margin-left: 8px;
}

/* ===================== DROPDOWN STIJLEN ======================= */
.nd-dropdown {
    z-index: 1001;
    position: relative;
    min-width: 145px;
    width: 180px;
}
.nd-dropdown-selected {
    padding: 5px;
    cursor: pointer;
    background-color: black;
    color: white;
    border-radius: 5px;
    width: 100%;
}
.nd-dropdown-options {
    display: none;
    position: absolute;
    background-color: black;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    min-width: 160px;
    z-index: 1002;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
}
.nd-dropdown.nd-open .nd-dropdown-options {
    display: block;
}
.nd-dropdown-option {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.nd-dropdown-option:hover {
    background-color: orange;
}
.nd-dropdown-selected:after {
    content: '▼';
    float: right;
    margin-left: 5px;
}

/* ===================== MENUICONEN IN HEADER ======================= */
.nd-menu-item-link {
    text-decoration: none;
    color: white;
    margin-right: 0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.nd-menu-item-link img {
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

/* ===================== ORANJE LIJN ONDER HEADER ======================= */
.nd-header-line {
    height: 4px;
    background-color: orange;
    width: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1999;
}

/* ============= Responsive gedrag ============= */
@media (max-width: 1050px) {
    .nd-header-flexbox {
        gap: 10px;
        right: 6px;
    }
    .nd-header-active-afdeling {
        padding: 6px 10px;
        font-size: 0.94em;
    }
    .nd-header-login-info {
        right: 2vw;
        font-size: 0.92em;
    }
    .nd-dropdown {
        min-width: 120px;
        width: 140px;
    }
}
@media (max-width: 850px) {
    .nd-header-flexbox {
        gap: 4px;
        top: 5px;
        right: 5px;
    }
    .nd-header-active-afdeling {
        min-width: 70px;
        font-size: 0.89em;
        padding: 5px 7px;
    }
    .nd-dropdown {
        min-width: 90px;
        width: 110px;
    }
}
@media (max-width: 600px) {
    .nd-header-flexbox {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        position: static;
        right: 0;
        top: 0;
    }
    .nd-header-active-afdeling,
    .nd-header-icons,
    .nd-header-dropdown-container {
        margin: 0 !important;
        min-width: 0 !important;
        width: 100%;
        justify-content: flex-end;
    }
    .nd-header-active-afdeling {
        border-radius: 8px;
        padding: 4px 6px;
        font-size: 0.87em;
    }
    .nd-dropdown {
        width: 95vw;
        min-width: 0;
    }
}



/* MENU BAR Stijlen */
.nd-menu-bar {
    background-color: black;
    width: 50px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    box-shadow: 10px 0 5px -5px rgba(0, 0, 0, 0.5);
    overflow-x: visible;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nd-menu-bar.nd-expanded {
    width: var(--menu-expanded-width, 200px);
}

.nd-menu-toggle {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: linear-gradient(to bottom, #ffa600 0%, #f67300 100%);
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: left 0.3s ease;
}

.nd-menu-bar.nd-expanded .nd-menu-toggle {
    left: calc(var(--menu-expanded-width, 200px));
}

.nd-toggle-icon {
    font-size: 16px;
    color: white;
    transition: transform 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nd-toggle-rotate {
    transform: rotate(180deg) !important;
}

.nd-menu-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.nd-menu-bar.nd-expanded .nd-menu-content {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nd-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.nd-menu-list {
    list-style-type: none;
    padding: 0;
    margin: 60px 0 0 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nd-menu.nd-expanded ul {
    opacity: 1;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1001;
}

/* --- AANPASSING: breedte menu-items --- */
.nd-menu li {
    width: 50px;
    transition: width 0.3s;
    display: block;
}
.nd-menu-bar.nd-expanded .nd-menu li {
    width: var(--menu-expanded-width, 200px);
}

/* --- AANPASSING: minder hoge blokken door minder padding --- */
.nd-menu li a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s, width 0.3s, padding 0.3s;
    overflow: visible;
    background-color: transparent;
}

.nd-menu li a img {
    max-width: 20px;
    max-height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.nd-menu li:hover a,
.nd-menu-item:hover:not(.active) a {
    /* Helder oranje gradient */
    background: linear-gradient(to bottom, #ffc24b 0%, #ffa600 100%);
    padding: 6px 10px; /* Zorgt dat hover dezelfde hoogte houdt */
}

.nd-menu-item.active a {
    /* Donkerder oranje gradient */
    background: linear-gradient(to bottom, #f67300 0%, #ff8700 100%);
    padding: 6px 10px; /* Zorgt dat active dezelfde hoogte houdt */
    position: relative; /* Zorg dat de ::after goed positioneert */
}

.nd-menu-item.active a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 18px solid transparent;      /* Hoger maken (was 13px) */
    border-bottom: 18px solid transparent;   /* Hoger maken (was 13px) */
    border-left: 12px solid #ff8700;         /* Zelfde breedte als voorheen */
    margin-right: -12px;                     /* Zelfde als voorheen */
    z-index: 2;
    pointer-events: none;
}

.nd-menu-item-container {
    display: flex;
    align-items: center;
    padding: 2px 0;
    width: 100%;
}

.nd-menu-item-text {
    color: white;
    visibility: hidden;
    opacity: 0;
    margin-left: 8px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    overflow: visible;
    flex-grow: 1;
}

.nd-menu.nd-expanded .nd-menu-item-text {
    visibility: visible;
    opacity: 1;
    transition-delay: 0.2s;
}


/* ============ RECHTER ZIJMENU =============== */
.nd-menu-bar-right {
    background-color: #0d0d0d;
    width: 15px;
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(.4,1,.3,1);
    box-shadow: -10px 0 5px -5px rgba(0,0,0,0.38);
    overflow-x: visible;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.nd-menu-bar-right.nd-expanded {
    width: 212px;
}

.nd-menu-toggle-right {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-100%, -50%);
    width: 32px;
    height: 58px;
    background: linear-gradient(to bottom, #ffa600 0%, #f67300 100%);
    border-top-left-radius: 29px;
    border-bottom-left-radius: 29px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.23);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: left 0.3s, top 0.3s, transform 0.3s;
}
.nd-toggle-icon-right {
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s;
    pointer-events: none;
    user-select: none;
}
.nd-toggle-rotate-right {
    transform: rotate(180deg) !important;
}
.nd-menu-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    font-size: 1em;
    text-align: center;
}
.nd-menu-bar-right.nd-expanded .nd-menu-right-content {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-content,
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-datumvak,
.nd-menu-bar-right:not(.nd-expanded) .nd-menu-right-body {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}

/* Datumblok bovenin */
.nd-menu-right-datumvak {
    width: 100%;
    padding-top: 38px;
    padding-bottom: 5px;
    text-align: center;
    margin-top: 0;
}
.nd-menu-right-datum {
    color: #fff;
    font-size: 1.09em;
    font-weight: bold;
    letter-spacing: 0.01em;
    display: inline-block;
    background: none;
}
.nd-menu-right-lijn {
    border: none;
    border-top: 2px solid orange !important;
    margin: 7px auto 13px auto;
    width: 78%;
    max-width: 190px;
}
.nd-menu-right-lijn-boven {
    margin-bottom: 10px;
    margin-top: 0;
}

/* Menu blokken stijl */
.nd-menu-right-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 12px;
}

.nd-menu-right-block {
    background: rgba(30,30,30,0.94);
    border-radius: 9px;
    padding: 30px 0 14px 0;           /* ruimte boven voor de titlebox + iets meer onderruimte */
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(255, 144, 0, 0.09);
    border: 1.2px solid rgba(255,165,0,0.19);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: background 0.22s, border 0.18s, transform 0.13s, box-shadow 0.13s;
    cursor: pointer;
    min-height: 38px;
    overflow: visible;
}
.nd-menu-right-block:hover {
    background: rgba(30,30,30,0.94); /* zelfde als normaal, dus blijft gelijk */
    border: 1.2px solid orange;
    color: #fff;
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 4px 12px rgba(255,144,0,0.13);
}


/* Gecentreerde rechthoekige badge bovenin elk blok */
.nd-menu-right-block-titlebox {
    background: #181818;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    letter-spacing: 0.01em;
    padding: 7px 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(255,144,0,0.07);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    min-width: 76px;
    max-width: 90%;
    text-align: center;
    border-bottom: 2px solid orange;
    z-index: 2;
    display: block;
    letter-spacing: 0.04em;
}

/* Plusje ONDER de inhoud, niet meer vast linksonder */
.nd-menu-right-plus {
    position: relative;               /* niet meer absolute */
    left: auto;
    bottom: auto;
    width: 27px;
    height: 27px;
    background: rgba(255,165,0,0.13);
    border-radius: 50%;
    color: orange;
    font-size: 1.34em;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.5px 4px rgba(255,165,0,0.11);
    z-index: 3;
    cursor: pointer;
    transition: background 0.18s, color 0.13s, box-shadow 0.15s;
    margin-top: 12px;                 /* ruimte boven het plusje */
    align-self: center;               /* centreer onderin het blok */
}
.nd-menu-right-block:hover .nd-menu-right-plus {
    background: orange;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,165,0,0.23);
    transition-delay: 0.05s;
}

@media (max-width: 500px) {
    .nd-menu-bar-right.nd-expanded { width: 96vw; }
    .nd-menu-right-block-titlebox { width: 92%; font-size: 0.98em; }
    .nd-menu-right-block { margin: 0 4vw; }
}

/* MODAL STIJLEN */
.nd-modal-bg {
    position: fixed;
    z-index: 50000;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(5, 5, 5, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ndModalBgFadeIn 0.18s;
}
@keyframes ndModalBgFadeIn { from { opacity: 0; } to { opacity: 1; } }

.nd-modal-window {
    background: #181818;
    border-radius: 16px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.45), 0 2px 10px rgba(255,160,0,0.07);
    max-width: 380px;
    width: 94vw;
    padding: 0;
    animation: ndModalShowUp 0.24s cubic-bezier(.47,1.63,.58,.86);
    overflow: hidden;
    border: 2.6px solid orange;
    position: relative;
}
@keyframes ndModalShowUp { from { transform: translateY(30px) scale(.97); opacity: 0.4; } to { transform: none; opacity: 1; } }

.nd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 19px 25px 11px 24px;
    background: #181818;
    border-bottom: 2px solid orange;
}
.nd-modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.16em;
    letter-spacing: 0.02em;
    text-shadow: 0 1.5px 4px rgba(255,200,60,0.08);
}
.nd-modal-close {
    background: transparent;
    color: orange;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    transition: color 0.18s;
    padding: 0 0 0 7px;
    line-height: 1;
}
.nd-modal-close:hover { color: #fff; }

.nd-modal-body {
    padding: 22px 24px 24px 24px;
    background: #232323;
    color: #fff;
    font-size: 1em;
    border-radius: 0 0 14px 14px;
}
.nd-modal-form-row {
    margin-bottom: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.nd-modal-form-row label {
    font-weight: 500;
    color: orange;
    margin-bottom: 4px;
    font-size: 0.97em;
    letter-spacing: 0.02em;
}
.nd-modal-form-row input[type="date"],
.nd-modal-form-row select {
    background: #191919;
    color: #fff;
    border: 1.3px solid orange;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 1em;
    width: 100%;
    outline: none;
    margin-bottom: 0;
}
.nd-modal-form-row input[type="date"]:focus,
.nd-modal-form-row select:focus {
    border-color: #fff;
    background: #151515;
}

.nd-modal-save-btn {
    background: linear-gradient(90deg, orange 0%, #f69400 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 11px 23px;
    font-size: 1.06em;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255,144,0,0.10);
    transition: background 0.19s, color 0.13s;
}
.nd-modal-save-btn:hover {
    background: linear-gradient(90deg, #f69400 0%, orange 100%);
    color: #fff;
}

/* ============ EETLIJSTJE-LIJST IN RECHTER BLOK =============== */
#nd-eetlijstje-list .nd-eet-skel {
    color:#ddd;
    font-size:.95em;
    opacity:.9;
    padding:6px 4px;
}

.nd-eet-list { 
    display:flex; 
    flex-direction:column; 
    gap:10px; 
}

/* Eén tijdslot */
.nd-eet-item {
    background: #202020;
    border: none;            /* rand volledig weg */
    border-radius: 8px;
    padding: 8px 10px;
}

/* Tijdkopje */
.nd-eet-time {
    font-weight:700; 
    color:#ffa600; 
    margin-bottom:6px; 
    font-size:.95em; 
    letter-spacing:.02em;
}

/* Namen in twee kolommen, netjes uitgelijnd */
.nd-eet-names { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 kolommen */
    gap: 6px 8px;                           /* ruimte tussen items */
    width: 100%;
    box-sizing: border-box;
}

/* Naam-chip in grid met subtiel kleurstreepje voor afdeling */
.nd-eet-chip {
    position: relative;
    background: #2a2a2a;
    border: none;                 /* geen rand */
    color: #fff;
    border-radius: 8px;
    font-size: .9em;
    line-height: 1.25;            /* consistente hoogte */
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;             /* streepje blijft binnen de ronde hoeken */
    /* ruimte links: 4px (offset) + 3px (streep) + 6px (lucht) = 13px */
    padding: 6px 10px 6px 13px;
}

/* Verticaal kleurstreepje voor afdeling */
.nd-eet-chip::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--dept, #ffa600); /* fallback oranje */
}

/* Optioneel: expliciete no-color variant als je die ooit wilt gebruiken */
.nd-eet-chip.nd-eet-chip--no-color::before {
    background: #666; /* neutraal grijs */
}

/* compacter wanneer het zijmenu open is, padding iets kleiner */
.nd-menu-bar-right.nd-expanded .nd-eet-item {
    padding: 8px 9px;
}
