/* Algemene stijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4; /* Lichtgrijs */
    color: #333; /* Donkergrijs voor tekst */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


.container {
    background-color: #ffffff; /* Wit */
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtiele schaduw */
    border-radius: 5px;
}


/* Koppen */
h1, h2, h3 {
    color: #333333; /* Donkergrijs */
}

a {
    color: #007bff; /* Blauw */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Algemene knopstijl */
.button-bewerken, .button-herstellen, .button-verwijderen {
    display: inline-block;
    background-color: #007BFF; /* Blauwe kleur voor Bewerken */
    color: white;
    padding: 6px 6px;
    text-decoration: none;
    border-radius: 4px;
     border: 1px solid #0056b3;
    font-size: 14px;
    text-align: center;
}

/* Rode kleur voor de verwijderknop */
.button-verwijderen {
    background-color: #DC3545;
    border: 1px solid #a71d2a;
    color: white;
    padding: 6px 6px;
    text-decoration: none;
    border-radius: 4px; /* Zorgt voor ronde hoeken */
    font-size: 14px;
    text-align: center;
}

/* Ruimte onder nieuw-documentknop */
.export-buttons {
    margin-bottom: 10px; /* Extra ruimte tussen de knop en de tabel */
}


/* Blauwe "Opslaan" knop */
button[type="submit"] {
    background-color: #007BFF;
    color: white;
}

/* Grijze "Annuleren" knop */
.button {
    background-color: #6c757d;
    color: white;
}

/* Hover-effect voor alle knoppen */
.button-bewerken:hover, .button-herstellen:hover, .button-verwijderen:hover {
    opacity: 0.8;
}

/* Hover effect voor knoppen */
button[type="submit"]:hover {
    background-color: #0056b3;
}

.button:hover {
    background-color: #5a6268;
}

/* Knoppen */
.button-container {
    margin-top: 10px; /* Extra ruimte tussen de knoppen en de tabel */
    display: flex;
    gap: 10px;
}

.button-container .button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.button {
    display: inline-block;
/*    margin-bottom: 12px; /* Extra ruimte tussen de knop en de tabel */
    padding: 8px 12px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    border: none;
    text-align: center;
    font-size: 14px;
    height: auto; /* Zorgt ervoor dat de knoppen de juiste hoogte krijgen */
    line-height: normal;
/*    margin: 2px 5px; /* Houdt de marges consistent */
    vertical-align: middle; /* Zorgt voor verticale uitlijning */
}

.button:hover {
    background-color: #0056b3;
}

/* Specifieke knoppen */
.button-delete {
    background-color: #dc3545;
}

.button-delete:hover {
    background-color: #bd2130;
}

.button-restore {
    background-color: #28a745;
}

.button-restore:hover {
    background-color: #218838;
}

.button-danger {
    background: #dc3545;
}

.button-danger:hover {
    background: #a71d2a;
}

.button-bewerken, .button-herstellen {
    width: auto; /* Zorgt ervoor dat de knop zich aanpast aan de tekst */
    min-width: 80px; /* Niet te smal */
}

/* Formulieren */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Maak tabellen scrollbaar op mobiel */
.table-container {
    overflow-x: auto;
}

/* Stijl voor tabellen */
table {
    width: auto; /* Alleen zo breed als nodig */
    max-width: 100%; /* Voorkomt dat de tabel buiten het scherm loopt */
    border-collapse: collapse;
    margin: 0 auto; /* Centreert de tabel zonder extra ruimte aan de rechterkant */
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: nowrap; /* Voorkomt dat teksten afgebroken worden */
/*    white-space: nowrap; /* Voorkomt dat teksten afgebroken worden */
}

th {
    text-align: left;
    background-color: #007bff;
    color: white;
    font-weight: bold;
}


/* Centreer "Acties"-kolom tekst */
th.test, td.test {
    text-align: center;
}

th:first-child, td:first-child {
    width: auto !important; /* Zorgt ervoor dat de eerste kolom zich aanpast aan de inhoud */
    min-width: 100px; /* Voorkomt dat de eerste kolom te klein wordt */
}

th a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px;
    display: inline-block;
}

th a:hover {
    color: #ffcc00; /* Geel bij hover voor extra duidelijkheid */
    text-decoration: underline;
}

th a.active {
    color: #ffcc00; /* Actieve sorteerbare kolom krijgt een andere kleur */
}

/* Zorg dat de "Acties"-kolom genoeg ruimte krijgt */
th.acties, td.acties {
    width: 390px; /* Kleinere vaste breedte voor actieknoppen */
    min-width: 370px; /* Voorkomt onnodige uitrekking */
    white-space: nowrap;
    text-align: center;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

td {
    width: 70%; /* Zorgt ervoor dat de rechter kolom beter aansluit */
    word-break: break-word;
}

.td-acties {
    display: flex; /* Zet de knoppen op één rij */
    justify-content: center; /* Centreer de knoppen in de kolom */
    gap: 8px; /* Voeg ruimte toe tussen de knoppen */
}

.td-acties a {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    white-space: nowrap; /* Voorkomt dat de tekst afbreekt */
    text-align: center;
}

.details-table {
    width: auto;
    max-width: 800px; /* Beperkt de breedte */
    margin-left: 0; /* Zorgt ervoor dat de tabel links staat */
}

.details-table th {
    width: 30%; /* Houdt de linkerkolom compact */
    min-width: 150px;
    text-align: left;
}

.details-table td {
    width: 70%;
    word-break: break-word;
}


/* Verbeterde weergave op kleinere schermen */
@media (max-width: 768px) {
    th, td {
        font-size: 14px;
        padding: 8px;
    }
}

/* Responsiviteit */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }

    .container {
        padding: 15px;
    }
}

/* Responsive styling voor mobiele weergave */
@media (max-width: 768px) {
    .button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .navbar a {
        display: block;
        margin: 10px 0;
    }
    .container {
        padding: 10px;
    }
}

/* Stijl voor de dropdown-menu */

.navbar {
    display: flex;
    justify-content: space-between; /* Zorgt ervoor dat de menu-knop links staat en de tekst rechts */
    align-items: center;
    padding: 10px;
    background-color: #007bff;
    color: white;
}

.navbar a {
    color: #007bff; /* Blauwe links */
    text-decoration: none;
    margin: 0 15px;
}
.navbar a:hover {
    text-decoration: underline;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-footer {
    font-size: 14px;
    white-space: nowrap;
}

.logout-link {
    color: #ffff00 !important; /* Standaard gele kleur */
    text-decoration: none;
    font-weight: bold;
}

.logout-link:hover {
    text-decoration: underline;
    color: #ff9900 !important; /* Behoud de oude hover-kleur */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.form-container {
    display: flex;
    justify-content: space-between;
}

.form-left, .form-right {
    width: 48%;
}

.form-left input,
.form-left select,
.form-left textarea {
    width: 100%; /* Zorgt ervoor dat inputvelden de volledige breedte van hun container gebruiken */
    max-width: 100%; /* Voorkomt dat velden groter worden dan de container */
    box-sizing: border-box; /* Voorkomt overloop buiten container */
}

.form-right label {
    display: block;
    margin-bottom: 10px;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search-container input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 14px;
}

.search-container button {
    padding: 8px 12px;
    font-size: 14px;
    height: auto;
    line-height: normal;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    pointer-events: none;
}
