/* ========== Algemene basisstijl voor de hele pagina ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fa;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

/* Container beperkt de breedte en centreert inhoud */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5em;
}
/* Kleine box onder Title */
  #result-container.has-result .content {
    display: block !important;
  }

  .info-box {
    background-color: #f9f9f9;
    border-left: 4px solid #2c3e50;
    padding: 1em;
    margin-bottom: 1.5em;
    color: #333;
    font-size: 1rem;
    max-width: 800px;
    border-radius: 8px; /* afgeronde hoeken */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .info-box p {
    margin: 0;
  }

/* ========== Header en Navigatie ========== */
header {
    background-color: #2c3e50;
    padding: 1em 0;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
    border-radius: 0 0 20px 20px;
    border-bottom: 2px solid #ffffff;
}

/* Navigatiebalk */
nav {
    display: flex;
    justify-content: center;
    gap: 3em;
}

/* Navigatielinks */
nav a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #8dc6ff;
    text-decoration: underline;
}

/* ========== Titels ========== */
h1 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #34495e;
    font-weight: 700;
}

/* ========== Formulieren ========== */
form {
    background-color: #ffffff;
    padding: 2em;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Inputvelden en textarea's */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.75em 1em;
    margin-bottom: 1em;
    font-size: 1em;
    border: 1.8px solid #ccc;
    border-radius: 15px;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

/* Focus op inputvelden */
input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 8px #8dc6ff;
}

/* Knop styling */
button {
    background-color: #3498db;
    color: #fff;
    padding: 0.85em 2em;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(52, 152, 219, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #2980b9;
    box-shadow: 0 8px 14px rgba(41, 128, 185, 0.5);
}

/* ========== Resultaatweergave ========== */
.result {
    background-color: #ffffff;
    margin-top: 2em;
    padding: 1.8em 2em;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    font-size: 1em;
    color: #2c3e50;
    line-height: 1.5;
}

.result h2 {
    margin-top: 0;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1em;
}

.result p {
    margin: 0.6em 0;
}

/* ========== Foutmelding ========== */
.error {
    background-color: #e74c3c;
    color: white;
    padding: 1em;
    border-radius: 15px;
    margin-top: 1em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

/* ========== Status-labels (valid/invalid) ========== */
.valid-status {
    font-weight: 700;
    padding: 0.3em 0.6em;
    border-radius: 15px;
    display: inline-block;
    color: #ffffff;
    font-size: 0.95em;
    margin-left: 0.5em;
}

.valid-status.valid {
    background-color: #27ae60;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.6);
}

.valid-status.invalid {
    background-color: #c0392b;
    box-shadow: 0 3px 10px rgba(192, 57, 43, 0.6);
}

.valid-status.warning {
    background-color: #e67e22;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.6);
}

/* ========== Footer ========== */
footer {
    text-align: center;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1em 0;
    margin-top: auto;
    border-radius: 20px 20px 0 0;
    border-top: 4px solid #ffffff;  /* dunne felle witte lijn onderaan */
    white-space: nowrap;
}

/* Flex layout om footer onderaan te duwen */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

/* ========== Achtergrond animatie ========== */
body {
    background: linear-gradient(135deg, #e0f7fa, #e8eaf6, #fce4ec);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glaseffect voor resultaten en forms */
.result, form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ========== Hall of Fame lijst ========== */
.hall-of-fame-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1em;
}

.hall-of-fame-list li {
    background-color: #3498db;
    color: white;
    margin: 0.5em 0;
    padding: 0.8em 1em;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
}

/* ========== Collapsibles / Uitklapbare secties ========== */
.collapsible {
    background-color: #3c678fd2;
    color: white;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    outline: none;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.collapsible:hover {
    background-color: #2980b9;
}

.collapsible.active {
    background-color: #3c678fd2;
}

/* Inhoud van collapsibles */
.content {
    padding: 10px 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
    border-left: 3px solid #1abc9c;
    margin-bottom: 10px;
    border-radius: 4px;
}

.content.valid {
    border-left: 3px solid #2ecc71;
    background-color: #eafaf1;
}

.content.invalid {
    border-left: 3px solid #e74c3c;
    background-color: #fdecea;
}

#result-container.has-result .content {
    display: block !important;
}

/* ========== FAQ sectie ========== */
.faq-container {
    max-height: 90vh;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h2 {
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 1.3rem;
    color: #222;
}

.faq-item p {
    line-height: 1.5;
    font-size: 1rem;
    color: #444;
}

/* ========== Responsive Styling ========== */
@media (max-width: 400px) {
    .container {
        padding: 0.4rem 0.70rem;
    }

    header, footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    h1 {
        text-align: center;
        margin-bottom: 2.0em;
        color: #34495e;
        font-weight: 450;
        width: 100%;
        font-size: 26px;
    }

    nav {
        width: 90%;
        margin-left: -0.8rem;
        margin-top: 0.2rem;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    nav a {
        font-size: 1.0rem;
        padding: 0.2rem 0;
        margin-right: 5px;
    }

    .tool, .content {
        width: 100%;
    }

    button, input {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
        box-sizing: border-box;
    }

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

/* Footer */

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;                  
    -webkit-overflow-scrolling: touch; 
    gap: 0.3rem;
    width: 100%;
    padding: 0.2rem 0;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;                  /* horizontaal scrollen indien nodig */
    -webkit-overflow-scrolling: touch; 
    gap: 0.10rem;                      /* kleine ruimte tussen knoppen */
    padding: 0.2rem 0;
    margin: 0;
    position: relative;                 /* referentie voor dropdown */
}
.container {
    width: 100%;            /* altijd 100% van de viewport */
    max-width: 95vw;       /* nooit breder dan scherm */
    box-sizing: border-box;
    padding: 0.2rem 0.5rem; /* compacte padding */
    overflow-x: visible;    /* laat dropdowns uitsteken */
}
.nav-links a,
.nav-links .nav-dropdown {
    flex: 0 0 auto;                     /* geen uitrekken, altijd minimale breedte */
    white-space: nowrap;
    padding: 0.2rem 0.3rem;             /* kleinere knoppen */
    font-size: clamp(0.6rem, 2vw, 0.85rem);
    margin: 0;
}
.nav-links {
    overflow-x: visible; /* dropdown kan buiten nav-links uitsteken */
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999; /* boven alles */
}



}
/* ========== CSR Formulier stijlen ========== */
.form input,
.form select {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    font-size: 16px;
}

.form label {
    margin-top: 10px;
    display: block;
    font-weight: bold;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #345;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

button[type="submit"]:hover {
    background-color: #567;
}

/* ========== Knoppencontainer voor Accept/Decline ========== */
.buttons-container {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.buttons-container button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: background-color 0.3s ease;
}

/* Accept knop */
#accept-btn {
    background-color: #2a7f62;
}

#accept-btn:hover {
    background-color: #249455;
}

/* Decline knop */
#decline-btn {
    background-color: #a83232;
}

#decline-btn:hover {
    background-color: #d13b3b;
}

/* CSR resultaat weergave */
#key-display {
    display: none;
    margin-top: 20px;
}

#key-display textarea {
    width: 100%;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
}

/* ========== Navigatie met dropdowns ========== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    white-space: nowrap;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
}

.nav-dropdown-content a:hover {
    background-color: #333;
}
/* ========== Klein blokje linksboven ========== */
.sub-header-info {
    position: relative;
    background-color: #2c3e50;
    color: #ffffff;
    font-size: 0.85em;         /* groter lettertype */
    padding: 0.8em 1.8em;     /* meer padding voor groter vlak */
    border-radius: 0 0 14px 14px; /* afgeronde hoeken onder */
    width: max-content;
    max-width: 450px;         
    margin-top: -1px;
    margin-left: 2rem;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.12);  
    font-weight: 600;
    letter-spacing: 0.04em;

    border-bottom: 2px solid #ffffff;  /* dunne felle witte lijn onderaan */
}


.sub-header-info p {
    margin: 0;
    white-space: nowrap;
}
/* ========== Banner verhoger Beneden ========== */
/* ===== Checkbox verbergen ===== */
#bannerToggle {
    display: none;
}

/* ===== Ingeklapte staat: schuif bijna helemaal uit beeld ===== */
#bannerToggle:checked ~ .bottom-info-banner {
    transform: translateX(calc(100% - 60px)); /* laat handvatje zichtbaar */
    opacity: 0.8;
    pointer-events: auto;
}

/* ===== Toggle-knop pijl aanpassen bij ingeklapte staat ===== */
#bannerToggle:checked ~ .bottom-info-banner .banner-toggle::after {
    content: '‹'; /* Pijl naar links */
}

/* ===== Banner container ===== */
.bottom-info-banner {
    position: fixed;
    bottom: 9.9rem; /* afstand vanaf onderkant */
    right: 0;
    background-color: #2c3e50;
    color: #ffffff;
    font-size: 0.85em;
    padding: 0.8em 1.8em;
    border-radius: 14px 0 0 14px; /* afgerond linksboven en linksonder */
    width: max-content;
    max-width: 520px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    letter-spacing: 0.04em;
    z-index: 1000;
    opacity: 1;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* ===== Tekst in de banner ===== */
.bottom-info-banner p {
    margin: 0;
    white-space: normal;
}

/* ===== Toggle-knop binnen de banner ===== */
.banner-toggle {
    background-color: #2c3e50;
    border: 1px solid #fff;
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

/* ===== Standaard pijl naar rechts ===== */
.banner-toggle::after {
    content: '›';
    line-height: 2;
}
.bottom-info-banner.fast-transition {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.white-link {
  color: white;
  text-decoration: none; /* optional: removes underline */
}
.white-link:hover {
  text-decoration: underline; /* optional: shows underline on hover */
}

