/* Extra styling voor navigatie, account en de oefeningen-pagina.
   Wordt NA style.css geladen. */

/* Navigatiebalk */
.navbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}

.navbar a:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.navbar a.actief {
    background-color: #1d4ed8;
    color: #ffffff;
}

.nav-spacer {
    flex: 1;
}

/* Brede container voor de database-pagina */
.container-breed {
    max-width: 900px;
}

body.pagina-boven {
    align-items: flex-start;
}

/* Meldingen */
.melding {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    display: none;
}

.melding.fout {
    display: block;
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.melding.ok {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.info-blok {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.klein-tekst {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Tabs op de account-pagina */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tabs button {
    width: auto;
    flex: 1;
    background-color: #f1f5f9;
    color: #1d4ed8;
    border: 2px solid #bfdbfe;
}

.tabs button.actief {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.btn-grijs {
    background-color: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e1;
}

.btn-grijs:hover {
    background-color: #e2e8f0;
}

/* Oefeningen-pagina */
.filter-rij {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.filter-rij .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

.oef-kaart {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.oef-kaart.eigen {
    border-left-color: #16a34a;
}

.oef-kop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
}

.tag.groen {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.oef-uitleg {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
}

.score-rij {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.score-rij label {
    margin-bottom: 0;
    font-size: 13px;
}

.score-rij input[type="number"] {
    width: 80px;
    padding: 8px;
    margin-top: 4px;
    font-size: 15px;
}

.score-rij .btn-verwijder-training {
    margin-left: auto;
}

.form-raster {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

textarea {
    width: 100%;
    padding: 12px;
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 15px;
    min-height: 90px;
    resize: vertical;
}

textarea:focus {
    border-color: #3b82f6;
    outline: none;
    background-color: #ffffff;
}

input[type="password"],
input.ww-veld,
input[type="email"] {
    width: 100%;
    padding: 12px;
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 16px;
}

input[type="password"]:focus,
input.ww-veld:focus,
input[type="email"]:focus {
    border-color: #3b82f6;
    outline: none;
    background-color: #ffffff;
}

.ww-wrap {
    position: relative;
}

.ww-wrap input {
    padding-right: 84px;
}

.ww-toon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 13px;
    background: transparent;
    color: #2563eb;
    border: none;
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #166534;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.zichtbaar {
    opacity: 1;
}

/* ---- Toegevoegd voor de Supabase-versie ---- */

.toast.fout {
    background-color: #b91c1c;
}

/* Knop die eruitziet als een link */
.link-knop {
    width: auto;
    padding: 0;
    background: none;
    border: none;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: underline;
}

.link-knop:hover {
    background: none;
    color: #1e40af;
}

/* Vinkje met tekst ernaast */
.checkbox-rij {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-rij input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-rij label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
}

/* Gevaarlijke acties (account verwijderen) */
.gevaar-blok {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 2px solid #fee2e2;
}

.btn-gevaar {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 2px solid #fca5a5;
}

.btn-gevaar:hover {
    background-color: #fca5a5;
    color: #7f1d1d;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voetlink {
    margin-top: 25px;
    text-align: center;
}

/* Tekstpagina's (privacyverklaring) */
.tekstpagina p,
.tekstpagina li {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 10px;
}

.tekstpagina ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

/* ---- Toegevoegd voor meerdere categorieën ---- */

/* Keuzevakjes voor de categorieën in de generator */
.categorie-keuze {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.categorie-keuze label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px;
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.categorie-keuze label:has(input:checked) {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.categorie-keuze input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Kleine regel met scores per categorie onder een oefening */
.mini {
    color: #475569;
    font-size: 12px;
}

/* Zeven scorevelden per oefening: iets smaller */
.score-rij input[type="number"] {
    width: 64px;
}