/* ============================================
   BASIS
============================================ */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #1f2a1f;
    color: #d9c7a3;
}

/* ============================================
   TOPBAR / MENU
============================================ */
#topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: #2e3c2e;
    border-bottom: 2px solid #3c4c3c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: 14px;
    border-radius: 10px;
    margin: 10px;
}

#topbar > * {
    display: flex;
    align-items: center;
    gap: 6px;
}

#topbar label {
    font-weight: bold;
    color: #d9c7a3;
}

#topbar input[type="file"] {
    padding: 4px;
    background: #3c4c3c;
    color: #d9c7a3;
    border: 1px solid #555;
    border-radius: 6px;
}

/* ============================================
   KNOPPEN (alleen icoontjes)
============================================ */
#topbar button {
    background: #ff8f00;
    color: #1f2a1f;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

#topbar button:hover {
    background: #ffaa33;
}

/* icoontjes */
#undo::before {
    content: "↩";
}
#reset::before {
    content: "🔄";
}
#helpBtn::before {
    content: "❓";
}

/* ============================================
   DROPDOWN
============================================ */
#mapStyleSelect {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #3c4c3c;
    color: #d9c7a3;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
}

/* ============================================
   MAIN LAYOUT
============================================ */
#main {
    display: flex;
    height: calc(100vh - 100px);
    padding: 10px;
    box-sizing: border-box;
    gap: 10px;
}

/* ============================================
   LINKERKOLOM (CACHELIJST)
============================================ */
#left {
    width: 28%;
    background: #2e3c2e;
    border-radius: 10px;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #3c4c3c;
}

#left h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 2px solid #3c4c3c;
    padding-bottom: 6px;
    color: #d9c7a3;
}

.cache {
    padding: 10px;
    border-bottom: 1px solid #3c4c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    color: #d9c7a3;
}

.cache:hover {
    background: #3c4c3c;
}

.cache.highlight {
    background: #ffcc00 !important;
    color: #1f1f1f !important;
    font-weight: bold;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00c8c8;
    display: none;
}

/* ============================================
   KAART
============================================ */
#map {
    flex: 1;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3c4c3c;
}

/* ============================================
   HELP OVERLAY
============================================ */
#helpOverlay {
    display: none; /* <-- blijft echt uit bij opstarten */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    color: #d9c7a3;
    z-index: 2000;

    /* NIET opnieuw display zetten */
    justify-content: center;
    align-items: center;
    padding: 20px;
}


/* scrollbare help-content */
#helpContent {
    background: #2e3c2e;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;      /* hoogte begrenzen */
    overflow-y: auto;      /* scrollen binnen de help */
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

#helpContent button {
    margin-top: 20px;
    background: #ff8f00;
    color: #1f2a1f;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

#helpContent button:hover {
    background: #ffaa33;
}
