/* -------------------------------------------------------
   1. FONTS & GLOBAL RESET
------------------------------------------------------- */
@font-face {
    font-family: 'Raleway';
    src: url('../font/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    background-color: #EEE;
}

/* -------------------------------------------------------
   2. MENU (LINKERZIJDE)
------------------------------------------------------- */
.menu {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-height: calc(100vh - 60px);
    width: 38px;
    border-radius: 25px;
    background-color: #FFF;
    padding: 10px 10px 10px 0px;
    box-shadow: 0 0 20px 5px #999;
    font-weight: 700;
    font-size: 16px;
    color: #0077B6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: width 0.3s ease, box-shadow 0.2s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu::-webkit-scrollbar {
    display: none;
}

/* Uitschuiven */
.menu:hover {
    width: 180px;
    box-shadow: 0 0 20px 5px #777;
    padding-left: 10px;
}

/* Menu-item */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
}

/* Divider */
.menu-divider {
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Icons */
.icon, .icon-stroke, .icon-login {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Label verborgen */
.label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-width 0.3s ease;
}

/* Label zichtbaar bij hover */
.menu:hover .label {
    opacity: 1;
    max-width: 200px;
}

/* Hover highlight */
.menu-item:hover {
    background-color: #0077B6;
    color: #FFF;
}

/* Icon wit bij hover */
.menu-item:hover .icon rect,
.menu-item:hover .icon line {
    fill: #FFF !important;
}

.menu-item:hover .icon-stroke line,
.menu-item:hover .icon-stroke polyline {
    stroke: #FFF !important;
}

.menu-item:hover .icon-login circle,
.menu-item:hover .icon-login path {
    stroke: #FFF !important;
}

/* Divider zichtbaar bij hover */
.menu:hover .menu-divider {
    opacity: 1;
    max-height: 40px;
}

/* -------------------------------------------------------
   3. SIDEBAR (RECHTERZIJDE)
------------------------------------------------------- */
.sideContainer {
    position: absolute;
    right: 20px;
    top: 20px;
    height: calc(100% - 40px);
    width: 300px;
    border-radius: 25px;
    background-color: #FFF;
    padding: 10px;
    box-shadow: 0 0 20px 5px #999;
    box-sizing: border-box;
    overflow: hidden;
}

/* Titel */
.insideTitle {
    background-color: #0077B6;
    width: 100%;
    height: 66px;
    border-radius: 20px;
    padding: 10px;
    box-sizing: border-box;
    color: #FFF;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
}

/* Schooljaar */
.insideSchoolYear {
    width: 100%;
    height: 42px;
    color: #0077B6;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yearArrow {
    width: 20px;
    height: 20px;
    cursor: pointer;
    stroke: #0077B6;
    stroke-width: 3;
    fill: none;
    transition: stroke 0.2s, transform 0.2s;
}

.yearArrow:hover {
    stroke: #005f92;
    transform: scale(1.15);
}

/* Divider */
.insideDevider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll container */
.sideScroll {
    width: 100%;
    height: calc(100vh - 60px - 112px);
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sideScroll::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------
   4. FILTERS & ZOEKVELD
------------------------------------------------------- */
.insideFilters {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.insideSearchWrapper {
    position: relative;
    width: 100%;
    padding: 0px 30px 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-bottom: 1px solid #999;
}

.insideSearch {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

::placeholder {
    color: #999;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.insideSearchButton {
    position: absolute;
    right: 8px;
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.insideSearchButton svg {
    pointer-events: none;
    transition: transform 0.2s ease;
}

.insideSearch:focus ~ .insideSearchButton svg,
.insideSearchWrapper:hover .insideSearchButton svg {
    transform: scale(1.15);
}

/* -------------------------------------------------------
   5. DROPDOWNS
------------------------------------------------------- */
.dropdown {
    width: calc(100% - 20px);
    margin-top: 10px;
    box-sizing: border-box;
}

.dropdownHeader {
    width: 100%;
    padding: 8px 10px;
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
}

.dropdownHeader .clearSelection {
    cursor: pointer;
    font-weight: bold;
    margin-right: 6px;
    color: #0077B6;
}

.dropdownHeader .clearSelection:hover {
    color: #000;
}

.dropdownArrow {
    width: 18px;
    height: 18px;
    stroke: #0077B6;
    stroke-width: 3;
    fill: none;
    transition: transform 0.2s ease;
}

.dropdown.open .dropdownArrow {
    transform: rotate(180deg);
}

.dropdownList {
    display: none;
    flex-direction: column;
    padding: 8px 0 0 0;
}

.dropdown.open .dropdownList {
    display: flex;
}

.dropdownItem {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #333;
}

.dropdownItem input {
    margin-right: 8px;
    transform: scale(1.1);
}

/* Hover states */
.dropdown:not(.open) .dropdownHeader:hover .dropdownArrow {
    transform: scale(1.15);
}

.dropdown.open .dropdownHeader:hover .dropdownArrow {
    transform: rotate(180deg) scale(1.15);
}

/* -------------------------------------------------------
   6. VAKANTIES
------------------------------------------------------- */
.insideVacation {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px;
}

.insideSubTitle {
    font-size: 16px;
    font-weight: 700;
    color: #0077B6;
}

.insideVacationTable {
    width: 100%;
    border: 0px solid #999;
    font-size: 14px;
    text-align: left;
    margin-top: 5px;
    table-layout: fixed;
}

/* -------------------------------------------------------
   7. ALLE WEERGAVEN
------------------------------------------------------- */

#content{
    margin: 0px 340px 0px 88px;
    background-color: none;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#content::-webkit-scrollbar {
    display: none;
}

/* -------------------------------------------------------
   8. LOGIN
------------------------------------------------------- */

/* Overlay */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.2s ease;
}

.login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Popup */
.login-popup {
    background: white;
    padding: 15px 30px 30px 30px;
    border-radius: 25px;
    width: 350px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: popupFadeIn 0.25s ease;
}

@keyframes popupFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Close button */
.login-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #0077B6;
    transition: all 0.2s ease;
}

.login-close:hover {
    color: #000;
    font-size: 28px;
    top: 9px;
    right: 11px;
}

/* Form */

#login-form input {
    width: 100%;
    padding: 8px;
    margin-top: 15px;
    border-top: 0px solid #CCC;
    border-right: 0px solid #CCC;
    border-bottom: 1px solid #ccc;
    border-left: 0px solid #CCC;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
}

#forgot-form input {
    width: 100%;
    padding: 8px;
    margin-top: 15px;
    border-top: 0px solid #CCC;
    border-right: 0px solid #CCC;
    border-bottom: 1px solid #ccc;
    border-left: 0px solid #CCC;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
}

#reset-form input {
    width: 100%;
    padding: 8px;
    margin-top: 15px;
    border-top: 0px solid #CCC;
    border-right: 0px solid #CCC;
    border-bottom: 1px solid #ccc;
    border-left: 0px solid #CCC;
    box-sizing: border-box;
    outline: none;
    font-size: 14px;
}

.login-submit {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    height: 36px;
    background: #0077B6;
    color: white;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-sizing: border-box;
}

.login-submit:hover {
    background: #005f8f;
}

.login-submit:disabled {
    background-color: #AAA;
    cursor: not-allowed;
    opacity: 1;
}

.login-submit:disabled:hover{
    background-color: #AAA !important;
}

/* Extra links */
.login-extra {
    margin-top: 20px;
    margin-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-extra a {
    color: #0077B6;
    text-decoration: none;
}

.login-extra a:hover {
    text-decoration: underline;
}

/* 2FA sectie */
#login-2fa-section {
    margin-top: 20px;
    display:none;
}

.login-error {
    color: #900;
    margin-left: 8px;
    margin-top: 10px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.login-success {
    background: #e6ffe6;
    color: #006600;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #66cc66;
}

#pw-rules {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

#pw-rules li {
    margin: 4px 0;
    padding-left: 22px;
    position: relative;
    color: #555;
}

#pw-rules li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: #999;
    font-weight: bold;
}

#pw-rules li.valid {
    color: #006600;
}

#pw-rules li.valid::before {
    content: "✓";
    color: #009900;
}

/* -------------------------------------------------------
   9. STANDAARD POPUP
------------------------------------------------------- */

.hidden {
    display: none !important;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.2s ease;
}

.popup-box {
    background: white;
    padding: 20px 30px 30px 30px;
    border-radius: 20px;
    border-left: 15px solid #0077B6;
    border-top: 1px solid #0077B6;
    border-right: 1px solid #0077B6;
    border-bottom: 1px solid #0077B6;
    width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: popupFadeIn 0.25s ease;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.popup-box::-webkit-scrollbar {
    display: none;
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #0077B6;
    transition: all 0.2s ease;
}

.popup-close:hover {
    color: #000;
    font-size: 28px;
    top: 9px;
    right: 11px;
}