/* Kleuren en algemene variabelen */
:root {
    --primary: #5B5EF5;
    --primary-dark: #474AE0;

    --background: #F5F7FB;
    --white: #FFFFFF;

    --text-main: #1E1E2F;
    --text-light: #6B7280;

    --border: #E5E7EB;

    --shadow: 0 4px 12px rgba(0,0,0,0.06);

    --radius: 18px;
}

/* Basis reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Algemene body styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
}

/* Sidebar links */
.sidebar {
    width: 230px;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
}

/* Logo bovenin */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
}

/* Navigatie container */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Navigatie item */
.nav-item {
    text-decoration: none;
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
}

/* Hover effect */
.nav-item:hover {
    background: #EEF0FF;
    color: var(--primary);
}

/* Actieve pagina */
.nav-item.active {
    background: var(--primary);
    color: white;
}

/* Hoofdcontent */
.main-content {
    flex: 1;
    padding: 40px;
}

/* Grote titel */
.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Kleine tekst onder titel */
.page-subtitle {
    color: var(--text-light);
    margin-bottom: 35px;
}

/* Algemene card */
.card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Titel in card */
.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Normale tekst */
.card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Algemene knop */
.btn {
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

/* Paarse knop */
.btn-primary {
    background: var(--primary);
    color: white;
}

/* Hover knop */
.btn-primary:hover {
    background: var(--primary-dark);
}

/* Lichte knop */
.btn-secondary {
    background: #EEF0FF;
    color: var(--primary);
}

/* Hover lichte knop */
.btn-secondary:hover {
    background: #E0E4FF;
}

/* Input groep */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

/* Label boven input */
.label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Input veld */
.input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 15px;
    transition: 0.2s;
}

/* Input focus */
.input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Algemene tabel */
.table {
    width: 100%;
    border-collapse: collapse;
}

/* Tabel kopjes */
.table th {
    text-align: left;
    padding: 16px;
    background: #F9FAFB;
    color: var(--text-light);
    font-size: 14px;
}

/* Tabel data */
.table td {
    padding: 16px;
    border-top: 1px solid var(--border);
}

/* Box voor algoritmes */
.algorithm-box {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    border: 2px solid transparent;
    transition: 0.2s;
}

/* Hover algoritme */
.algorithm-box:hover {
    border-color: var(--primary);
}

/* Titel algoritme */
.algorithm-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Beschrijving algoritme */
.algorithm-description {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 18px;
}

/* Flexbox helper */
.flex {
    display: flex;
}

/* Flexbox met ruimte */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grid met 2 kolommen */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Grid met 3 kolommen */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Kleine tekst */
.text-small {
    font-size: 13px;
    color: var(--text-light);
}

/* Responsive design */
@media(max-width: 900px) {

    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 20px;
    }
}