:root {
    /* Hoofdkleuren Dokwurk */
    --primary-blue: #4665a8;     /* Dokwurk Blauw */
    --primary-green: #3cb5a1;    /* Dokwurk Groen */
    
    /* Subkleuren - Doelgroepen */
    --color-ontwikkeling: #a6bc82;
    --color-inburgering: #c0a68c;
    --color-uitbesteden: #f1ce68;
    --color-personeel: #9f6376;
    
    /* Subkleuren - Werkveld */
    --color-montage: #734a93;
    --color-schoonmaak: #b2d8f6;
    --color-verpakken: #e09f5b;

    /* Functionele kleuren */
    --bg-color: #f4f6f8;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #777777;
    --border-color: #e0e0e0;
    
    /* Status mapping naar Dokwurk palet */
    --status-active: var(--primary-green);
    --status-inactive: var(--color-inburgering);
    --status-help: var(--color-personeel); /* Warm paars/rood voor aandacht */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo {
    margin-bottom: 40px;
    display: flex;
    justify-content: center; /* Centers logo horizontally */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px; /* Limits height so it doesn't overwhelm the nav */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Gives it a slight lift */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* Subtle interaction effect */
}

.nav-item {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background-color: var(--white);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.view-container {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.logout-button {
    margin-top: auto; /* Pushes the button to the bottom of the nav */
    margin-bottom: 10px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-button span {
    font-size: 1.1rem;
}

.logout-button:hover {
    background-color: var(--status-help); /* Uses your existing red variable */
    color: white;
    border-color: var(--status-help);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}