/* =========================================================
   File      : /app/ui/assets/app.css
   Solution  : Familie Engelbracht
   Version   : v21.6.9 – 19-02-2026 10:05 CET
   Scope     : UI base styles + global modal infrastructure
   ChangeLog :
   - KEEP: v21.6.8 baseline (DEV banner + worldmap + statuspanel)
   - ADD : person-card__doc styling (FWS-027 uitbreiding)
   ========================================================= */

/* =========================================================
   UI base styles
   ========================================================= */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f6f6f6;
    color: #222;
    /* Header fixed → content moet eronder scrollen */
    padding-top: 110px;
}

    /* DEV: extra ruimte voor dev-banner (28px) */
    body.dev-mode {
        padding-top: 138px;
    }

/* =========================================================
   DEV banner (alleen in dev-mode; element bestaat alleen in DEV)
   ========================================================= */

.dev-banner {
    background: #c00;
    color: #fff;
    text-align: center;
    padding: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

/* =========================================================
   Header
   ========================================================= */

header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* In DEV schuift header onder de banner */
body.dev-mode header {
    top: 28px;
}

header img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* =========================================================
   Main layout (NIET verschuiven met margin-top → regressierisico)
   ========================================================= */

main {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    line-height: 1.6;
}

h1 {
    margin-top: 0;
}

/* ============================================================
   FWS-005 – Globaal statuspanel
   ============================================================ */

.status-panel {
    max-width: 900px;
    margin: 20px auto 0 auto;
    background-color: #b00020;
    color: #ffffff;
    padding: 12px 20px;
    box-sizing: border-box;
}

.status-panel-line {
    line-height: 1.4;
    font-size: 0.95rem;
}

/* ============================================================
   Persons cards
   ============================================================ */

.panel-persons {
    margin-top: 3rem;
}

.persons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.person-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

    .person-card:hover {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

/* ===== FWS-027 uitbreiding: admin-only doc-icoon ===== */
.person-card__doc {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

    .person-card__doc:hover {
        background: #222;
    }

/* ============================================================
   Auth buttons
   ============================================================ */

#auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
}

    #auth-buttons button {
        margin-left: 8px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

/* ============================================================
   Login / Signup modals (isolated, NOT generic)
   ============================================================ */

#login-modal,
#signup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

    #login-modal:not([hidden]),
    #signup-modal:not([hidden]),
    #login-modal.is-open,
    #signup-modal.is-open {
        display: flex;
    }

/* ============================================================
   Hamburger menu (NAVIGATIE)
   ============================================================ */

#hamburger-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

#hamburger-menu {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 220px;
    background: #ffffff;
    border: 1px solid #ddd;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 1300;
}

    #hamburger-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #hamburger-menu li {
        margin: 0;
        padding: 0;
    }

    #hamburger-menu .menu-item {
        width: 100%;
        padding: 8px 14px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 0.95rem;
        color: #222;
    }

        #hamburger-menu .menu-item:hover {
            background: #f2f2f2;
        }

    #hamburger-menu .menu-sub {
        margin-left: 16px;
        padding-left: 8px;
        border-left: 1px solid #ddd;
    }

        #hamburger-menu .menu-sub .menu-item {
            padding-left: 14px;
            font-size: 0.92rem;
        }

/* =========================================================
   GENERIC MODAL (SITE-WIDE INFRASTRUCTURE)
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

    .modal[hidden] {
        display: none;
    }

    /* Inner panel safety */
    .modal > * {
        max-height: 90vh;
        overflow-y: auto;
    }

/* Generic inner container */
.modal-content {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ============================================================
   Worldmap canvas (LEIDEND)
   ============================================================ */

#worldmap {
    width: 100%;
    height: 600px;
}
