/* ===== WN Theme (global background) ===== */
body.app-layout {
    /* zachte achtergrond gradient */
    background: radial-gradient(1200px 600px at 15% -10%, rgba(198, 45, 86, 0.14), transparent 60%), radial-gradient(1000px 600px at 85% 0%, rgba(34, 83, 156, 0.14), transparent 55%), linear-gradient(to bottom, #f7f8fb, #eef1f6);
}

/* Zorg dat containers niet "plakken" */
main.flex-fill .container {
    padding-top: 8px;
}

/* Optioneel: maak content een beetje 'card' */
.page-surface {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 18px;
}

/* ===== Perfect centered map between header & footer ===== */

.map-wrapper {
    flex: 1; /* vult ruimte tussen header & footer */
    display: flex;
    justify-content: center; /* horizontaal midden */
    align-items: center; /* verticaal midden */
    padding: 20px 0; /* ruimte boven & onder */
}

.map-container {
    position: relative;
    display: inline-block; /* shrink-wrap naar image */
    width: auto; /* ✅ belangrijk: geen 100% */
    max-width: 1050px; /* max grootte */
}

/* Image bepaalt de echte breedte/hoogte */
.map-image {
    display: block;
    /* responsive sizing */
    max-width: min(1050px, 100vw); /* ✅ match met container */
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.click-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #0d6efd;
    transform: translate(-50%, -50%);
}

.navbar .badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
}


/* Buttons stay correct because % is now relative to the real image size */
.task-circle {
    position: absolute;
    width: clamp(32px, 5%, 55px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: none;
    color: #fff !important;
    font-weight: bold;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
    .task-circle:hover {
        transform: translate(-50%, -50%) scale(1.12);
    }

    .task-circle.todo {
        background: red !important;
    }

    .task-circle.done {
        background: green !important;
    }

html, body {
    height: 100%;
    margin: 0;
}

    body.app-layout {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

main.flex-fill {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Login Page Styling ===== */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
}

.login-card {
    width: 100%;
    max-width: 900px;
    padding: 60px 80px;
    border-radius: 40px;
    background: #f4f4f4;
    border: 2px solid #111;
}

.login-header {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.login-logo {
    height: 80px;
}

.login-title {
    font-weight: 700;
    margin: 0;
}

.login-form {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.login-select {
    max-width: 320px;
    padding: 12px;
    border: 2px solid #111;
    border-radius: 4px;
}

.login-button {
    background-color: #c6284f;
    color: white;
    padding: 12px 40px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    transition: 0.2s ease;
}

    .login-button:hover {
        background-color: #a81f42;
    }

/* =========================
   WN Glass Gradient Header
   ========================= */

.wn-navbar {
    background: linear-gradient( 90deg, #c6284f 0%, /* WN rood */
    #1f3f75 50%, /* donker blauw */
    #4f81bd 100% /* licht blauw */
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-bottom: none;
}

/* Logo */
.wn-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Brand text */
.wn-navbar .navbar-brand span {
    color: white;
    letter-spacing: 0.5px;
}

/* Links */
.wn-navbar .nav-link {
    color: white !important;
    border-radius: 8px;
    padding: 8px 12px;
    transition: 0.2s ease;
}

    .wn-navbar .nav-link:hover {
        background: rgba(255,255,255,0.18);
    }

/* Toggler */
.wn-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.wn-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Zorg dat navbar + dropdown altijd boven page content ligt */
.wn-navbar {
    position: relative;
    z-index: 3000;
}

    /* Extra zekerheid: uitgeklapte menu op mobiel + dropdowns */
    .wn-navbar .navbar-collapse {
        position: relative;
        z-index: 3001;
    }

    .wn-navbar .dropdown-menu {
        z-index: 3002;
    }

/* Context pill (Area — Week) */
.context-pill {
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

/* User name */
.user-text {
    color: white;
    font-weight: 600;
}

/* =========================
   WN Gradient Footer
   ========================= */

.wn-footer {
    background: linear-gradient( 90deg, #c6284f 0%, #1f3f75 50%, #4f81bd 100% );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}

/* Footer text */
.wn-footer {
    color: white;
}

    /* Links in footer */
    .wn-footer a {
        color: rgba(255,255,255,0.9);
        text-decoration: none;
    }

        .wn-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 576px) {
    .map-wrapper {
        padding: 10px 0;
    }

    .map-image {
        width: 95vw;
        max-height: 65vh;
    }

    .task-circle {
        width: clamp(28px, 7vw, 44px);
    }
}

/* Progress ring */
.progress-ring {
    --size: 84px;
    --thickness: 10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    /* green = done, red = open */
    background: conic-gradient(#22c55e calc(var(--p) * 1%), #ef4444 0);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.progress-ring__inner {
    width: calc(var(--size) - (var(--thickness) * 2));
    height: calc(var(--size) - (var(--thickness) * 2));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    text-align: center;
}

.progress-ring__value {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.progress-ring__sub {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.55);
    margin-top: 2px;
}

/* Schoonmaak overview map */
.map-card {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    cursor: zoom-in;
    /* Belangrijk: vaste "preview" hoogte zodat de kaart groot blijft */
    height: clamp(420px, 80vh, 780px);
}

/* Scroll inside card (handig voor lange afbeelding) */
.map-card {
    overflow: auto;
}

/* De afbeelding blijft scherp en op volle breedte */
.map-preview {
    width: 100%;
    height: auto;
    display: block;
}

/* Fullscreen modal: scrollbaar + afbeelding groot */
.map-modal-scroll {
    height: calc(100vh - 56px); /* header van modal */
    overflow: auto;
    background: #f5f6f8;
}

.map-full {
    width: min(1200px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 16px;
}

