/* ==========================================================================
   ZachtKracht — Aangepast CSS-thema
   Wellness & HSP coaching platform
   Visueel: kersenbloesem, zen stenen, rozenkwarts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties — Kleurenpalet
   -------------------------------------------------------------------------- */
:root {
    /* Primaire kleuren */
    --zk-primary: #C4A0D4;
    --zk-primary-dark: #9B7BB0;
    --zk-primary-light: #E8D5F0;
    --zk-secondary: #E8A0BF;
    --zk-secondary-light: #F5D5E5;

    /* Accent kleuren */
    --zk-accent: #F4C2C2;
    --zk-accent-warm: #D4A574;

    /* Achtergronden en oppervlakken */
    --zk-background: #FFF8FA;
    --zk-surface: #FFFFFF;
    --zk-surface-hover: #FFF0F5;

    /* Tekst */
    --zk-text: #4A3F47;
    --zk-text-light: #8B7F87;
    --zk-text-heading: #6B5B7B;

    /* Randen */
    --zk-border: #F0E0EB;

    /* Statuskleuren */
    --zk-success: #7BC4A0;
    --zk-warning: #E8C170;
    --zk-error: #D47B7B;

    /* Gradienten */
    --zk-gradient-hero: linear-gradient(135deg, #E8D5F0 0%, #F5D5E5 50%, #FDE8E0 100%);
    --zk-gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 250, 0.9));

    /* Schaduwen */
    --zk-shadow: 0 2px 12px rgba(107, 91, 123, 0.08);
    --zk-shadow-hover: 0 4px 20px rgba(107, 91, 123, 0.15);

    /* Afronding */
    --zk-radius: 16px;
    --zk-radius-sm: 8px;
    --zk-radius-lg: 24px;

    /* Typografie */
    --zk-font-heading: 'Playfair Display', Georgia, serif;
    --zk-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Aliassen voor inline styles in Razor-pagina's */
    --color-primary: var(--zk-primary);
    --color-primary-light: var(--zk-primary-light);
    --color-primary-dark: var(--zk-primary-dark);
    --color-secondary: var(--zk-secondary);
    --color-accent: var(--zk-accent);
    --color-surface: var(--zk-surface);
    --color-success: var(--zk-success);
    --color-warning: var(--zk-warning);
    --color-danger: var(--zk-error);
    --color-muted: var(--zk-text-light);
}

/* --------------------------------------------------------------------------
   CSS Reset & Basisstijlen
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--zk-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--zk-text);
    background-color: var(--zk-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--zk-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--zk-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--zk-font-heading);
    color: var(--zk-text-heading);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

h1:focus {
    outline: none;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   App Shell — Hoofdstructuur
   -------------------------------------------------------------------------- */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
    background: var(--zk-gradient-hero);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zk-border);
    box-shadow: 0 1px 8px rgba(107, 91, 123, 0.06);
}

.app-brand {
    font-family: var(--zk-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zk-text-heading);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.app-brand:hover {
    color: var(--zk-primary-dark);
}

/* Desktop navigatie */
.app-nav-desktop {
    display: none;
    gap: 0.25rem;
    align-items: center;
}

.app-nav-desktop a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--zk-radius-sm);
    color: var(--zk-text);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-nav-desktop a:hover {
    background-color: rgba(196, 160, 212, 0.15);
    color: var(--zk-primary-dark);
}

.app-nav-desktop a.active {
    background-color: rgba(196, 160, 212, 0.2);
    color: var(--zk-primary-dark);
    font-weight: 600;
}

.app-nav-desktop a .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Header acties (inloggen/profiel) */
.app-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.app-header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--zk-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hoofdinhoud
   -------------------------------------------------------------------------- */
.app-content {
    flex: 1;
    padding: 1.5rem 1rem 6rem;
    animation: fadeIn 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Mobiele navigatie — onderbalk
   -------------------------------------------------------------------------- */
.app-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--zk-border);
    box-shadow: 0 -2px 12px rgba(107, 91, 123, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.app-nav-mobile a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--zk-radius-sm);
    color: var(--zk-text-light);
    font-size: 0.6875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 56px;
}

.app-nav-mobile a:hover {
    color: var(--zk-primary-dark);
}

.app-nav-mobile a.active {
    color: var(--zk-primary-dark);
}

.app-nav-mobile a.active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.app-nav-mobile a .material-symbols-outlined {
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Knoppen
   -------------------------------------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--zk-radius);
    background: linear-gradient(135deg, var(--zk-primary), var(--zk-primary-dark));
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(155, 123, 176, 0.3);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(155, 123, 176, 0.4);
    color: #FFFFFF;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(155, 123, 176, 0.3);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--zk-primary);
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--zk-radius);
    background: transparent;
    color: var(--zk-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--zk-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-secondary:hover {
    background: var(--zk-secondary-light);
    color: var(--zk-primary-dark);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--zk-secondary);
    outline-offset: 2px;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--zk-radius);
    background: linear-gradient(135deg, var(--zk-accent), var(--zk-accent-warm));
    color: #FFFFFF;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
    text-decoration: none;
    line-height: 1.4;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
    color: #FFFFFF;
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-accent:focus-visible {
    outline: 2px solid var(--zk-accent-warm);
    outline-offset: 2px;
}

.btn-accent:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Kaarten
   -------------------------------------------------------------------------- */
.card {
    background: var(--zk-surface);
    border-radius: var(--zk-radius);
    box-shadow: var(--zk-shadow);
    border: 1px solid var(--zk-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--zk-shadow-hover);
    transform: translateY(-2px);
}

.card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--zk-primary-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.03);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-family: var(--zk-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--zk-text-heading);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9375rem;
    color: var(--zk-text-light);
    line-height: 1.5;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--zk-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.badge-gratis {
    background-color: rgba(123, 196, 160, 0.15);
    color: #4A9B73;
}

.badge-premium {
    background-color: rgba(196, 160, 212, 0.15);
    color: var(--zk-primary-dark);
}

.badge-nieuw {
    background-color: rgba(232, 193, 112, 0.15);
    color: #B89640;
}

.badge-prijs {
    background-color: var(--zk-secondary-light);
    color: var(--zk-primary-dark);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero sectie
   -------------------------------------------------------------------------- */
.hero {
    background: var(--zk-gradient-hero);
    border-radius: var(--zk-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--zk-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--zk-text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--zk-text-light);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Sectietitels
   -------------------------------------------------------------------------- */
.section-title {
    font-family: var(--zk-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--zk-text-heading);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--zk-primary), var(--zk-secondary));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Formulieren
   -------------------------------------------------------------------------- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--zk-border);
    border-radius: var(--zk-radius-sm);
    background: var(--zk-surface);
    color: var(--zk-text);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--zk-text-light);
}

.form-input:focus {
    border-color: var(--zk-primary);
    box-shadow: 0 0 0 3px rgba(196, 160, 212, 0.15);
}

.form-input:hover:not(:focus) {
    border-color: var(--zk-primary-light);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--zk-border);
    border-radius: var(--zk-radius-sm);
    background: var(--zk-surface);
    color: var(--zk-text);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    outline: none;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-textarea::placeholder {
    color: var(--zk-text-light);
}

.form-textarea:focus {
    border-color: var(--zk-primary);
    box-shadow: 0 0 0 3px rgba(196, 160, 212, 0.15);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zk-text);
    margin-bottom: 0.375rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

select.form-input {
    cursor: pointer;
    appearance: auto;
}

/* Validatie stijlen */
.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: var(--zk-success);
}

.invalid {
    outline: none;
    border-color: var(--zk-error);
}

.validation-message {
    color: var(--zk-error);
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--zk-primary-light);
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* Placeholder avatar (initialen) */
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--zk-primary-light), var(--zk-secondary-light));
    color: var(--zk-primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
}

.avatar-lg.avatar-placeholder {
    font-size: 1.125rem;
}

.avatar-xl.avatar-placeholder {
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Voortgangsbalk
   -------------------------------------------------------------------------- */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--zk-primary-light);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--zk-primary), var(--zk-secondary));
    border-radius: 100px;
    transition: width 0.4s ease;
}

.progress-label {
    font-size: 0.8125rem;
    color: var(--zk-text-light);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Video container
   -------------------------------------------------------------------------- */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--zk-radius);
    overflow: hidden;
    background-color: #1a1a2e;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   Notitie-editor
   -------------------------------------------------------------------------- */
.note-editor {
    background: var(--zk-surface);
    border: 1.5px solid var(--zk-border);
    border-radius: var(--zk-radius);
    padding: 1.25rem;
    min-height: 200px;
}

.note-editor textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    min-height: 160px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--zk-text);
    background: transparent;
    font-family: var(--zk-font-body);
}

.note-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--zk-border);
}

.note-editor-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zk-text-heading);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* --------------------------------------------------------------------------
   Community berichten
   -------------------------------------------------------------------------- */
.community-post {
    background: var(--zk-surface);
    border-radius: var(--zk-radius);
    border: 1px solid var(--zk-border);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.community-post:hover {
    box-shadow: var(--zk-shadow);
}

.community-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.community-post-author {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--zk-text);
}

.community-post-time {
    font-size: 0.8125rem;
    color: var(--zk-text-light);
}

.community-post-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--zk-text);
    margin-bottom: 0.75rem;
}

.community-post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--zk-border);
}

.community-post-action {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--zk-text-light);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0.25rem;
}

.community-post-action:hover {
    color: var(--zk-primary-dark);
}

/* --------------------------------------------------------------------------
   HSP Test
   -------------------------------------------------------------------------- */
.test-question {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1rem;
}

.test-question-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--zk-text);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.test-question-number {
    font-size: 0.8125rem;
    color: var(--zk-text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.test-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--zk-border);
    border-radius: var(--zk-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--zk-surface);
    font-size: 0.9375rem;
    color: var(--zk-text);
    text-align: center;
    font-family: var(--zk-font-body);
}

.test-option:hover {
    border-color: var(--zk-primary);
    background: rgba(196, 160, 212, 0.05);
}

.test-option.selected,
.test-option.test-option--selected {
    border-color: var(--zk-primary);
    background: rgba(196, 160, 212, 0.1);
    color: var(--zk-primary-dark);
    font-weight: 600;
}

.test-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--zk-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.test-option.selected input[type="radio"],
.test-option input[type="radio"]:checked {
    border-color: var(--zk-primary-dark);
}

.test-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zk-primary-dark);
}

/* --------------------------------------------------------------------------
   Betaling (Mock iDEAL)
   -------------------------------------------------------------------------- */
.payment-mock {
    background: var(--zk-surface);
    border-radius: var(--zk-radius);
    border: 1px solid var(--zk-border);
    padding: 2rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.payment-mock-title {
    font-family: var(--zk-font-heading);
    font-size: 1.25rem;
    color: var(--zk-text-heading);
    margin-bottom: 0.5rem;
}

.payment-mock-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--zk-primary-dark);
    margin-bottom: 1.5rem;
}

.payment-mock-ideal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: #CC0066;
    color: white;
    border-radius: var(--zk-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-mock-ideal:hover {
    background: #AA0055;
    transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Toast meldingen
   -------------------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 0.875rem 1.5rem;
    border-radius: var(--zk-radius);
    background: var(--zk-text);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-success {
    background: var(--zk-success);
}

.toast-warning {
    background: var(--zk-warning);
    color: var(--zk-text);
}

.toast-error {
    background: var(--zk-error);
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--zk-primary-light);
    color: var(--zk-primary-dark);
    transition: background-color 0.2s ease;
}

.tag:hover {
    background: rgba(196, 160, 212, 0.25);
}

.tag + .tag {
    margin-left: 0.375rem;
}

/* --------------------------------------------------------------------------
   Decoratieve scheidingslijn
   -------------------------------------------------------------------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--zk-text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--zk-border), transparent);
}

.divider-icon {
    font-size: 1rem;
    color: var(--zk-primary);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Laad-spinner
   -------------------------------------------------------------------------- */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--zk-primary-light);
    border-top-color: var(--zk-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--zk-text-light);
}

/* --------------------------------------------------------------------------
   Animaties
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

.animate-slide-up {
    animation: slideUp 0.4s ease;
}

/* --------------------------------------------------------------------------
   Blazor foutafhandeling
   -------------------------------------------------------------------------- */
.blazor-error-boundary {
    background: var(--zk-error);
    padding: 1rem 1.25rem;
    color: white;
    border-radius: var(--zk-radius-sm);
    margin: 1rem 0;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem 1.5rem;
    background: var(--zk-error);
    color: white;
    text-align: center;
    z-index: 9999;
    font-size: 0.9375rem;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
    font-weight: 600;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Focusstijlen (toegankelijkheid)
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--zk-primary);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Scrollbar stijl
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--zk-background);
}

::-webkit-scrollbar-thumb {
    background: var(--zk-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--zk-text-light);
}

/* --------------------------------------------------------------------------
   Material Symbols uitlijning
   -------------------------------------------------------------------------- */
.material-symbols-outlined {
    vertical-align: middle;
    font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   Utility classes
   -------------------------------------------------------------------------- */

/* Tekst uitlijning */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--zk-text-light); }

/* Marges boven */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Marges onder */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Padding */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Responsieve rasters */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Flexbox hulpklassen */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Zichtbaarheid */
.hidden-mobile {
    display: none;
}

.hidden-desktop {
    display: block;
}

/* --------------------------------------------------------------------------
   Responsieve breakpoints
   -------------------------------------------------------------------------- */

/* Mobiel — max 767px */
@media (max-width: 767px) {
    .hero {
        padding: 2rem 1.25rem;
        border-radius: var(--zk-radius);
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    /* Hero knoppen stapelen op mobiel */
    .hero .flex-center {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Cards iets minder padding */
    .card {
        border-radius: var(--zk-radius-sm);
    }

    /* Cursus grid altijd 1 kolom op mobiel */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Resultaat knoppen stapelen */
    .flex-center[style*="gap"] {
        flex-wrap: wrap;
    }

    /* HSP test navigatie */
    .flex-between {
        gap: 0.5rem;
    }

    /* Betalen pagina */
    .payment-mock {
        padding: 1rem;
    }
}

/* Tablet — 768px */
@media (min-width: 768px) {
    .hero {
        padding: 4rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-content {
        padding: 2rem 1.5rem 2rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

/* Desktop — 1024px */
@media (min-width: 1024px) {
    .app-nav-desktop {
        display: flex;
    }

    .app-nav-mobile {
        display: none;
    }

    .hidden-mobile {
        display: block;
    }

    .hidden-desktop {
        display: none;
    }

    .app-content {
        padding: 2rem 2rem 2rem;
    }

    .hero {
        padding: 5rem 4rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    h1 { font-size: 2.75rem; }
}

/* Grote schermen */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* --------------------------------------------------------------------------
   Print stijlen
   -------------------------------------------------------------------------- */
@media print {
    .app-header,
    .app-nav-mobile,
    #blazor-error-ui {
        display: none !important;
    }

    .app-content {
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}
