.sidebar {
    width: var(--sidebar-width, 250px); /* Belangrijk: definieer of ken de breedte */
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    height: 100vh; /* Full viewport height */
    background-color: var(--sidebar-bg, #f8f9fa); /* Voorbeeld */
    padding: 20px 15px; /* Keep original padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This will push top logo/nav and bottom logo/nav apart */
    border-right: 1px solid var(--border-color-light);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100; /* Zorg dat het boven andere content blijft */
    overflow-y: auto; /* Voeg scrollen toe binnen de sidebar indien nodig */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}



.sidebar-nav-bottom {
    border-top: 1px solid var(--border-color); /* Re-add the border */
    padding-top: 15px;
    margin-top: 15px; /* Add margin back to separate from top nav */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px; /* Keep original padding */
    margin-bottom: 5px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease; /* Remove padding transition */
    position: relative;
}

.nav-item:hover {
    background-color: #f3f4f6; /* Light grey background on hover */
}

.nav-item.active {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: 500; /* Slightly bolder text for active item */
}

.nav-item.active .nav-icon {
    color: var(--text-dark); /* Icon color matches text color when active */
}

.nav-icon {
    width: 20px; /* Fixed width for icons */
    margin-right: 15px; /* Space between icon and text */
    text-align: center;
    color: var(--icon-color);
    font-size: 1.1em; /* Slightly larger icons */
}

.nav-text {
    flex-grow: 1; /* Allows text to take remaining space */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide text that overflows */
    transition: opacity 0.2s ease-in-out; /* Smooth fade for text */
}

.nav-item .nav-text {
    display: inline-block; /* Ensure text aligns properly */
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap; /* Prevent text wrapping */
    flex-grow: 1; /* Allow text to take available space */
}

.notification-badge {
    background-color: var(--notification-red);
    color: var(--notification-text);
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: auto; /* Push badge to the right */
    line-height: 1.2; /* Adjust line height for better vertical centering */
    min-width: 18px; /* Ensure minimum width for single digits */
    text-align: center;
    display: inline-flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease; /* Add transition */
}

/* --- NIEUW: Aangepaste stijl voor badge in actieve link --- */
.nav-item.active .notification-badge {
    background-color: var(--background-light); /* Witte achtergrond */
    color: var(--text-dark); /* Donkere tekst voor contrast */
    /* Optioneel: een subtiele border */
    /* border: 1px solid var(--primary-yellow); */
}

/* --- Active State --- */
.nav-item.active {
    background-color: var(--primary-yellow);
    color: var(--text-dark); /* Donkere tekst voor actieve link */
    font-weight: 600; /* Iets dikker lettertype */
}
/* Ensure icon color also changes on active */
.nav-item.active .nav-icon {
    color: var(--text-dark);
}

/* --- Hover State (Non-Active) --- */
.nav-item:not(.active):hover {
    background-color: var(--border-color-light); /* Lichte achtergrond bij hover */
    color: var(--text-dark);
}
.nav-item:not(.active):hover .nav-icon {
    color: var(--text-dark);
}

/* --- Sidebar Bottom Nav --- */
.sidebar-nav-bottom {
    margin-top: auto; /* Push bottom nav down */
    padding-top: 15px; /* Space above bottom nav */
    border-top: 1px solid var(--border-color); /* Separator line */
}


/* Style for the logo containers */
.sidebar-logo-container {
    text-align: center;
    /* Remove margin-bottom here, apply it more specifically */
}

/* Target the top logo container specifically */
.sidebar > div:first-child .sidebar-logo-container {
    margin-bottom: 25px; /* Space below the top logo, before the nav */
}

/* Style for the top logo image */
.sidebar-logo-top {
    max-width: 80%;
    height: auto;
    display: inline-block;
}

/* Style for the bottom logo image */
.sidebar-logo-bottom {
    max-width: 80%; /* Or adjust as needed - don't force 100% */
    /* width: 100%; */ /* REMOVE this */
    height: auto;
    display: inline-block; /* Back to inline-block for centering */
    vertical-align: middle; /* Helps with vertical alignment */
}

/* Adjust margin/padding for the bottom nav list */
.sidebar-nav-bottom {
    border-top: 1px solid var(--border-color); /* Re-add the border */
    padding-top: 15px;
    margin-top: 15px; /* Add margin back to separate from top nav */
} 