/* ================================
   Basis
   ================================ */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 0;
}

/* Standaard header voor het jaarverslag-portaal (admin/dashboard) */
header {
    background: #002b5c;
    color: #fff;
    padding: 1.5rem;
}

/* Let op: de publieke site gebruikt <header class="main-header">,
   die verderop apart wordt gestyled. */

header h1 {
    margin: 0;
    font-size: 1.6rem;
}

/* Default main voor kleinere pagina's (login e.d.) */
main {
    max-width: 500px;
    margin: 2.5rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #002b5c;
}

p.intro {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ================================
   Formulieren / inputs / knoppen
   ================================ */

form label {
    display: block;
    margin-bottom: 0.8rem;
}

form label span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    color: #333;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccd4e0;
    font-size: 0.95rem;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0057b8;
    box-shadow: 0 0 0 3px rgba(0,87,184,0.15);
}

textarea {
    resize: vertical;
}

.actions {
    margin-top: 1.2rem;
}

button[type="submit"],
button,
.button {
    background: #0057b8;
    color: #fff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button[type="submit"]:hover,
button:hover,
.button:hover {
    background: #004494;
}

/* Secundaire knop (grijs/blauw) */
.button-secondary {
    background: #e1e7f0;
    color: #002b5c;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.button-secondary:hover {
    background: #cfd8e6;
}

/* Kleine knoppen (bij admin-tabel) */
.action-links {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.action-links .button-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ================================
   Meldingen
   ================================ */

.error {
    background: #fdecea;
    color: #b71c1c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.info {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.extra-links {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.extra-links a {
    color: #0057b8;
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* ================================
   Footer
   ================================ */

footer,
.main-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    padding: 1.5rem 0;
}

.main-footer {
    margin: 2rem 0;
    font-size: 0.9rem;
}

/* ================================
   Lay-outs
   ================================ */

.container-wide {
    max-width: 900px;
    margin: 2.5rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Twee-koloms layout voor steps (links vragen, rechts voortgang) */
.layout-two-col {
    max-width: 1100px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(260px, 1.2fr);
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .layout-two-col {
        grid-template-columns: 1fr;
    }
}

/* Kaart gecentreerd (bijv. lege dashboardmelding) */
.card-centered {
    max-width: 480px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

/* Generieke container voor publieke pagina's (index/contact/advies) */
.container {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Logo 1136 */
.logo-1136 {
    display: block;
    margin: 2rem auto;
    width: 220px;
}

/* ================================
   Adresrij / overige helpers
   ================================ */

.address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.address-row label {
    margin-bottom: 0;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0.5rem;
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ================================
   Question blocks / radios
   ================================ */

.question-block {
    border: 1px solid #d0d7e5;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    background: #f8f9fc;
}

.question-block legend {
    font-weight: 600;
    color: #002b5c;
    padding: 0 0.4rem;
}

.question-block p {
    margin-top: 0.3rem;
    margin-bottom: 0.8rem;
}

.radio-line {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ================================
   Progress bar / voortgang
   ================================ */

.progress-container {
    background: #e8edf5;
    border-radius: 20px;
    height: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0057b8, #00a0e3);
    width: 0;
    transition: width 0.4s ease;
}

.progress-label {
    text-align: right;
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.3rem;
}

/* ================================
   Transport cards
   ================================ */

.transport-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}

.transport-card {
    border: 1px solid #d0d7e5;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.transport-card input {
    margin: 0;
}

.transport-icon {
    width: 32px;
    height: 32px;
    background: #e1e7f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* ================================
   Voortgangskaart (rechts bij steps)
   ================================ */

.progress-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    padding: 1.5rem 1.75rem;
}

.progress-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #003366;
    margin-bottom: 0.4rem;
}

.progress-card p {
    margin: 0.2rem 0 0.9rem;
    color: #555;
    font-size: 0.95rem;
}

.steps-list {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0 0;
    font-size: 0.95rem;
}

.steps-list li {
    margin-bottom: 0.3rem;
}

.steps-list .done::before {
    content: "✅ ";
}

.steps-list .todo::before {
    content: "⬜ ";
}

.steps-list .current a {
    font-weight: 600;
    text-decoration: underline;
}

/* ================================
   ADR-pictogram rijen
   ================================ */

.hazard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e1e4f0;
}

.hazard-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.hazard-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.hazard-label strong {
    display: block;
    font-size: 0.95rem;
    color: #002b5c;
}

.hazard-sub {
    font-size: 0.85rem;
    color: #666;
}

.hazard-right select {
    min-width: 190px;
}

/* ================================
   Admin tabellen / badges
   ================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.table th,
.table td {
    border-bottom: 1px solid #e0e6f0;
    padding: 0.55rem 0.5rem;
    text-align: left;
}

.table th {
    font-weight: 600;
    color: #002b5c;
    background: #f1f4fb;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.badge-niet_gestart {
    background: #eceff1;
    color: #455a64;
}
.badge-concept {
    background: #fff3e0;
    color: #e65100;
}
.badge-ingediend {
    background: #e3f2fd;
    color: #0d47a1;
}
.badge-goedgekeurd {
    background: #e8f5e9;
    color: #1b5e20;
}

/* ================================
   Header jaarverslag-portaal (topbar)
   ================================ */

header .topbar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-links a.active {
    background: #ffffff;
    color: #002b5c;
}

.user-bar {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.logout-link:hover {
    text-decoration: underline;
}

.user-indicator {
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-left: 1.5rem;
    white-space: nowrap;
}

/* ================================
   Hulp/link 1136.nl
   ================================ */

.help-link {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #555;
}
.help-link a {
    color: #0057b8;
    text-decoration: none;
}
.help-link a:hover {
    text-decoration: underline;
}

/* ================================
   Publieke header / navigatie (adr-advies.nl)
   ================================ */

.main-header {
    background-color: #002b5c;
    color: #fff;
    padding: 0.5rem 0;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Hamburger (mobiel) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Hoofdmenu (desktop default) */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.main-nav a,
.main-nav .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav .dropdown-toggle:hover {
    text-decoration: underline;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}
.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dropdown-menu {
    position: absolute;
    top: 2.2rem;
    left: 0;
    background: #ffffff;
    border-radius: 6px;
    min-width: 240px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    display: none;
    z-index: 2000;
    padding: 0.3rem 0;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}
.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.45rem 0.8rem;
    color: #222 !important;
    text-decoration: none;
    font-size: 0.9rem;
    background: #fff;
}
.dropdown-menu a:hover {
    background: #f2f6ff;
}

/* Toon dropdown als .open op li staat */
.has-dropdown.open .dropdown-menu {
    display: block;
}

/* Responsive voor publieke header */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        width: 100%;
        margin-top: 0.5rem;
        display: none; /* standaard dicht */
    }
    .main-nav.nav-open {
        display: block; /* open via JS */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a,
    .main-nav .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 0.4rem 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        margin-left: 1rem;
    }
}
/* ---------- Navigatie (publieke site) ---------- */

.site-header {
  background-color: #002b5c;
  color: #fff;
  position: relative;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

/* Hoofdmenu */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a,
.dropdown-toggle {
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
}

.main-nav a:hover,
.dropdown-toggle:hover {
  text-decoration: underline;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 2rem;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  display: none;
  min-width: 240px;
  padding: 0.3rem 0;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 0.8rem;
  color: #002b5c;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: #f2f6ff;
}

.has-dropdown.open .dropdown-menu {
  display: block;
}

/* ---------- Mobiel ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: #002b5c;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a,
  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #003770;
    width: 100%;
  }

  .dropdown-menu a {
    color: #fff;
  }

  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
  }
}
