/* Modern Classless CSS Framework v1.0
 * Created by Luke Heyburn
 * Digitally Tailored (https://digitallytailored.com)
 * MIT License
 */

:root {
    interpolate-size: allow-keywords;

    /* Color scheme */
    color-scheme: light;
    --color-mode: "light";

    /* Primary: Warm Charcoal Grey */
    --primary-100: #f7f6f5;
    --primary-200: #eceae8;
    --primary-300: #d6d2cf;
    --primary-400: #b7b1ad;
    --primary-500: #8f8883;
    --primary-600: #6b645f;
    --primary-700: #4e4844;
    --primary-800: #34302d;
    --primary-900: #1e1b19;

    /* accent: Fiery Flamingo */
    --accent-100: #fff2f7;
    --accent-200: #fcbbd5;
    --accent-300: #eb7dae;
    --accent-400: #bb3c7d;
    --accent-500: #5e0a3a;
    --accent-600: #500434;
    --accent-700: #42012e;
    --accent-800: #340027;
    --accent-900: #26001f;

    /* Neutral */
    --neutral-100: #fcfcfa;
    --neutral-200: #f0efed;
    --neutral-300: #e4e2e0;
    --neutral-400: #d8d6d3;
    --neutral-500: #ccc9c6;
    --neutral-600: #a39e9b;
    --neutral-700: #797471;
    --neutral-800: #504b49;
    --neutral-900: #262322;

    /* Transparant Brown Light */
    --primary-light-100: hsl(34 100% 96% / 0.1);
    --primary-light-200: hsl(34 100% 96% / 0.2);
    --primary-light-300: hsl(34 100% 96% / 0.3);
    --primary-light-400: hsl(34 100% 96% / 0.4);
    --primary-light-500: hsl(34 100% 96% / 0.5);
    --primary-light-600: hsl(34 100% 96% / 0.6);
    --primary-light-700: hsl(34 100% 96% / 0.7);
    --primary-light-800: hsl(34 100% 96% / 0.8);
    --primary-light-900: hsl(34 100% 96% / 0.9);

    /* Transparant Brown Dark */
/* Transparent Primary Dark (warm charcoal) */
--primary-dark-100: hsl(30 6% 18% / 0.1);
--primary-dark-200: hsl(30 6% 18% / 0.2);
--primary-dark-300: hsl(30 6% 18% / 0.3);
--primary-dark-400: hsl(30 6% 18% / 0.4);
--primary-dark-500: hsl(30 6% 18% / 0.5);
--primary-dark-600: hsl(30 6% 18% / 0.6);
--primary-dark-700: hsl(30 6% 18% / 0.7);
--primary-dark-800: hsl(30 6% 18% / 0.8);
--primary-dark-900: hsl(30 6% 18% / 0.9);


    /* Updated Color Palette */
    --primary: var(--primary-400);
    --primary-contrast: var(--primary-500);
    --primary-invert: #fffaf2;
    --secondary: var(--accent-600);
    --secondary-light: var(--accent-500);
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --info: #0ea5e9;
    --info-light: #38bdf8;
    --light: #fffaf2;
    --dark: #26110e;
    --body-bg: #fcfcfa;
    --body-color: #4c4745;
    --heading-color: #26110e;
    --link-color: var(--accent-700);
    --link-hover-color: var(--accent-600);
    --border-color: #ddd9d6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --progress-color: #11bdb4;
    --input-icon-color: #716b69;

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-contrast) 100%
    );
    --gradient-link: linear-gradient(
        135deg,
        var(--link-color) 0%,
        var(--link-hover-color) 100%
    );
    --gradient-secondary: linear-gradient(
        135deg,
        var(--secondary) 0%,
        var(--secondary-light) 100%
    );
    --gradient-success: linear-gradient(
        135deg,
        var(--success) 0%,
        var(--success-light) 100%
    );
    --gradient-danger: linear-gradient(
        135deg,
        var(--danger) 0%,
        var(--danger-light) 100%
    );
    --gradient-warning: linear-gradient(
        135deg,
        var(--warning) 0%,
        var(--warning-light) 100%
    );
    --gradient-info: linear-gradient(
        135deg,
        var(--info) 0%,
        var(--info-light) 100%
    );
    /* gradient from light-500 to light-900 */
    --primary-light-gradient: 122deg, var(--primary-light-500),
        var(--primary-light-600), var(--primary-light-700),
        var(--primary-light-800), var(--primary-light-900);

    /* gradient from light 500 to light-100  */
    --primary-light-gradient-reverse: 122deg, var(--primary-light-900),
        var(--primary-light-800), var(--primary-light-700),
        var(--primary-light-600), var(--primary-light-500);

    /* gradient from dark-500 to dark-900 */
    --primary-dark-gradient: 122deg, var(--primary-dark-500),
        var(--primary-dark-900);

    /* gradient from dark 500 to dark-100  */
    --primary-dark-gradient-reverse: 122deg, var(--primary-dark-500),
        var(--primary-dark-400), var(--primary-dark-300),
        var(--primary-dark-200), var(--primary-dark-100);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-base: 1rem;
    --spacing-base-half: 0.5rem;
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;
    --container-max-width: 1200px;

    /* Animation */
    --transition-base: all 0.2s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;

    --color-secondary: var(--primary-100);
    /* --color-accent: #6f7364; Gedempt groen */
    --color-accent: var(--accent-600); /* Gedempt groen */

    --color-text: var(--accent-900); /* Donkergrijs */
    /* --color-background: #f7f5f0; Heel licht warm wit */
    --color-background: var(--primary-100); /* Heel licht warm wit */
    --color-hover: var(--color-hover); /* Donkerder brons */

    --layout-spacing: max(8vh, 3rem);
    --max-width: 70ch;
    --shadow-color: 30deg 100% 10%;
    --shadow-elevation-low: 0.3px 0.4px 0.4px hsl(var(--shadow-color) / 0.59),
        0.4px 0.6px 0.6px -2.1px hsl(var(--shadow-color) / 0.44),
        1.1px 1.6px 1.7px -4.1px hsl(var(--shadow-color) / 0.28);
    --shadow-elevation-medium: 0.3px 0.4px 0.4px hsl(var(--shadow-color) / 0.62),
        0.6px 0.9px 0.9px -1.4px hsl(var(--shadow-color) / 0.5),
        2px 2.9px 3.1px -2.8px hsl(var(--shadow-color) / 0.38),
        5.6px 8.1px 8.6px -4.1px hsl(var(--shadow-color) / 0.25);
    --shadow-elevation-high: 0.3px 0.4px 0.4px hsl(var(--shadow-color) / 0.58),
        0.8px 1.2px 1.3px -0.6px hsl(var(--shadow-color) / 0.52),
        1.7px 2.4px 2.6px -1.2px hsl(var(--shadow-color) / 0.46),
        3.4px 4.9px 5.2px -1.8px hsl(var(--shadow-color) / 0.41),
        6.5px 9.3px 10px -2.4px hsl(var(--shadow-color) / 0.35),
        11.4px 16.4px 17.5px -3px hsl(var(--shadow-color) / 0.29),
        18.6px 26.9px 28.7px -3.6px hsl(var(--shadow-color) / 0.23),
        28.7px 41.4px 44.2px -4.1px hsl(var(--shadow-color) / 0.18);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-mode: "dark";
    }
}

:root[color-scheme="dark"] {
    --primary: #13181f;
    --primary-contrast: #13181f;
    --primary-invert: #cbe0ff;
    --body-bg: #0f172a;
    --body-color: #e2e8f0;
    --heading-color: #f8fafc;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: #1e293b;
    --link-color: #61aeff;
    --progress-color: #2f9e45;
    --input-icon-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--body-color);
    background-color: var(--body-bg);
    /* padding: var(--spacing-base); */
    /* max-width: var(--container-max-width); */
    margin: 0 auto;
    transition: var(--transition-slow);
    animation: colorSchemeTransition 0.5s ease-out;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin-bottom: var(--spacing-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: 2.75rem;
    margin-top: 2rem;
}

h2 {
    font-size: 2.25rem;
    margin-top: 1.75rem;
}

h3 {
    position: relative;
    font-size: 1.75rem;
    margin-top: 1.5rem;
}
h3:after:not(#home h3) {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 0.15rem;
    background: #5555;
    border-radius: var(--border-radius-full);
}

h4 {
    font-size: 1.5rem;
    margin-top: 1.25rem;
}

h5 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

h6 {
    font-size: 1rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* p {
  margin-top: var(--spacing-base-half);
  margin-bottom: var(--spacing-base);
} */

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
}

a:hover:not(a.btn) {
    color: var(--link-hover-color);
}

a:not(nav a):before {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-link);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a:not(nav a):hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a[target="_blank"]:after {
    content: "[+]";
    display: inline-block;
    margin-left: 0.25em;
    font-size: 0.6em;
    font-weight: bold;
    text-decoration: none;
    vertical-align: super;
}

small {
    font-size: 0.875rem;
    opacity: 0.85;
}

code,
pre {
    font-family: var(--font-family-mono);
    border-radius: var(--border-radius);
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.875em;
    background-color: rgba(0, 0, 0, 0.05);
}

:root[color-scheme="dark"] code {
    background-color: rgba(255, 255, 255, 0.1);
}

pre {
    padding: var(--spacing-base);
    margin-bottom: var(--spacing-base);
    overflow-x: auto;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

:root[color-scheme="dark"] pre {
    background-color: rgba(255, 255, 255, 0.05);
}

pre code {
    display: inline-block;
    background-color: transparent;
    min-width: 100%;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--spacing-base);
    margin-bottom: var(--spacing-base);
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-sm);
}

:root[color-scheme="dark"] blockquote {
    background-color: rgba(255, 255, 255, 0.03);
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--border-color),
        transparent
    );
    margin: calc(var(--spacing-base) * 2) 0;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
    margin-block: var(--spacing-base);
}

ul.circle {
    list-style-type: circle;
    padding-left: 1.5rem;
}

ul,
ol {
    margin-bottom: var(--spacing-base);
    padding-left: 1.5rem;
}

li:not(nav li) {
    margin-bottom: calc(var(--spacing-base) * 0.5);
    width: min(100%, 88ch);
    text-wrap: balance;
    text-wrap: pretty;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: var(--spacing-base);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th,
td {
    padding: calc(var(--spacing-base) * 0.75);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

thead {
    background: var(--gradient-secondary);
}

th {
    font-weight: var(--font-weight-bold);
    color: white;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(0, 0, 0, 0.02);
}

:root[color-scheme="dark"] tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Forms */
form {
    background-color: var(--card-bg);
    padding: var(--spacing-base);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-base);
    border: 1px solid var(--border-color);
    width: min(100%, 600px);
}

form > div {
    margin-bottom: var(--spacing-base);
}

input,
select,
textarea,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="color"],
input[type="file"],
input[type="range"],
input[type="checkbox"],
input[type="radio"],
select,
textarea {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing-base);
    padding: calc(var(--spacing-base) * 0.75);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--body-bg);
    color: var(--body-color);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-bottom: 0;
    display: inline-block;
    margin-right: 0.5rem;
}

input[type="color"] {
    padding: 0;
    height: 40px;
    border-radius: unset;
}

input[type="range"] {
    padding: 0;
}

/* Input styling with icons */
input[type="url"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"] {
    padding-left: 2.5rem;
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1rem;
    position: relative;
}

input[type="url"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23989fab' viewBox='0 0 16 16'%3E%3Cpath d='M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z'/%3E%3Cpath d='M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z'/%3E%3C/svg%3E");
}

input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23989fab' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2Zm13 2.383-4.708 2.825L15 11.105V5.383Zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741ZM1 11.105l4.708-2.897L1 5.383v5.722Z'/%3E%3C/svg%3E");
}

input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23989fab' viewBox='0 0 16 16'%3E%3Cpath transform='rotate(-45 8 8)' d='M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8 14 9.5l-1-1-1 1-1-1-1 1-1-1-1 1H6.663a3.5 3.5 0 0 1-3.163 2zM2.5 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
}

input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' stroke='%23989fab' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 5.5C3 14.06 9.94 21 18.5 21c.386 0 .77-.014 1.148-.042.435-.032.653-.048.851-.162a1.06 1.06 0 0 0 .42-.432c.11-.2.121-.418.145-.853l.17-3.072a1.517 1.517 0 0 0-.828-1.536l-2.546-1.273a1.517 1.517 0 0 0-1.784.307l-.89 1.04c-.34.398-.873.54-1.342.353a10.49 10.49 0 0 1-3.27-2.27 10.49 10.49 0 0 1-2.27-3.27 1.25 1.25 0 0 1 .353-1.342l1.04-.89a1.517 1.517 0 0 0 .307-1.784L8.68 3.67A1.517 1.517 0 0 0 7.144 2.84l-3.072.17c-.435.024-.653.036-.853.145a1.06 1.06 0 0 0-.432.42c-.114.198-.13.416-.162.851C3.014 4.73 3 5.114 3 5.5Z'/%3E%3C/svg%3E");
}

input[type="search"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23989fab' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E");
}

/* Ensure text is visible */
input[type="url"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"] {
    color: var(--body-color);
}

input[type="url"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="search"]::placeholder {
    color: var(--body-color);
    opacity: 0.7;
}

input[type="search"] {
    border-radius: var(--border-radius-full);
}

/* Select styling with icon */
select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23364153' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 2rem;
}

:root[color-scheme="dark"] select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23e2e8f0' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: 0 0 0px 3px rgba(102, 118, 201, 0.54);
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: calc(var(--spacing-base) * 0.5);
    font-weight: var(--font-weight-medium);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn,
a.btn {
    display: block;

    vertical-align: middle;
    min-height: 3.1rem;
    min-width: 6.5rem;
    display: inline-block;
    padding: calc(var(--spacing-base) * 0.75) var(--spacing-base);
    margin: 0.125rem 0.125rem 0.125rem 0;
    background: var(--gradient-secondary);
    color: var(--neutral-100);
    border: 1px solid var(--accent-100);
    border-radius: var(--border-radius-md);
    outline: 1px solid transparent;
    outline-offset: 3px;

    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Create the loading spinner using ::after pseudo-element */
button:empty::after {
    content: "";
    position: absolute;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    width: 16px;
    height: 16px;
    border: 3px solid rgb(255, 255, 255);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* a.btn::before {
  display: none;
  content: unset;
} */

/* Pseudo-overlay voor alle knoppen, inclusief <a class="btn"> */
button::after,
input[type="button"]::after,
input[type="reset"]::after,
input[type="submit"]::after,
.btn::after,
a.btn::after {
    /* <-- let op de komma vóór a.btn::after */
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: var(--transition-base);
}

/* Hover/focus overlay-animatie */
button:hover::after,
input[type="button"]:hover::after,
input[type="reset"]:hover::after,
input[type="submit"]:hover::after,
.btn:hover::after,
a.btn:hover::after,
button:focus::after,
input[type="button"]:focus::after,
input[type="reset"]:focus::after,
input[type="submit"]:focus::after,
.btn:focus::after,
a.btn:focus::after {
    background-color: rgba(255, 255, 255, 0.1);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.btn:hover,
a.btn:hover,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
.btn:focus,
a.btn:focus {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
    outline-color: var(--accent-500);
}
/* Active state ook voor .btn en a.btn */
button:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active,
.btn:active,
a.btn:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-sm);
    filter: saturate(0.9) brightness(1.1);
}

button:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
    background: var(--gradient-secondary);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Button Variants */
button.success,
input[type="button"].success,
input[type="submit"].success,
.btn.success {
    background: var(--gradient-success);
}

button.danger,
input[type="button"].danger,
input[type="submit"].danger,
.btn.danger {
    background: var(--gradient-danger);
}

button.warning,
input[type="button"].warning,
input[type="submit"].warning,
.btn.warning {
    background: var(--gradient-warning);
}

button.info,
input[type="button"].info,
input[type="submit"].info,
.btn.info {
    background: var(--gradient-info);
}

button.outline,
input[type="button"].outline,
input[type="submit"].outline,
.btn.outline {
    background: transparent;
    border: 1px solid var(--primary-invert);
    color: var(--primary-invert);
}

button.outline:hover,
input[type="button"].outline:hover,
input[type="submit"].outline:hover,
.btn.outline:hover {
    background-color: var(--primary);
    color: white;
}

button.outline.primary,
input[type="button"].outline.primary,
input[type="submit"].outline.primary,
.btn.outline.primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

button.outline.primary:hover,
input[type="button"].outline.primary:hover,
input[type="submit"].outline.primary:hover,
.btn.outline.primary:hover,
button.outline.primary:focus,
input[type="button"].outline.primary:focus,
input[type="submit"].outline.primary:focus,
.btn.outline.primary:focus {
    background-color: var(--primary);
    color: white;
}

button.outline.secondary,
input[type="button"].outline.secondary,
input[type="submit"].outline.secondary,
.btn.outline.secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

button.outline.secondary:hover,
input[type="button"].outline.secondary:hover,
input[type="submit"].outline.secondary:hover,
.btn.outline.secondary:hover,
button.outline.secondary:focus,
input[type="button"].outline.secondary:focus,
input[type="submit"].outline.secondary:focus,
.btn.outline.secondary:focus {
    background-color: var(--secondary);
    color: white;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    /* border-radius: var(--border-radius-md);
  transition: var(--transition-base);
  box-shadow: var(--shadow); */
}
/* 
img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
} */

figure {
    text-align: center;
    margin-bottom: var(--spacing-base);
}

figcaption {
    font-size: 0.875rem;
    color: var(--secondary);
    text-align: center;
    margin-top: calc(var(--spacing-base) * 0.5);
    font-style: italic;
}

details {
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-base);
}

details summary {
    cursor: pointer;
    position: relative;
    padding: calc(var(--spacing-base) * 0.5);
}

details summary::marker,
details summary::-webkit-details-marker {
    display: block;
    content: "+ ";
    color: inherit;
    font-size: 1.5em;
}

details[open] summary::marker {
    content: "– ";
}

details summary:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
}

details > *:not(summary) {
    cursor: auto;
    margin-top: calc(var(--spacing-base) * 0.5);
}

/* Cards */
article,
aside {
    margin-bottom: calc(var(--spacing-base) * 2);
    padding: var(--spacing-base);
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

/*
article:hover, section:hover, aside:hover {
  box-shadow: var(--shadow-md);
}
*/
/* Utility for focus outline */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Glass effect for special elements */
.glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--body-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

:root[color-scheme="dark"] .glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add a specific text shadow for better readability in light mode */
:root:not([color-scheme="dark"]) .glass {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* body {
      padding: calc(var(--spacing-base) * 0.75);
  } */

    table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    /* Disable gradients and effects for print */
    h1,
    h2:after,
    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"] {
        background: none;
        text-fill-color: #000;
        box-shadow: none;
    }

    article,
    section,
    aside,
    img,
    pre,
    blockquote,
    table {
        box-shadow: none;
    }
}

/* Transitions */
body,
a,
button,
input,
select,
textarea,
th,
td,
code,
pre,
blockquote,
article,
section,
aside {
    transition: background-color 0.3s ease, color 0.3s ease,
        border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Color scheme toggle animation */
@keyframes colorSchemeTransition {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* Progress Bar */
progress {
    appearance: none;
    width: 100%;
    height: 1rem;
    border: none;
    border-radius: var(--border-radius-full);
    background-color: var(--border-color);
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: var(--border-color);
}

progress::-webkit-progress-value {
    background-color: var(--progress-color);
    transition: width 0.3s ease;
}

progress::-moz-progress-bar {
    background-color: var(--progress-color);
    transition: width 0.3s ease;
}

/* Loading Animation for Progress Bar */
@keyframes moveStripe {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}

progress:indeterminate {
    background-image: linear-gradient(
        to right,
        var(--border-color) 0%,
        var(--border-color) 25%,
        var(--progress-color) 25%,
        var(--progress-color) 75%,
        var(--border-color) 75%,
        var(--border-color) 100%
    );
    background-size: 200% 100%;
    animation: moveStripe 2s linear infinite;
}

progress:indeterminate::-moz-progress-bar {
    background-image: linear-gradient(
        to right,
        var(--border-color) 0%,
        var(--border-color) 25%,
        var(--progress-color) 25%,
        var(--progress-color) 75%,
        var(--border-color) 75%,
        var(--border-color) 100%
    );
    background-size: 200% 100%;
    animation: moveStripe 2s linear infinite;
}

/* Webkit specific styles for indeterminate progress */
progress:indeterminate::-webkit-progress-bar {
    background-image: linear-gradient(
        to right,
        var(--border-color) 0%,
        var(--border-color) 25%,
        var(--progress-color) 25%,
        var(--progress-color) 75%,
        var(--border-color) 75%,
        var(--border-color) 100%
    );
    background-size: 200% 100%;
    animation: moveStripe 2s linear infinite;
}
