﻿/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0I5nvwUgHU.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v19/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
}
    /* =============================
   GLOBAL RESET & CSS VARIABLES
============================= */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

:root {
    --bg-primary: linear-gradient(135deg, #f6f8f7 0%, #eef2f0 100%);
    --text-primary: #1a2520;
    --text-secondary: #5a6b5f;
    --text-tertiary: #7a8580;
    --surface-primary: rgba(255, 255, 255, 0.8);
    --surface-secondary: rgba(249, 250, 249, 0.9);
    --border-color: rgba(229, 234, 231, 0.5);
    --border-secondary: rgba(221, 227, 223, 0.6);
    --component-bg: linear-gradient(135deg, #4a6657 0%, #5a7564 100%);
    --component-center: linear-gradient(135deg, #3d5948 0%, #4a6657 100%);
    --component-shadow: rgba(61, 89, 72, 0.3);
    --shadow-light: rgba(42, 53, 47, 0.08);
    --shadow-medium: rgba(42, 53, 47, 0.04);
    --shadow-hover: rgba(42, 53, 47, 0.12);
    --accent-gradient: linear-gradient(135deg, #2a352f 0%, #4a6657 100%);
    --cta-bg: linear-gradient(135deg, #4a6657 0%, #6a8574 100%);
}

/* Dark theme overrides */
body.dark-theme {
    --bg-primary: linear-gradient(135deg, #0f1612 0%, #1a2520 100%);
    --text-primary: #e8ede9;
    --text-secondary: #a8b3ad;
    --text-tertiary: #7a8580;
    --surface-primary: rgba(74, 102, 87, 0.2);
    --surface-secondary: rgba(21, 30, 26, 0.9);
    --border-color: rgba(116, 134, 124, 0.3);
    --border-secondary: rgba(58, 70, 63, 0.6);
    --component-bg: linear-gradient(135deg, #5a7564 0%, #6a8574 100%);
    --component-center: linear-gradient(135deg, #4a6657 0%, #5a7564 100%);
    --component-shadow: rgba(74, 102, 87, 0.4);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.3);
    --accent-gradient: linear-gradient(135deg, #4a6657 0%, #6a8574 100%);
    --cta-bg: linear-gradient(135deg, #6a8574 0%, #8ca296 100%);
}

/* =============================
   BODY & TYPOGRAFIE
============================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* =============================
   NAVIGATION
============================= */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface-primary);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

body.dark-theme .nav-container {
    background: var(--surface-secondary);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    user-select: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-left, .nav-right {
    flex: 0 0 auto; /* voorkom uitrekken */
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* voorkom wrap */
}

body.dark-theme .nav-brand {
    color: var(--text-secondary);
}

.nav-brand .system-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 32px;
    height: 32px;
    background: var(--surface-primary);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px var(--shadow-light), 0 1px 4px var(--shadow-medium);
    padding: 4px;
}

.system-mini .component {
    background: var(--component-bg);
    border-radius: 1.5px;
    aspect-ratio: 1 / 1;
    opacity: 0.6;
    transition: background 0.3s ease;
}

    .system-mini .component:nth-child(5) {
        background: var(--component-center);
        opacity: 1;
        box-shadow: 0 0 4px var(--component-shadow);
    }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: left 0.35s ease, opacity 0.35s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        background: rgba(74, 102, 87, 0.1);
        color: var(--text-primary);
    }

    .nav-link.active {
        background: rgba(74, 102, 87, 0.15);
        color: var(--text-primary);
    }

        .nav-link.active::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, #4a6657, #5a7564);
            border-radius: 2px 2px 0 0;
        }

body.dark-theme .nav-link {
    color: var(--text-secondary);
}

    body.dark-theme .nav-link:hover,
    body.dark-theme .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-primary);
    }

        body.dark-theme .nav-link.active::before {
            background: linear-gradient(90deg, #6a8574, #8ca296);
        }

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--component-center);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--surface-primary);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }

        .nav-links.active {
            left: 0;
        }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* =============================
   MAIN CONTAINER & CONTENT
============================= */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    margin-top: 120px; /* to offset fixed nav */
    padding: 0 10px 40px;
    user-select: none;
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
    animation-delay: 0.1s;
}

h1 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

    h1:focus {
        outline: none;
    }

.role {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

/* =============================
   STATUS MESSAGE
============================= */
.status {
    background: var(--surface-secondary);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 16px var(--shadow-medium);
    user-select: none;
    transition: all 0.3s ease;
}


/* =============================
   RESPONSIVE
============================= */
@media (max-width: 480px) {
    .container {
        max-width: 360px;
    }

    h1 {
        font-size: 2rem;
    }

    .role {
        font-size: 0.9rem;
    }

    .system {
        max-width: 180px;
        gap: 10px;
        padding: 20px;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .theme-toggle-icon {
        width: 18px;
        height: 18px;
    }
}

/* =============================
   REDUCED MOTION PREFERENCE
============================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Aangepaste app.css regels */
/* -------------------------------------------------------------------------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--text-primary); /* Gebruik primaire tekstkleur voor validatie */
}

.invalid {
    outline: 1px solid #e74c3c; /* Rood voor invalid */
}

.validation-message {
    color: #e74c3c; /* Rood voor validatieberichten */
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

#blazor-error-ui {
    color-scheme: light only; /* Blijft licht, zoals gespecificeerd */
    background: #ffe0b2; /* Lichtere, warmere kleur */
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-top-left-radius: var(--border-radius-small);
    border-top-right-radius: var(--border-radius-small);
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        color: var(--text-primary); /* Gebruik primaire tekstkleur */
    }

.blazor-error-boundary {
    /* SVG background blijft zoals is, maar pas kleuren aan indien mogelijk */
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA0L3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5LjcwNiA4Ny4zMDA1IDI1OSuNzg2IDg5Ljc5MjEgMjU5Ljc4NiA5Mi4yODM3IDI2MS4wNDkgOTMuNTI5NSAyNjMuNTc2IDkzLjUyOTUgMjY2LjExNiA5My41Mjk1IDI2Ny4zODcgOTIuMjgzNyAyNjcuMzg3IDg5Ljc5MjEgMjY3LjM4NyA4Ny4zMDA1IDI2Ni4xMTYgODYuMDU0NyAyNjMuNTc2IDg2LjA1NDdGoiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #e74c3c; /* Rood voor error boundary */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--border-radius-small);
}

    .blazor-error-boundary::after {
        content: "Er is een fout opgetreden." /* Nederlandse tekst */
    }

/* Loading Progress - Aangepast om consistent te zijn met .system */
.loading-progress {
    position: relative;
    display: grid;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px; /* Consistent met .system max-width */
    height: auto;
    margin: 1rem auto 1rem auto; /* Aangepast - minder top margin omdat tekst nu buiten staat */
    background: var(--surface-primary); /* Consistent met .system */
    border: 1px solid var(--border-color); /* Consistent met .system */
    border-radius: 16px; /* Consistent met .system border-radius */
    box-shadow: 0 8px 32px var(--shadow-light), 0 2px 8px var(--shadow-medium); /* Consistent met .system */
    padding: 24px; /* Consistent met .system padding */
    backdrop-filter: blur(10px); /* Consistent met .system glassmorphisme */
    transition: all 0.3s ease;
    user-select: none; /* Consistent met .system */
}

/* Loading tekst BUITEN de kaart, net als "SOFTWARE ARCHITECT" buiten .system staat */
.loading-progress-text {
    position: relative;
    text-align: center;
    font-weight: 500; /* Consistent met algemene font-weight */
    color: var(--text-primary);
    margin: 20vh auto 1rem auto; /* Positionering zoals .role op hoofdpagina */
    font-size: 0.85rem; /* Consistent met .status font-size */
    max-width: 220px; /* Consistent met .loading-progress max-width */
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Laden...");
    }

/* De 9 blokken grid - groter gemaakt om consistent te zijn met hoofdpagina */
.loading-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; /* Consistent met .system gap */
    width: 100%;
    padding: 8px; /* Extra padding rond de grid */
}

.loading-grid-item {
    aspect-ratio: 1 / 1;
    min-height: 48px; /* Groter gemaakt - consistent met hoofdpagina blokken */
    min-width: 48px; /* Groter gemaakt - consistent met hoofdpagina blokken */
    border-radius: 8px; /* Iets groter border-radius voor grotere blokken */
    background: var(--component-bg); /* Consistent met .component background */
    opacity: 0.7; /* Iets meer opacity voor betere zichtbaarheid */
    transition: all 0.3s ease; /* Consistent met .component transition */
    position: relative;
    overflow: hidden;
    animation: loading-pulse 1.5s infinite ease-in-out;
}

    /* Speciale styling voor het middelste blok (5e blok) */
    .loading-grid-item:nth-child(5) {
        background: var(--component-center); /* Consistent met .component:nth-child(5) */
        opacity: 1; /* Consistent met .component:nth-child(5) */
        box-shadow: 0 0 20px var(--component-shadow); /* Consistent met .component:nth-child(5) */
    }

    /* Staggered animation delays voor een golvend effect */
    .loading-grid-item:nth-child(1) {
        animation-delay: 0s;
    }

    .loading-grid-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .loading-grid-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .loading-grid-item:nth-child(4) {
        animation-delay: 0.3s;
    }

    .loading-grid-item:nth-child(5) {
        animation-delay: 0.4s;
    }

    .loading-grid-item:nth-child(6) {
        animation-delay: 0.5s;
    }

    .loading-grid-item:nth-child(7) {
        animation-delay: 0.6s;
    }

    .loading-grid-item:nth-child(8) {
        animation-delay: 0.7s;
    }

    .loading-grid-item:nth-child(9) {
        animation-delay: 0.8s;
    }

/* Keyframes animatie voor de blokken */
@keyframes loading-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05); /* Consistent met .component:hover scale */
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Speciale animatie voor het middelste blok */
.loading-grid-item:nth-child(5) {
    animation-name: loading-pulse-center;
}

@keyframes loading-pulse-center {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px var(--component-shadow);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 25px var(--component-shadow);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px var(--component-shadow);
    }
}

/* Hover effect voor de loading progress (optioneel) */
.loading-progress:hover {
    transform: translateY(-2px); /* Consistent met .system:hover */
    box-shadow: 0 12px 48px var(--shadow-hover), 0 4px 16px var(--shadow-medium);
}

/* Responsive aanpassingen */
@media (max-width: 480px) {
    .loading-progress {
        max-width: 180px; /* Consistent met .system responsive max-width */
        padding: 20px; /* Consistent met .system responsive padding */
    }

    .loading-grid {
        gap: 10px; /* Consistent met .system responsive gap */
        padding: 6px; /* Kleinere padding op mobile */
    }

    .loading-grid-item {
        min-height: 40px; /* Iets kleiner op mobile maar nog steeds prominent */
        min-width: 40px;
        border-radius: 6px; /* Kleinere border-radius op mobile */
    }

    .loading-progress-text {
        font-size: 0.8rem;
        margin-bottom: 0.8rem; /* Iets minder margin op mobile */
    }
}

code {
    color: var(--text-primary); /* Gebruik primaire tekstkleur */
    background-color: var(--surface-secondary);
    padding: 0.2em 0.4em;
    border-radius: var(--border-radius-small);
    font-family: monospace;
}

/* Blazor specifieke formulierstijlen */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--text-tertiary); /* Gebruik tertiaire tekstkleur */
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Helpt bij het berekenen van RGB waarden voor rgba() in JS of CSS */
/* Dit is een workaround om CSS custom properties voor rgba te gebruiken zonder direct de RGB waarden te hardcoden */
body:not(.dark-theme) {
    --component-center-rgb-r: 107;
    --component-center-rgb-g: 156;
    --component-center-rgb-b: 138;
    --text-tertiary-rgb-r: 107;
    --text-tertiary-rgb-g: 156;
    --text-tertiary-rgb-b: 138;
}

body.dark-theme {
    --component-center-rgb-r: 139;
    --component-center-rgb-g: 195;
    --component-center-rgb-b: 139;
    --text-tertiary-rgb-r: 90;
    --text-tertiary-rgb-g: 128;
    --text-tertiary-rgb-b: 90;
}
