/* Algemene reset en basisstijlen */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    color: #343a40;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* De hoofd-wrapper voor de GRID lay-out (nu 2 kolommen: sidebar + main) */
.page-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    padding: 20px;
    box-sizing: border-box;
}

/* Stijlen voor de zijbalk (links) - originele kleur lightcoral */
.sidebar {
    background-color: lightcoral;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-self: start;
    box-sizing: border-box;
}

.sidebar-content {
    width: 100%;
}

.sidebar h3 {
    color: #007bff;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    color: #0056b3;
}

/* Knoppenblok in sidebar */
.import-export-buttons {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-btn {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.sidebar-btn:hover {
    background-color: #218838;
}

#helpBtn {
    background-color: #17a2b8;
}
#helpBtn:hover {
    background-color: #138496;
}

/* Media Query: verberg zijbalk op kleinere schermen (optioneel) */
@media (max-width: 800px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sidebar {
        position: static;
    }
}

/* Hoofdinhoud applicatie container - originele kleur lightblue */
.app-container {
    background-color: lightblue;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border: 2px solid #007bff;
}

h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

h2 {
    color: #007bff;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.danger-button {
    background-color: #dc3545;
    margin-left: 15px;
}
.danger-button:hover {
    background-color: #c82333;
}

.select-series-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#activeSeries {
    flex-grow: 1;
    min-width: 180px;
}

.series-stats {
    margin-top: 25px;
    padding: 15px;
    background-color: #e9f5ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    color: #004085;
    font-size: 0.95em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

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

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: #fefefe;
}
tbody tr:hover {
    background-color: #eaf6ff;
}

/* Statuskleuren */
.status-goed { background-color: #d4edda; color: #155724; }
.status-fout { background-color: #f8d7da; color: #721c24; }
.status-blanco { background-color: #fff3cd; color: #856404; }
.status-nog-niet-gezien { background-color: #e2e3e5; color: #495057; }

.delete-row-btn {
    background-color: #dc3545;
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 4px;
}
.delete-row-btn:hover {
    background-color: #c82333;
}

/* HTML5 Dialog styling - aangepast voor scroll naar boven */
dialog {
    border: none;
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 5vh auto auto; /* top margin 5vh, auto left/right */
}
dialog::backdrop {
    background-color: rgba(0,0,0,0.5);
}
.manual-text h3 {
    color: #0056b3;
    margin-top: 16px;
}
.manual-text p {
    margin: 8px 0;
}
.close-dialog {
    margin-top: 20px;
    background-color: #6c757d;
}
.close-dialog:hover {
    background-color: #5a6268;
}
