@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* =========================================================
   BASE.CSS - gedeeld door ALLE pagina's
   Laad dit bestand altijd vóór het pagina-specifieke CSS.
   ========================================================= */

:root {
    --canvas: #f4f4f6;
    --surface: #ffffff;
    --surface-muted: #f0f0f2;
    --line: #dedee2;
    --line-dark: #c7c7cc;
    --ink: #29292e;
    --muted: #77777f;
    --charcoal: #39393f;
    --sidebar: 140px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font: 400 11px/1.35 'DM Sans', 'Segoe UI', sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden {
    display: none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);

    display: flex;
    flex-direction: column;

    padding: 17px 9px 13px;

    background: var(--surface);
    border-right: 1px solid var(--line);

    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 5px 25px;
}

.logo::before {
    content: 'IC';

    display: grid;
    place-items: center;

    width: 20px;
    height: 20px;

    border-radius: 6px;

    background: var(--charcoal);
    color: #fff;

    font-size: 7px;
    font-weight: 700;
}

.logo h1 {
    margin: 0;

    font-size: 11px;
    letter-spacing: -.25px;
}

.nav ul,
.sidebar-footer {
    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-item {
    margin: 2px 0;
}

.nav-item a,
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;

    min-height: 29px;
    padding: 0 10px;

    border-radius: 7px;

    color: #57575e;
    font-size: 10px;

    transition: background .15s ease, color .15s ease;
}

.nav-item a::before,
.sidebar-footer a::before {
    content: '□';

    font-size: 12px;
    color: #9b9ba2;
}

.nav-item a:hover,
.sidebar-footer a:hover {
    background: var(--surface-muted);
    color: var(--ink);
}

.nav-item.active a {
    background: #e7e7ea;
    color: var(--ink);

    font-weight: 700;

    box-shadow: inset 3px 0 var(--charcoal);
}

.nav-item.active a::before {
    color: var(--charcoal);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid var(--line);
}


/* =========================================================
   HOOFDGEDEELTE (naast de sidebar)
   ========================================================= */

.main {
    margin-left: var(--sidebar);
    padding: 17px 18px 20px;
}


/* =========================================================
   TABLET / MOBIEL
   ========================================================= */

@media (max-width: 800px) {

    :root {
        --sidebar: 58px;
    }

    .sidebar {
        padding: 14px 7px;
    }

    .logo {
        justify-content: center;
        padding: 0 0 22px;
    }

    .logo h1,
    .nav-item a,
    .sidebar-footer a {
        font-size: 0;
    }

    .nav-item a,
    .sidebar-footer a {
        justify-content: center;
        padding: 0;
    }

    .nav-item a::before,
    .sidebar-footer a::before {
        font-size: 13px;
    }

    .sidebar-footer a {
        min-height: 32px;
    }

    .main {
        padding: 14px 12px;
    }
}