/* ====================================================
   Stroomroof — Globale stylesheet
   ==================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
.page-content { flex: 1; width: 100%; }

/* ── Top Navigatie ── */
.top-nav {
    background: #2c3e50;
    color: white;
    padding: 0 20px;
}
.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-logo { height: 41px; width: auto; display: block; }
.nav-brand:hover { opacity: 0.85; }
.nav-portal-link { color: #95a5a6; text-decoration: none; font-size: 12px; }
.nav-portal-link:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-user { font-size: 13px; color: #ecf0f1; }
.nav-link { color: #3498db; text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-link:hover { text-decoration: underline; }
.nav-btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.nav-btn:hover { background: #c0392b; }
@media (max-width: 600px) {
    .nav-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 8px; }
}

/* ── Footer ── */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px 20px;
    border-top: 3px solid #27ae60;
    margin-top: 60px;
}
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background-color: #27ae60; color: #fff; padding: 6px 14px;
    border-radius: 4px; font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px;
}
.footer-statement { font-size: 13px; color: #cbd5e1; line-height: 1.6; margin: 0 auto 25px; max-width: 650px; }
.footer-divider { border: 0; height: 1px; background: #34495e; margin: 20px 0; }
.footer-info-grid { display: flex; justify-content: space-around; gap: 20px; margin-bottom: 25px; font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.footer-info-grid strong { color: #fff; display: block; margin-bottom: 6px; }
.footer-info-grid a { color: #27ae60; text-decoration: none; }
.footer-info-grid a:hover { text-decoration: underline; }
.footer-copyright { font-size: 11px; color: #7f8c8d; margin: 0; }
@media (max-width: 600px) {
    .main-footer { padding: 30px 15px 15px 15px; }
    .footer-info-grid { flex-direction: column; gap: 20px; align-items: center; }
    .footer-statement { font-size: 12px; }
}

/* ── Layout voor formulieren (login + registratie) ── */
.form-container, .login-container {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.login-container { max-width: 420px; }
.page-content.form-pagina { padding: 40px 20px; display: flex; justify-content: center; }
.logo { text-align: center; margin-bottom: 20px; }
.logo h2 { color: #2c3e50; margin: 0; font-size: 20px; }
.logo small { color: #95a5a6; font-size: 12px; }
h1 { margin: 0 0 5px 0; color: #2c3e50; font-size: 24px; text-align: center; }
.subtitle { color: #7f8c8d; text-align: center; margin-bottom: 30px; font-size: 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 6px; font-weight: 600; color: #34495e; }
input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
input:focus, select:focus { border-color: #3498db; outline: none; }
.help-text { font-size: 12px; color: #7f8c8d; margin-top: 5px; display: block; }
.hidden { display: none; }
.zakelijk-sectie {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    margin-bottom: 20px;
}
button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}
button:hover { background-color: #27ae60; }
.error-box {
    background-color: #fde8e8;
    color: #e53e3e;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
    font-size: 14px;
}
.footer-links { text-align: center; margin-top: 20px; font-size: 13px; }
.footer-links a { color: #3498db; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Registratie flow: steps ── */
.steps { display: flex; justify-content: space-between; margin-bottom: 30px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.step { color: #cbd5e1; font-weight: bold; }
.step.active { color: #3498db; border-bottom: 2px solid #3498db; padding-bottom: 5px; }
.step.done { color: #2ecc71; }

/* ─── Knoppen registratie flow ── */
.button-group { display: flex; gap: 15px; margin-top: 30px; }
.button-group button { flex: 1; }
.btn-add-more { background-color: #3498db; }
.btn-add-more:hover { background-color: #2980b9; }
.btn-submit { background-color: #2ecc71; }
.btn-submit:hover { background-color: #27ae60; }

/* ── Dashboard kaarten ── */
.dash-container { max-width: 900px; margin: 0 auto; padding: 30px 20px; }
.welcome-card { background: #ffffff; border-radius: 8px; padding: 25px 30px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); margin-bottom: 25px; }
.welcome-card h1 { margin: 0 0 5px 0; text-align: left; font-size: 22px; }
.welcome-card p { margin: 0; color: #7f8c8d; font-size: 14px; }
.card { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); margin-bottom: 25px; overflow: hidden; }
.card-header { background: #f8f9fa; padding: 15px 25px; border-bottom: 1px solid #e9ecef; font-weight: 700; color: #34495e; font-size: 16px; }
.card-body { padding: 20px 25px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.data-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.data-item .label { font-size: 12px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 0.5px; display: block; }
.data-item .value { font-size: 15px; color: #0f172a; font-weight: 600; display: block; margin-top: 2px; }
.equipment-item { padding: 15px; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 12px; background: #fafbfc; }
.equipment-item:last-child { margin-bottom: 0; }
.equipment-item .title { font-weight: 700; color: #2c3e50; font-size: 15px; }
.equipment-item .details { font-size: 13px; color: #555; margin-top: 5px; }
.equipment-item .details span { display: inline-block; margin-right: 15px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.empty-state { color: #7f8c8d; font-size: 14px; padding: 10px 0; }
.photo-link { color: #3498db; text-decoration: none; font-size: 13px; }
.photo-link:hover { text-decoration: underline; }
.delete-link { color: #e53e3e; text-decoration: none; font-size: 13px; font-weight: 600; }
.delete-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .data-grid { grid-template-columns: 1fr; } }

/* ── Klaar pagina ── */
.success-container { max-width: 750px; background: #ffffff; padding: 40px 30px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); margin: 0 auto; text-align: center; }
.success-container .icon { font-size: 50px; color: #2ecc71; margin-bottom: 15px; }
.summary-card { text-align: left; background: #f8f9fa; border: 1px solid #e2e8f0; border-radius: 6px; padding: 20px; margin-bottom: 30px; }
.summary-card h3 { margin-top: 0; color: #34495e; border-bottom: 1px solid #cbd5e1; padding-bottom: 8px; }
.data-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.data-row:last-child { border-bottom: none; }
.data-row .label { font-weight: 600; color: #475569; }
.data-row .value { color: #0f172a; }
.omvormer-pill { background: #e2fbf0; border: 1px solid #a7f3d0; color: #065f46; padding: 10px 15px; border-radius: 6px; margin-bottom: 10px; font-size: 14px; }
.btn-home { display: inline-block; background-color: #3498db; color: white; text-decoration: none; padding: 12px 30px; font-size: 16px; font-weight: bold; border-radius: 4px; transition: background-color 0.2s; }
.btn-home:hover { background-color: #2980b9; }

/* ── File input ── */
input[type="file"] { padding: 5px; background: #f8f9fa; }

/* ── Login spacing ── */
.login-container--spaced { margin-top: 60px; }

/* ── Klaar pagina hulpklassen ── */
.omvormer-pill--blue { border-left: 3px solid #3498db; }
.float-right { float: right; }
.empty-text { text-align: left; margin: 0; font-size: 14px; }

/* ── Full-page error ── */
.error-box--page { max-width: 500px; margin: 60px auto; }
.error-box--page ul { margin: 10px 0 20px; padding-left: 20px; }
.error-box--page a {
    display: inline-block; background: #3498db; color: white;
    padding: 10px 15px; text-decoration: none; border-radius: 4px; margin-top: 15px;
}
.error-box--page a:hover { background: #2980b9; }

/* ── Token veld ── */
.token-bericht { font-size: 13px; padding: 8px 12px; border-radius: 4px; margin-bottom: 10px; background: #d1fae5; color: #065f46; }
