﻿/* Specifieke submenu-aanpassingen */
.dropdown-menu {
    display: none; /* Standaard verborgen */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #F28C3B;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-submenu {
    position: relative;
}

/* Verwijderde dubbele Bootstrap caret en gebruik consistentie */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: white !important;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

    .dropdown-item:hover {
        background-color: #F2B33D !important;
        color: white !important;
    }

/* Zorg ervoor dat submenu's zichtbaar worden bij hover */
.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Submenu's worden zichtbaar bij hover */
}

/* Actieve of geopende dropdown */
.dropdown-toggle.active,
.dropdown-toggle:focus,
.dropdown-toggle:hover {
    background-color: #F2B33D !important;
    color: white !important;
}

/* Stijlen voor kleine schermen */
@media (max-width: 767.98px) {
    .dropdown-menu {
        position: static;
        display: none;
    }

    .dropdown-submenu > .dropdown-menu {
        display: none;
        margin-left: 0;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
}

/* Stijlen voor grotere schermen */
@media (min-width: 768px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Overige stijlen */
ul.nav a:hover {
    background-color: #A4BEBF !important;
    color: white;
}

.homebutton:hover {
    background-color: #A4BEBF !important;
    color: white;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
    background-color: #508CBF !important;
    width: 150px !important;
}

.navbar-collapse {
    background: #2B4D4E;
}

.table > tbody > tr:nth-child(odd) > td {
    background-color: #E7E7FF !important;
}



th {
    background-color: white !important;
    color: black !important;
}

table {
    border-collapse: collapse;
}

    table th, table td {
        border: none !important;
    }

.navbar-toggler {
    margin: 0 auto;
}

/* Styling voor parent dropdown toggle (level 0 en level 1) */
.dropdown-toggle.active,
.dropdown-toggle:focus,
.dropdown-toggle:hover {
    background-color: #A4BEBF !important;
    color: white !important;
}

/* Hover effects voor de hoofdmenu's */
.dropdown-menu {
    background-color: #A4BEBF;
}

.dropdown-item {
    color: white;
}

#alertContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    max-width: 400px;
    text-align: center;
}

.alert {
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-spacing {
    margin-left: 110px; /* Adds margin on larger screens */
}

/* Remove margin-left for small screens */
@media (max-width: 767.98px) {
    .logo-spacing {
        margin-left: 0; /* No margin on smaller screens */
    }
}
