body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: #f5f7fa;
}

header {
    background-color: #007bff;
    color: white;
    padding: 1rem;
    text-align: center;
}

.main-layout {
    display: flex;
    height: calc(100vh - 70px);
}

.sidebar {
    width: 320px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar input,
.sidebar select,
.sidebar input[type="file"],
.sidebar button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
}

.sidebar button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

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

.map-container {
    flex-grow: 1;
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.loader {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loader.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.modal.show {
    display: block;
}

.message-zone {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.message-zone.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-zone.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.csv-format-guide {
    background-color: #f3f3f3;
    border-left: 5px solid #007bff;
    padding: 10px 15px;
    margin: 20px 0;
    font-size: 14px;
}

.csv-preview {
    margin: 30px auto;
    max-width: 90%;
    padding: 20px;
    background: #f9f9f9;
    border-left: 6px solid #007bff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.csv-preview h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 18px;
    margin-bottom: 10px;
}

.csv-preview-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.csv-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.csv-preview-table th,
.csv-preview-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

.csv-preview-table th {
    background-color: #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.csv-preview.hidden {
    display: none;
}


.validation-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.validation-message.valid {
    color: green;
}

.validation-message.invalid {
    color: red;
}

/* Cluster global style */
.custom-cluster {
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Inner counter */
.cluster-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}
.csv-toggle-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
  }
  
  .csv-toggle-btn:hover {
    background-color: #0056b3;
  }
  .modal-content.large {
    width: 90%;
    max-width: 1000px;
  }