:root {
    --primary-color: #4caf50;
    --secondary-color: #ffffff;
    --accent-color: #bb86fc;
    --font-family: 'Arial, sans-serif';
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: #000 !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.banner, .footer-content {
    width: 100%;
    background-color: #1f1f1f;
    color: #e0e0e0;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #333;
}

.logo-container {
    display: flex;
    /*align-items: center;
    justify-content: center;*/
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    height: 80px;
    max-width: 100px;
}

.title h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: bold;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bb86fc;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.footer-links a:hover {
    background-color: rgba(187, 134, 252, 0.1);
    text-decoration: underline;
}

.social-media a {
    color: #bb86fc;
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #e0e0e0;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container {
    position: relative;
    width: 100%; /* Ensure full width */
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: width 0.3s ease; /* Smooth transition when side nav is toggled */
}

.nav-panel {
    position: absolute;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.nav-hover-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 999;
    background: transparent;
}

.nav-hover-area:hover + .nav-panel,
.nav-panel:hover {
    left: 0;
}

.nav-hover-area:hover ~ .map-container,
.nav-panel:hover ~ .map-container {
    width: calc(100% - 300px); /* Adjust map width when nav is visible */
}

.nav-content {
    padding: 10px;
}

.nav-section {
    margin-bottom: 10px;
}

.nav-section h3 {
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.sub-project-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

/* Map Controls - Right Side Panel */
.map-controls-container {
    position: absolute;
    right: 10px;
    top: 80px;
    bottom: 80px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.map-control-group {
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 5px;
    pointer-events: auto;
}

/* Leaflet Control Positioning */
.leaflet-right .leaflet-control {
    margin-right: 15px;
    clear: both;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    color: #666 !important;
    font-size: 18px !important;
}

.leaflet-control-locate {
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.leaflet-control-locate a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    color: #666 !important;
    font-size: 18px !important;
}

/* Measure Control Styling */
.leaflet-control-measure {
    background: white !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.leaflet-control-measure .leaflet-control-measure-toggle,
.leaflet-control-measure .leaflet-control-measure-toggle:hover {
    width: 36px !important;
    height: 36px !important;
    background-size: 20px !important;
    background-position: center !important;
}

/* Draw Control Styling */
.leaflet-draw {
    margin-top: 10px !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.leaflet-draw-toolbar {
    border-radius: 4px !important;
}

.leaflet-draw-toolbar a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

/* Coordinates Box Styling */
.coordinates-box {
    position: absolute;
    right: 15px;
    bottom: 20px;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 13px;
    min-width: 180px;
    z-index: 1000;
}

.coordinates-box table {
    margin: 0;
    border-collapse: collapse;
}

.coordinates-box td {
    padding: 3px 6px;
}

.coordinates-box td:first-child {
    font-weight: bold;
    color: #666;
}

/* Hover effects for controls */
.leaflet-control-zoom a:hover,
.leaflet-control-locate a:hover,
.leaflet-draw-toolbar a:hover {
    background-color: #f4f4f4 !important;
}

/* Active state for controls */
.leaflet-control-zoom a:active,
.leaflet-control-locate a:active,
.leaflet-draw-toolbar a:active {
    background-color: #e8e8e8 !important;
} 