/* 1. Algemene basisinstellingen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8;
    /* Frisse, lichtgrijze/blauwe achtergrond */
    color: #1e293b;
    /* Donkergrijze tekst voor optimale leesbaarheid */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 2. De hoofdcontainer */
.container {
    background-color: #ffffff;
    /* Volledig wit paneel */
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.08);
    /* Zachte, moderne schaduw */
    border: 1px solid #e2e8f0;
    /* Subtiele rand */
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #1d4ed8;
    /* Sportief helderblauw */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

h3 {
    font-size: 15px;
    margin-top: 15px;
    color: #475569;
}

/* 3. Styling voor het Formulier */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: flex;
    justify-content: space-between;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 600;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    background-color: #f8fafc;
    /* Heel lichtblauwe/grijze inputvelden */
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: #3b82f6;
    /* Licht op in het blauw bij selectie */
    outline: none;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    background-color: #ffffff;
}

/* 4. Knoppen styling */
button {
    width: 100%;
    padding: 14px;
    background-color: #1d4ed8;
    /* Donkerblauw */
    color: #ffffff;
    /* Witte tekst */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #1e40af;
    /* Iets donkerder blauw bij hover */
}

button:active {
    transform: scale(0.98);
}

.btn-secundair {
    background-color: #f1f5f9;
    color: #1d4ed8;
    border: 2px solid #bfdbfe;
    margin-top: 5px;
    margin-bottom: 25px;
}

.btn-secundair:hover {
    background-color: #dbeafe;
}

/* Knop om een oefening uit het actieve concept-schema te gooien */
.btn-verwijder-training {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    text-transform: none;
}

.btn-verwijder-training:hover {
    background-color: #fca5a5;
    color: #b91c1c;
}

/* Knop om een oefening uit de grote database te wissen */
.btn-verwijder {
    width: auto;
    padding: 3px 8px;
    background-color: transparent;
    color: #ef4444;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.btn-verwijder:hover {
    background-color: #fee2e2;
    border-radius: 4px;
}

/* 5. Styling voor de trainingslijsten */
#trainings-resultaat ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#trainings-resultaat li {
    background-color: #f8fafc;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    /* Blauwe indicator aan de linkerkant */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.rating-badge {
    background-color: #eff6ff;
    color: #1d4ed8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #bfdbfe;
}

.totaal-tijd {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    color: #1d4ed8;
    font-size: 16px;
}

/* De lijst van de totale database onderaan */
.db-lijst {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    /* Voegt scrollbalk toe als de lijst lang is */
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
    background-color: #f8fafc;
}

.db-lijst li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
}

.db-lijst li:last-child {
    border-bottom: none;
}