/* Basis kaart */
#map {
    height: 100vh;
    width: 100vw;
}

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

/* Algemene knopstijl */
.button {
    position: fixed;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    cursor: pointer;
}

#layer-btn-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

#layer-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    padding: 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
}


/* Locatie opslaan knop */
#save-btn {
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 50px;
}

/* Volgknop + menuknop container */
#follow-btn-container,
#menu-btn-container {
    position: fixed;
    z-index: 9999;
}

#follow-btn-container {
    bottom: 20px;
    right: 20px;
}

#menu-btn-container {
    top: 20px;
    right: 20px;
}

#manual-btn-container {
    position: fixed;
    bottom: 80px; /* iets boven de volgen-knop */
    right: 20px;
    z-index: 9999;
}

#manual-btn .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
}

#manual-btn .label {
    font-size: 10px;
    color: orange;
}

#manual-btn.active .label {
    color: white;
}


/* Stijl voor knoppen */
#manual-btn,
#follow-btn,
#menu-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    padding: 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

/* Icoon boven tekst */
#follow-btn .icon,
#menu-btn .icon {
    font-size: 20px;
    margin-bottom: 2px;
}

#follow-btn .label {
    font-size: 10px;
    color: orange;
}

#follow-btn.active .label {
    color: white;
}

#save-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: 6px;
}

#save-btn .main-text {
    font-size: 16px;
    font-weight: bold;
}

#save-btn .label {
    font-size: 10px;
    color: orange;
    margin-top: 4px;
}

/* Nauwkeurigheid display */
#accuracyBlock {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background-color: gray;
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 6px;
    z-index: 9999;
    width: 180px;
    font-family: monospace;
}

.acc-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.acc-row {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
}

.acc-label {
    text-align: left;
    width: 110px;
    white-space: nowrap;
}

.acc-value {
    text-align: right;
    width: 50px;
    white-space: nowrap;
}

.acc-unit {
    text-align: left;
    width: 20px;
    white-space: nowrap;
}

.acc-zero {
    color: red;
    font-weight: bold;
}

/* Bericht */
#messageBox {
    position: fixed;
    top: 65px;  /* was eerst 10px */
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    opacity: 0.9;
    display: none;
}

#projectStatusBanner {
    position: fixed;
    top: 20px;  /* eerder 60px */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 10000;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: sans-serif;
    opacity: 0.95;
}

#projectStatusBanner button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
}

#projectStatusBanner button:hover {
    background-color: #0056b3;
}


/* Menu dropdown */
#menu {
    position: fixed;
    top: 75px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    z-index: 10000;
    display: none;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#menu div {
    padding: 6px 10px;
    cursor: pointer;
}

#menu div:hover {
    background-color: #f0f0f0;
}

/* Algemene overlay-stijl (gedeeld) */
#aboutOverlay,
#rdOverlay,
#settingsOverlay,
#layerOverlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-height: 70%;
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-family: sans-serif;
    /*display: flex;*/
    flex-direction: column;
}

/* Kopregel van overlay */
.overlay-header {
    background-color: #f5f5f5;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

/* Sluitknop */
.close-button {
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    color: #666;
}

.close-button:hover {
    color: #000;
}

/* Inhoud van overlay (scrollbaar) */
.overlay-content {
    overflow-y: auto;
    padding: 16px 20px;
    flex-grow: 1;
}
