/* assets/css/style.css */
:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --team-red: #e74c3c;
    --team-blue: #3498db;
    --ui-bg: rgba(0, 0, 0, 0.85);
}

body, html {
    margin: 0; padding: 0;
    height: 100%; width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Voorkom scrollen op de map */
}

/* --- LOGIN SCHERM --- */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
}

.login-container h1 { letter-spacing: 5px; margin-bottom: 40px; text-transform: uppercase; }
.login-container input {
    padding: 15px; margin: 5px 0; width: 100%; max-width: 300px;
    background: #333; border: 1px solid #555; color: white; border-radius: 5px; font-size: 16px;
}
.login-container button {
    padding: 15px; margin-top: 10px; width: 100%; max-width: 320px;
    background: #fff; color: black; font-weight: bold; border: none; cursor: pointer; font-size: 16px;
}

/* --- GAME UI LAYOUT --- */
.app-container { position: relative; height: 100vh; width: 100vw; }

#map { height: 100%; width: 100%; z-index: 1; background: #222; }

#ui-top {
    position: absolute; top: 0; left: 0; right: 0;
    background: var(--ui-bg); padding: 15px;
    display: flex; justify-content: space-between;
    z-index: 1000; font-size: 14px;
}

#ui-bottom {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--ui-bg); padding: 20px;
    text-align: center;
    z-index: 1000;
    border-top: 2px solid #444;
}

/* --- ELEMENTEN --- */
.red { color: var(--team-red); }
.blue { color: var(--team-blue); }

#status-text { margin-bottom: 10px; font-size: 12px; color: #aaa; }

#btn-action {
    /* --- BESTAANDE STIJL (Behouden) --- */
    padding: 20px;
    font-size: 18px; 
    font-weight: bold; 
    text-transform: uppercase;
    border: none; 
    border-radius: 8px; 
    color: white;
    background: #555; 
    transition: background 0.3s;

    /* --- NIEUWE "FIXED" POSITIE --- */
    position: fixed;  /* Haalt hem uit de flow */
    z-index: 1000;    /* Zorgt dat hij boven alles zweeft */

    /* Zet hem vast onderin + rekening houden met iPhone streepje */
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom)); 

    /* Centreren in het midden */
    left: 50%;
    transform: translateX(-50%);

    /* Breedte bepalen */
    width: 90%;       /* 90% van het scherm, zodat je de randjes ziet */
    max-width: 400px; /* Zodat hij op desktop niet gigantisch breed wordt */
    
    /* Extra schaduw zodat hij los lijkt te komen van de kaart */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Actieve knop kleuren */
body:has(.red) #btn-action:not(:disabled) { background: var(--team-red); box-shadow: 0 0 15px var(--team-red); }
body:has(.blue) #btn-action:not(:disabled) { background: var(--team-blue); box-shadow: 0 0 15px var(--team-blue); }

#btn-action:disabled { opacity: 0.5; cursor: not-allowed; }


/* HAMBURGER MENU OVERLAY */
.hidden {
    display: none !important;
}
#game-menu {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 250px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 1px solid #444;
    z-index: 2000; /* Bovenop alles */
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#game-menu h3 { margin-top: 0; color: var(--text-color); border-bottom: 1px solid #444; padding-bottom: 10px; }
#game-menu ul { list-style: none; padding: 0; }
#game-menu li { margin: 15px 0; }
#game-menu a { color: white; text-decoration: none; font-size: 18px; display: block; }
#game-menu hr { border: 0; border-top: 1px solid #444; margin: 20px 0; }

#close-menu {
    margin-top: auto; /* Duw naar beneden */
    padding: 10px; background: #333; color: white; border: none; cursor: pointer;
}

/* Zorgt dat de kaarttegels iets lichter en minder contrastrijk zijn */
.leaflet-tile-pane {
    filter: brightness(1.3) contrast(0.9);
}

/* Zorgt dat de kaart niet te hard zwart is, maar donkergrijs */
#map {
    background: #222; 
}
