﻿/* ============================================
   🌤️  ALGEMENE OPMAAK
   ============================================ */

body {
    background-color: #f8f9fa; /* zachte lichtgrijze achtergrond */
    color: #212529;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ============================================
   🧭 NAVBAR
   ============================================ */

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar {
    transition: background-color 0.2s ease;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #0d6efd;
    }

/* ============================================
   🪟 MODALS
   ============================================ */

.modal-content {
    background-color: #ffffff;
    color: #212529;
    border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f9fafb;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f9fafb;
}

.modal-backdrop.show {
    background-color: rgba(255, 255, 255, 0.6); /* lichte transparante overlay */
}

/* ============================================
   📊 TABELLEN & DATATABLES
   ============================================ */

.table {
    background-color: #ffffff;
    border-collapse: collapse;
}

    .table th {
        background-color: #f2f4f7;
        color: #333;
        font-weight: 600;
        vertical-align: middle;
    }

    .table td {
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background-color: #f6f8fa;
}

/* DataTables paginator styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    margin: 0 2px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #0d6efd;
        color: #fff !important;
        border: 1px solid #0d6efd;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #0b5ed7;
        color: #fff !important;
    }

/* ============================================
   🔘 FORM ELEMENTEN
   ============================================ */

.form-control,
.form-select {
    border-radius: 0.375rem;
    border-color: #ced4da;
}

    .form-control:focus,
    .form-select:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
        border-color: #0d6efd;
    }

/* ============================================
   🧱 KNOPPEN
   ============================================ */

.btn {
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn-secondary:hover {
        background-color: #5c636a;
        border-color: #565e64;
    }

/* ============================================
   🩶 FOOTER (altijd licht)
   ============================================ */

footer {
    background-color: #ffffff !important; /* altijd wit */
    color: #212529 !important; /* donkere tekst */
    border-top: 1px solid #dee2e6;
    text-align: center;
    padding: 1rem 0;
}

    footer a {
        color: #0d6efd;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }


/* ============================================
   🌙 DARK MODE OPTIONEEL (automatisch)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* force light */
    body,
    .modal-content,
    .table,
    .table th,
    footer {
        background-color: #fff !important;
        color: #212529 !important;
    }
}

