body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 280px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

h2 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

h3 {
    font-size: 1em;
    margin: 10px 0 5px 0;
    color: #666;
}

.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9em;
    color: #444;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.control-group select, 
.control-group input[type="color"],
.control-group input[type="range"] {
    width: 100%;
    padding: 4px;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

button {
    flex: 1;
    padding: 10px 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

#clear-btn {
    background-color: #e74c3c;
    color: white;
}

#done-btn {
    background-color: #27ae60;
    color: white;
}

#point-list-container {
    margin-top: 15px;
    border-top: 1px solid #eee;
    overflow-y: auto;
    flex-grow: 1;
}

#point-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: #f9f9f9;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.8em;
}

.point-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.delete-point-btn {
    background: #ddd;
    color: #333;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.8em;
    flex: none;
}

.delete-point-btn:hover {
    background: #c0392b;
    color: white;
}

#status {
    margin-top: 10px;
    font-size: 0.85em;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}
