/* Basis Reset & Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
}

.nav-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     background-color: #e9ecef;
     padding: 10px 20px;
     margin-bottom: 20px;
     box-shadow: none;
}

header h1 {
    margin: 0;
    color: #007bff; /* Blauwe tint zoals phpMyAdmin linkjes */
}

nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
}
nav a:hover {
    text-decoration: underline;
}

/* Formulieren */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type=text],
input[type=date],
input[type=time],
input[type=email],
input[type=password],
input[type=number], /* voor nidus */
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box; /* Voorkomt dat padding de width beïnvloedt */
    font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


textarea {
    min-height: 100px;
    resize: vertical;
}

/* Knoppen */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-report {
    color: #fff;
    background-color: #99c0d2; /* Light Blue (darker) */
    border-color: #99c0d2;
}

.btn-report:hover {
    background-color: #79b8d2; /* Sky Blue (darker) */
    border-color: #79b8d2;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}


/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #e9ecef; /* Lichte header achtergrond */
    font-weight: bold;
}

tbody tr:nth-child(odd) {
    /* background-color: #f8f9fa; */ /* Lichte zebra striping (optioneel) */
}

tbody tr:hover {
    background-color: #f1f1f1;
}

td a {
    margin-right: 10px;
}

/* Specifiek voor sessie formulier */
.session-form-section {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

.energy-block {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa; /* Licht andere achtergrond */
    position: relative; /* Voor positionering verwijder knop */
}

.energy-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap; /* Zorgt dat kolommen onder elkaar springen indien nodig */
    margin-left: -5px; /* Compenseert padding in kolommen */
    margin-right: -5px;
    margin-bottom: 10px;
}

.form-col {
    flex: 1; /* Kolommen nemen gelijke ruimte in */
    padding: 0 5px;
    min-width: 150px; /* Minimale breedte voordat het wrapt */
    margin-bottom: 10px; /* Ruimte onder kolom op mobiel */
}
.form-col label { /* Kleinere margin onder label in kolom */
    margin-bottom: 3px;
    font-size: 0.9em;
}


.infections-block {
    margin-top: 15px;
    margin-left: 20px; /* Inspringen */
    padding-top: 10px;
    border-top: 1px dashed #ced4da; /* Scheidingslijn */
}
.infections-block h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #495057;
}


.infection-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #e9ecef; /* Iets andere achtergrond voor infecties */
    border-radius: 4px;
    position: relative;
}
.infection-row .form-col {
    flex: 1;
    min-width: 120px;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    font-size: 0.8em;
    line-height: 1;
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}
.remove-btn:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.add-infection-btn, .add-energy-btn {
    margin-top: 10px;
}


/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px 0;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}
footer .container {
    background: none;
    box-shadow: none;
    padding: 0;
}


/* Login Pagina */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #007bff;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
