/* --- BASIS & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

/* --- HEADER & NAVBAR (BLAUWE KLEUR + COMPACTE MAAT) --- */
.site-header {
    width: 100%;
    background-color: #2c3e50; /* Mooie donkerblauwe kleur */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 8vh; /* Terug naar normale hoogte */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    flex: 1;
    height: 100%;
}

.nav-logo {
    height: 120px !important; /* Forceer de grootte die je wilt */
    width: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Dit centreert het logo verticaal t.o.v. de 80px balk */
    z-index: 1001;
}

.nav-title {
    color: #54c3ea;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 100px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 2;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #bdc3c7; /* Lichter grijs voor op blauw */
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.nav-btn i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-btn.active {
    color: #3498db; /* Helder blauw voor actieve status */
    font-weight: bold;
}

.hamburger-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
}

.popup, .errorPopup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    /* De basis transform */
    transform: translateX(-50%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: none;
    z-index: 3000; /* Hoger dan de header/modals */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.popup { background-color: #333; }
.errorPopup { background-color: #e50a0a; }


@keyframes fadeInPopup {
    from {
        bottom: 0;
        opacity: 0;
        transform: translateX(-50%);
    }
    to {
        bottom: 30px;
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes fadeOutPopup {
    from {
        bottom: 30px;
        opacity: 1;
        transform: translateX(-50%);
    }
    to {
        bottom: 0;
        opacity: 0;
        transform: translateX(-50%);
    }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2000;
}

.logoutPopup {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 2100;
    text-align: center;
    min-width: 300px;
    border: 1px solid #ddd;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 50px; opacity: 1; }
}

.confirm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.yes-btn { background-color: #e50a0a; color: white; }
.no-btn { background-color: #6c757d; color: white; }

/* --- SIDE MENU & ACCOUNT --- */
.side-menu {
    position: fixed;
    top: 0; right: -300px;
    width: 300px; height: 100%;
    background-color: #1a252f; /* Donkerdere blauwe tint */
    z-index: 2000;
    transition: 0.3s ease-in-out;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-menu.open { right: 0; }

.menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1500;
}

.menu-overlay.show { display: block; }

.side-nav-btn, .account-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.side-nav-btn {
    background: none; border: none; padding: 12px;
    text-align: left; cursor: pointer; border-radius: 5px; width: 100%;
    transition: 0.2s;
}

.side-nav-btn:hover { background-color: #34495e; }

.side-menu-account-section {
    padding: 12px; border-radius: 5px; cursor: pointer;
    background-color: transparent; transition: all 0.2s ease-in-out;
    display: flex; align-items: center; width: 100%;
}

.side-menu-account-section:hover { background-color: #34495e; }
.side-menu-account-section:hover .account-info span { color: #3498db; }

.account-info { font-size: 1.4rem; }
.account-info i { font-size: 1.8rem; width: 25px; text-align: center; }

.side-menu-divider {
    border: 0;
    border-top: 1px solid #34495e;
    margin: 10px 0;
    width: 100%;
}

.extra-item-divider {
    opacity: 0.6;
    margin: 20px auto 10px;
}

.auth-btn-divider {
    margin-top: auto;
    border-top: 1px dashed #ccc;
}

.error-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    text-align: center;
}

.error-title-404 {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    color: #ff4757;
    margin: 0;
    line-height: 1;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.error-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #2c3e50;
    margin-bottom: 10px;
}

.error-text {
    color: #7f8c8d;
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .nav-list { display: none; }
    .nav-logo { height: 50px; }
}

@media (max-width: 1180px) and (orientation: landscape) {
    .site-header {
        height: auto; /* Geen vaste 8vh meer, laat het meebewegen */
        padding: 10px 0;
    }

    .nav-logo {
        height: 60px !important; /* Logo kleiner maken zodat het niet over de content hangt */
        position: relative; /* Niet meer absoluut centreren om overlap te voorkomen */
        transform: none;
        top: 0;
    }

    .nav-title {
        margin-left: 15px; /* Ruimte naast het logo herstellen */
        font-size: 1.3rem;
    }

    .nav-list {
        gap: 15px; /* Knoppen dichter bij elkaar */
    }

    /* Zorg dat de body altijd kan scrollen */
    html, body {
        overflow-y: auto !important;
        height: auto !important;
    }

    /* Modals moeten scrollbaar zijn als ze te hoog zijn voor het liggende scherm */
    .modal-box {
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.5rem;
    }
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: fadeInSlide 0.5s ease-out forwards;
}