﻿/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #eef2f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */

.header {
    background: #0d3858;
    color: white;
    padding: 26px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 52px;
}

/* ================= USER AREA ================= */

.user-area {
    position: relative;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e5a86;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-size: 15px;
}

.user-arrow {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

/* ================= DROPDOWN ================= */

.dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    background: white;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    width: 180px;
    display: none;
    overflow: hidden;
}

    .dropdown a {
        display: block;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
    }

        .dropdown a:hover {
            background: #f0f4f8;
        }

.user-area.active .dropdown {
    display: block;
}

/* ================= LAYOUT ================= */

.main {
    flex: 1;
    display: flex;
}

/* ================= SIDEBAR ================= */

.sidebar {
    width: 35%;
    max-width: 350px;
    background: #1e5a86;
    color: white;
    padding: 30px 25px;
}

    .sidebar h3 {
        margin-bottom: 20px;
        font-size: 20px;
    }

.menu-item {
    margin-bottom: 8px;
}

    .menu-item a {
        display: block;
        padding: 10px 15px;
        border-radius: 6px;
        text-decoration: none;
        color: white;
        font-size: 15px;
    }

        .menu-item a:hover {
            background: rgba(255,255,255,0.15);
        }

    .menu-item.active a {
        background: white;
        color: #1e5a86;
        font-weight: 600;
    }

/* Submenu */

.submenu {
    margin-left: 15px;
    margin-top: 5px;
}

    .submenu a {
        font-size: 14px;
        opacity: 0.9;
    }

/* ================= CONTENT ================= */

.content {
    width: 65%;
    padding: 40px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.progress-bar {
    background: #e4e9ef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 8px;
    background: #1e5a86;
}

/* ================= FOOTER ================= */

.footer {
    background: #0d3858;
    color: white;
    text-align: center;
    padding: 15px;
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    margin-right: 15px;
}

/* ================================================= */
/* ================= MOBILE ========================= */
/* ================================================= */

@media (max-width: 900px) {

    /* ================= HEADER ================= */

    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px;
        gap: 12px;
        margin-bottom: 10px;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        height: 38px;
    }

    .hamburger {
        display: block;
        color: white;
        font-size: 24px;
    }

    /* ================= USER ================= */

    .user-area {
        align-self: flex-end;
    }

    .user-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .user-name {
        font-size: 15px;
        line-height: 1.2;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* ================= LAYOUT ================= */

    .main {
        flex-direction: column;
    }

    .content {
        width: 100%;
        padding: 20px;
    }

    /* ================= SIDEBAR FIX ================= */

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px; /* vaste breedte */
        max-width: none; /* BELANGRIJK */
        height: 100%;
        padding-top: 90px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 2000;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    /* Overlay */

    body.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1500;
    }
}


/* ================= SIDEBAR CLOSE BUTTON ================= */

.sidebar-close {
    display: none;
}

/* Alleen mobiel */

@media (max-width: 900px) {

    .sidebar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 22px;
        cursor: pointer;
        color: white;
    }
}
