.ol-tooltip {
    position: relative;
    background: rgba(26, 38, 57, 0.8);  /* Dark blue with transparency */
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 16px;
    pointer-events: none;
}

.ol-tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.ol-tooltip-static {
    background-color: rgba(26, 38, 57, 0.9);  /* Dark blue with high opacity */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ol-tooltip-measure:before,
.ol-tooltip-static:before {
    border-top: 6px solid rgba(26, 38, 57, 0.8);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
    position: absolute;
    bottom: -6px;
    margin-left: -7px;
    left: 50%;
}

.ol-tooltip-static:before {
    border-top-color: rgba(26, 38, 57, 0.9);
}

.measurement-toggle {
    position: absolute;
    bottom: 50px;  /* Above the scale line */
    right: 70px;   /* To the left of zoom controls */
    top: unset;
    z-index: 1000;
}

.measurement-toggle button {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4); /* Match zoom controls transparency */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    color: #111;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    margin-bottom: 5px;  /* Space between button and zoom controls */
}

.measurement-toggle button:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.measurement-toggle button.active {
    background: rgba(255, 255, 255, 0.8); /* Higher opacity white when active */
    border-color: rgba(255, 255, 255, 0.9);
}

.measurement-controls {
    position: absolute;
    top: 110px;  /* Below the toggle button */
    right: 1.5em;
    bottom: unset;
    background: rgba(255, 255, 255, 0.4); /* Match zoom controls transparency */
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.measurement-controls button {
    display: block;
    margin: 6px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);  /* Very light background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #111;  /* Black text */
    font-weight: bold;
}

.measurement-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.measurement-controls button.active {
    background: rgba(255, 255, 255, 0.8); /* Higher opacity white when active */
    color: #111;
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.measurement-controls button.clear {
    background: rgba(255, 255, 255, 0.1); /* Match other buttons, no red */
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.measurement-controls button.clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

.measurement-controls button.clear.active {
    background: rgba(255, 255, 255, 0.8); /* Higher opacity white when active */
    color: white;
    border-color: rgba(255, 255, 255, 0.9);
}

.measurement-list {
    position: absolute;
    bottom: 160px;  /* Move further above the zoom controls */
    right: 1.5em;
    top: unset;
    background: rgba(255, 255, 255, 0.4); /* Match zoom controls transparency */
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.measurement-list h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #111;
    font-weight: bold;
}

.measurement-item {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    color: #111;
    font-weight: bold;
}

.measurement-item:last-child {
    border-bottom: none;
}

.measurement-item .type {
    font-weight: bold;
    color: #111;
    font-size: 16px;
}

.measurement-item .value {
    color: #111;
    font-size: 16px;
    font-weight: bold;
}

.measurement-item .timestamp {
    color: #111;
    font-size: 14px;
    font-weight: bold;
}

/* Custom scrollbar for measurement list */
.measurement-list::-webkit-scrollbar {
    width: 8px;
}

.measurement-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.measurement-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.measurement-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
} 