/* Algemene styling */
body {
    background-color: #ffffff; /* Witte achtergrondkleur voor een heldere basis */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigatiebalk */
.navbar {
    background-color: #769FD3;
}

.navbar .navbar-brand, 
.navbar .nav-link {
    color: #ffffff;
    font-weight: bold;
}

.navbar .nav-link:hover {
    color: #5A83B0;
    text-decoration: underline;
}

/* Modal styling */
.modal-content {
    background-color: #ffffff !important;
    color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    opacity: 1 !important;
    filter: none !important;
}

/* Centrale Pop-up meldingen */
.center-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background-color: #28a745 !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 1rem;
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.center-toast.error {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Knoppen */
.btn-primary {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #003f88 !important;
    border-color: #003f88 !important;
}

.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Close-knop in modals */
.modal .btn-close {
    background-color: transparent !important;
    color: #000000 !important;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 1 !important;
}

.modal .btn-close:hover {
    background-color: #f8d7da !important;
    color: #c82333 !important;
}

/* Modal-backdrop (overlay) */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

/* KPI Card Styling */
.kpi-card {
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Lay-out aanpassingen voor responsiviteit */
.row.gx-2.gy-3 {
    display: flex;
    flex-wrap: wrap;
}

.col-6, .col-sm-6, .col-md-4, .col-lg-3 {
    flex: 0 0 auto;
    max-width: 25%;
    padding: 8px;
}

@media (max-width: 768px) {
    .col-md-4 {
        max-width: 33.333%;
    }
}

@media (max-width: 576px) {
    .col-6 {
        max-width: 50%;
    }
}

/* Extra styling voor subdropdowns */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
    z-index: 1000;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

/* Footer styling */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}

footer a {
    text-decoration: none;
    color: #007bff;
}

footer a:hover {
    text-decoration: underline;
}
