    :root {
        --main-bg: #f0f4fa;
        --card-bg: white;
        --text-color: #333;
        --menu-text-color: #666;
        --primary-color: #4a90e2;
        --secondary-color: #007bff;
        --border-color: #ccc;
        --border-color-light: #ddd;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --overlay-bg: rgba(0, 0, 0, 0.7);
        --pagination-active-bg: #003399;
        --pagination-bg: #f9f9f9;
        --button-essential-bg: #ccc;
        --sidebar-bg: #007bff;
        --sidebar-text: white;
        --sidebar-border: rgba(255, 255, 255, 0.5);
        --sidebar-hover: rgba(255, 255, 255, 0.2);
        --menu-icon-filter: invert(0);
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --main-bg: #121212;
            --card-bg: #1e1e1e;
            --text-color: #e0e0e0;
            --menu-text-color: #bbb;
            --primary-color: #4a90e2;
            --secondary-color: #58a6ff;
            --border-color: #444;
            --border-color-light: #333;
            --shadow-color: rgba(0, 0, 0, 0.4);
            --overlay-bg: rgba(0, 0, 0, 0.8);
            --pagination-active-bg: #4a90e2;
            --pagination-bg: #2a2a3e;
            --button-essential-bg: #555;
            --sidebar-bg: #1e3a5f;
            --sidebar-text: #e0e0e0;
            --sidebar-border: rgba(224, 224, 224, 0.3);
            --sidebar-hover: rgba(224, 224, 224, 0.1);
            --menu-icon-filter: invert(1);
        }
    }

    /* AANGEPAST: Alle stijlen gebruiken nu de variabelen */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Roboto', sans-serif;
        background-color: var(--main-bg);
        color: var(--text-color);
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        margin-bottom: 20px;
    }

    .logo {
        margin-top: 10px;
    }

    .logo-img {
        width: 250px;
    }

    .line, .linec, .linec2 {
        border-top: 2px solid var(--primary-color);
    }

    .line {
        margin: 15px 0;
    }
    
    .linec {
        margin-bottom: 15px;
    }

    .linec2 {
        margin-top: 10px;
    }

    .menu {
        text-align: center;
    }

    .menu-item {
        display: inline-block;
        margin: 0 20px;
        color: var(--menu-text-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 18px;
        padding-bottom: 5px;
        border-bottom: none;
        position: relative;
        transition: color 0.3s ease;
    }
    
    .menu-item.active {
        color: var(--primary-color);
        border-bottom: 0px solid var(--primary-color);
    }

    .menu-item:hover {
        color: var(--primary-color);
    }

    .menu-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0%;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .menu-item:hover::after,
    .menu-item.active::after {
        width: 100%;
    }
.custom-alert {
    position: fixed; /* Blijft op dezelfde plek, ook bij scrollen */
    top: 20px; /* Een beetje ruimte vanaf de bovenkant */
    left: 50%;
    transform: translate(-50%, -150px); /* Beginpositie buiten het scherm & horizontaal centreren */
    background: linear-gradient(135deg, #2c3e50, #34495e); /* Donkere, stijlvolle gradient */
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000; /* Zorgt dat het bovenop andere elementen staat */
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    max-width: 90%;
    min-width: 300px;
    text-align: center;
}

/* De 'show'-klasse maakt de alert zichtbaar met een leuke animatie */
.custom-alert.show {
    transform: translate(-50%, 0); /* Eindpositie in het scherm */
    opacity: 1;
}

.alert-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling voor verschillende types alerts */
.custom-alert.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60); /* Groen voor succes */
}

.custom-alert.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* Rood voor fouten */
}

/* Laadicoon animatie */
.custom-alert.loading .alert-icon {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Iconen voor succes en error (met pure CSS) */
.custom-alert.success .alert-icon::before {
    content: '✔';
    font-size: 20px;
}

.custom-alert.error .alert-icon::before {
    content: '✖';
    font-size: 20px;
}
    .search-bar {
        margin-top: 10px;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    #search {
        padding: 10px;
        border: 1px solid var(--border-color);
        background-color: var(--card-bg);
        color: var(--text-color);
        border-radius: 25px;
        width: 300px;
        font-size: 16px;
        outline: none;
    }

    .sabers-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .saber-card {
        background-color: var(--card-bg);
        border-radius: 10px;
        box-shadow: 0 2px 5px var(--shadow-color);
        overflow: hidden;
        text-align: center;
        position: relative;
        transition: transform 0.3s ease-in-out;
    }

    .saber-card img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        position: relative;
        transition: filter 0.3s ease-in-out;
    }

.saber-card-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    background-color: var(--main-bg);
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.saber-card-buttons a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 18px; 
}

    .saber-card:hover {
        transform: scale(1.05);
    }

    .saber-card-img-container {
        position: relative;
        overflow: hidden;
    }

    .saber-overlay {
        position: absolute;
        top: -100%;
        left: 0;
        width: 100%;
        height: 35%;
        background: var(--overlay-bg);
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: top 0.3s ease-in-out;
        padding: 10px;
        text-align: center;
    }

    .saber-card-img-container:hover .saber-overlay {
        top: 0;
    }

    .saber-name {
        font-size: 18px;
        font-weight: bold;
    }

    .saber-id {
        font-size: 16px;
        color: var(--secondary-color);
        font-weight: bold;
        margin-top: 5px;
    }

    .saber-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin-top: 10px;
    }

    .saber-tag {
        background: var(--primary-color);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 14px;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 30px 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .pagination a,
    .pagination span {
        padding: 10px 16px;
        border-radius: 10px;
        border: 1px solid var(--border-color-light);
        text-decoration: none;
        color: var(--text-color);
        background-color: var(--pagination-bg);
        transition: all 0.2s ease-in-out;
        font-weight: 500;
        box-shadow: 0 1px 3px var(--shadow-color);
    }

    .pagination a:hover {
        background-color: var(--secondary-color);
        color: #fff;
        border-color: var(--secondary-color);
        transform: scale(1.05);
    }

    .pagination a.active {
        background-color: var(--pagination-active-bg);
        color: #fff;
        border-color: var(--pagination-active-bg);
        font-weight: bold;
    }

    .pagination span {
        pointer-events: none;
        color: #aaa;
        border: none;
        background: transparent;
    }

    .cookie-popup {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--card-bg);
        color: var(--text-color);
        padding: 15px;
        box-shadow: 0px 4px 6px var(--shadow-color);
        border-radius: 5px;
        text-align: center;
        transition: transform 0.5s ease-out, opacity 0.5s ease-out;
        z-index: 9999;
    }

    .cookie-popup a {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .cookie-popup a:hover {
        text-decoration: underline;
    }

    .cookie-popup button {
        margin: 10px 5px 0;
        padding: 8px 12px;
        border: none;
        cursor: pointer;
    }

    .blue-button {
        background-color: var(--secondary-color);
        color: white;
        border-radius: 4px;
    }

    #accept-essential {
        background-color: var(--button-essential-bg);
        border-radius: 4px;
    }

    .hidden {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px; 
        width: 250px;
        height: 100%;
        background-color: var(--sidebar-bg); 
        color: var(--sidebar-text);
        padding: 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }
    
    .sidebar-bottom {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        width: 100%;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        cursor: pointer;
        color: var(--sidebar-text);
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin-top: 50px;
    }

    .sidebar ul li {
        padding: 15px 20px;
        font-size: 18px;
        cursor: pointer;
        border-bottom: 1px solid var(--sidebar-border);
        transition: background 0.3s;
    }

    .sidebar ul li:last-child {
        border-bottom: none;
    }

    .sidebar ul li a {
        color: var(--sidebar-text);
        text-decoration: none;
        display: block;
    }

    .sidebar ul li:hover {
        background: var(--sidebar-hover);
    }

    .open-sidebar-btn {
        position: fixed;
        top: 10px;
        right: 20px;
        width: 40px; 
        height: 40px;
        cursor: pointer;
        border: none;
        background: none;
        padding: 0;
        z-index: 1100;
    }

    .open-sidebar-btn img {
        width: 100%;
        height: auto;
        filter: var(--menu-icon-filter);
    }

    .open-sidebar-btn:hover {
        opacity: 0.8;
    }

    @media (max-width: 768px) {
        .sabers-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .sabers-grid {
            grid-template-columns: 1fr;
        }
    }