body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}
.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.header {
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
}
.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #f9f9f9;
}
.map-container {
    flex-grow: 1;
    position: relative;
}
#map {
    height: 100%;
    width: 100%;
}
.dropdown {
    min-width: 200px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.button {
    padding: 8px 16px;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.button:hover {
    background-color: #45a049;
}
.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
#fileInput {
    display: none;
}
.file-label {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.file-label:hover {
    background-color: #0b7dda;
}
.context-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}
.context-menu button {
    display: block;
    width: 100%;
    padding: 5px 10px;
    margin: 5px 0;
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.context-menu button:hover {
    background-color: #f0f0f0;
}
.context-info {
    margin-bottom: 10px;
    font-size: 14px;
}
.no-file-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}
.mode-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mode-button {
    padding: 8px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    width: 120px;
    text-align: center;
}
.mode-button.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}
.selection-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000;
}

.selection-info {
    background-color: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 14px;
    display: none;
}

.delete-range {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    border: none;
}

.delete-range:hover {
    background-color: #ff5252;
}

.clear-selection {
    background-color: #666;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    border: none;
}

.clear-selection:hover {
    background-color: #555;
}
.selected-range {
    stroke: #ff6b6b;
    stroke-width: 6;
    stroke-opacity: 0.7;
}
