/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-blue: #2563eb;
    --bg-gray: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
}

/* --- Navigatie: De "Spread" Layout --- */
.top-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px; /* Vaste hoogte */
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center; /* Alles verticaal in het midden */
    justify-content: space-between; /* Logo links, Menu midden, Knop rechts */
}

/* 1. Logo gedeelte */
.brand {
    flex: 0 0 250px; /* Geeft het logo een vaste basisruimte */
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px; /* Iets kleiner voor betere witruimte */
    width: auto;
}

/* 2. Menu gedeelte (Precies in het midden) */
.nav-links {
    flex: 1; /* Neemt alle resterende ruimte in */
    display: flex;
    justify-content: center; /* Centreert de LI's binnen deze ruimte */
    list-style: none;
    gap: 2.5rem;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative; /* Voor de actieve lijn */
    transition: color 0.2s;
}

/* De blauwe lijn die aan de onderkant van de header kleeft */
.nav-links a.active {
    color: var(--brand-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Plakt tegen de border-bottom van de nav aan */
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 3px 3px 0 0;
}

/* 3. Knop gedeelte */
.nav-user {
    flex: 0 0 250px; /* Zelfde breedte als logo voor perfecte symmetrie */
    display: flex;
    justify-content: flex-end;
}

.btn-brand {
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

/* --- Content Layout --- */
.app-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.pulse-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
}

.stat-title { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.stat-value { font-size: 2.2rem; font-weight: 800; display: block; margin-top: 5px; }

.nav-user {
    flex: 0 0 280px; /* Iets breder maken om ruimte te bieden aan beide elementen */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem; /* Ruimte tussen de link en de blauwe knop */
}

.logout-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #ef4444; /* Kleurt subtiel rood bij hover voor de 'waarschuwing' */
}

/* Voeg dit toe aan style.css */
.modern-table tbody tr:hover {
    background-color: #f8fafc; /* Heel licht grijs/blauw bij hover */
    cursor: default;
}