/* ── MAAT Portaal – Stijlen ───────────────────────────────────────────────── */

:root {
    --navy:   #18324b;
    --teal:   #1799af;
    --groen:  #2ba87e;
    --licht:  #f4f7fa;
    --wit:    #ffffff;
    --tekst:  #2c3e50;
    --grijs:  #6b7280;
    --rand:   #e5e7eb;
    --rood:   #dc2626;
    --geel:   #d97706;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--licht);
    color: var(--tekst);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.portaal-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.portaal-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.portaal-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.logo-maat {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
}
.logo-portaal {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
}
.portaal-nav {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}
.portaal-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.portaal-nav a:hover,
.portaal-nav a.actief {
    color: #fff;
    border-bottom-color: var(--teal);
}
.portaal-header-gebruiker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}
.bedrijf-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.btn-logout {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* ── Main & Container ─────────────────────────────────────────────────────── */
.portaal-main { flex: 1; padding: 2rem 1.5rem; }
.portaal-container { max-width: 1100px; margin: 0 auto; }

/* ── Welkom ──────────────────────────────────────────────────────────────── */
.portaal-welkom { margin-bottom: 2rem; }
.portaal-welkom h1 { font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--navy); }
.portaal-welkom p  { color: var(--grijs); margin-top: 0.25rem; }

.portaal-paginatitel { margin-bottom: 2rem; }
.portaal-paginatitel h1 { font-family: 'Poppins', sans-serif; font-size: 1.6rem; color: var(--navy); }
.portaal-paginatitel p  { color: var(--grijs); margin-top: 0.25rem; }

/* ── Dashboard Stats ─────────────────────────────────────────────────────── */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.stat-kaart {
    background: var(--wit);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--rand);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.stat-kaart-waarschuwing { border-left: 4px solid var(--geel); }
.stat-getal { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.85rem; color: var(--grijs); margin-top: 0.25rem; }
.stat-sub   { font-size: 0.9rem; color: var(--tekst); margin-top: 0.5rem; font-weight: 500; }
.stat-link  { display: inline-block; margin-top: 1rem; color: var(--teal); text-decoration: none; font-size: 0.85rem; }
.stat-link:hover { text-decoration: underline; }

/* ── Secties ─────────────────────────────────────────────────────────────── */
.dashboard-sectie { background: var(--wit); border-radius: 12px; padding: 1.5rem; border: 1px solid var(--rand); }
.dashboard-sectie h2 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }

/* ── Tabel ───────────────────────────────────────────────────────────────── */
.portaal-tabel { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.portaal-tabel th { text-align: left; padding: 0.75rem 1rem; background: var(--licht); color: var(--grijs); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--rand); }
.portaal-tabel td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--rand); }
.portaal-tabel tr:last-child td { border-bottom: none; }
.portaal-tabel tr:hover td { background: var(--licht); }

/* ── Status badges ───────────────────────────────────────────────────────── */
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-gepland    { background: #dbeafe; color: #1e40af; }
.status-bevestigd  { background: #d1fae5; color: #065f46; }
.status-afgerond   { background: #f3f4f6; color: #374151; }
.status-geannuleerd { background: #fee2e2; color: #991b1b; }
.status-concept    { background: #f3f4f6; color: #374151; }
.status-verstuurd  { background: #dbeafe; color: #1e40af; }
.status-betaald    { background: #d1fae5; color: #065f46; }
.status-verlopen   { background: #fee2e2; color: #991b1b; }

/* ── Facturen samenvatting ───────────────────────────────────────────────── */
.facturen-samenvatting { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; }
.samenvatting-blok { background: var(--wit); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.5rem; }
.samenvatting-label  { display: block; font-size: 0.8rem; color: var(--grijs); margin-bottom: 0.25rem; }
.samenvatting-bedrag { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; }
.samenvatting-bedrag.waarschuwing { color: var(--geel); }
.samenvatting-bedrag.succes       { color: var(--groen); }

/* ── Hulp teksten ────────────────────────────────────────────────────────── */
.leeg-melding { background: var(--wit); border: 1px solid var(--rand); border-radius: 10px; padding: 2rem; text-align: center; color: var(--grijs); }
.tekst-rood   { color: var(--rood); }
.melding      { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.melding-fout { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.melding-ok   { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ── Login pagina ────────────────────────────────────────────────────────── */
body.login-pagina {
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-wrapper { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-kaart {
    background: var(--wit);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo .logo-maat    { font-size: 1.8rem; }
.login-logo .logo-portaal { font-size: 1rem; }
.login-kaart h1  { font-family: 'Poppins', sans-serif; font-size: 1.4rem; color: var(--navy); text-align: center; }
.login-subtitel  { color: var(--grijs); font-size: 0.85rem; text-align: center; margin: 0.25rem 0 1.5rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.form-groep { display: flex; flex-direction: column; gap: 0.35rem; }
.form-groep label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-groep input {
    border: 1px solid var(--rand);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-groep input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,153,175,0.1); }
.btn-login {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
    font-family: 'Poppins', sans-serif;
}
.btn-login:hover { background: var(--navy); }
.login-hulp { margin-top: 1.5rem; font-size: 0.8rem; color: var(--grijs); text-align: center; }
.login-hulp a { color: var(--teal); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.portaal-footer { background: var(--navy); color: rgba(255,255,255,0.6); text-align: center; padding: 1.25rem; font-size: 0.8rem; }
.portaal-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.portaal-footer-inner { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
