* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top Header Styles */
.top-header {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 2px solid #ddd;
    padding: 15px 20px;
    gap: 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    flex: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.title {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.description {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Main Container */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.section {
    margin-bottom: 20px;
}

.section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

#geoPoints {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.options label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.options input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #2196F3;
    color: white;
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

#centerCoords {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

.contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.contact h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.contact p {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.contact a {
    color: #2196F3;
    text-decoration: none;
    font-size: 12px;
}

.contact a:hover {
    text-decoration: underline;
}

/* Map Container Styles */
.map-container {
    flex: 1;
    position: relative;
}

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

/* Custom Marker Styles */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.circle-marker {
    background: transparent !important;
    border: none !important;
}

.square-marker {
    background: transparent !important;
    border: none !important;
}

.triangle-marker {
    background: transparent !important;
    border: none !important;
}

.diamond-marker {
    background: transparent !important;
    border: none !important;
}

.marker-label {
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-left {
        min-width: auto;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .map-container {
        height: 60vh;
    }
}

/* Leaflet Popup Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 10px;
    font-size: 13px;
}

/* Scrollbar Styles */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}
