/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    
}
.content {          
    
      margin: 0;
      padding: 0;
      width: 100%; 
        
    }
    

body {
    font-family: Arial, sans-serif;
}
/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 3px;
    margin: 0;
    padding: 1rem;
    color: white;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    width: 50px;
}

.navbar-title {
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    flex: 1;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links li a:hover {
    color: #f4f4f4;
}

/* Toggle button for mobile view */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Close icon styles */
.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fc0404;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
}

#map {
    width: 100%;
    height:800px;
    /* border: 1px #90EE90; */
    border-radius: 10px;
    box-shadow: 5px 5px 5px 5px #a5c1ff;
}
#sidebar {
    width: 300px;
    padding: 10px;
    background: linear-gradient(120deg, #1cf353, #0c6cf2);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 150px;
    float: left;
    z-index: 1000;
}
.collapse {
    transition: max-height 0.5s ease-out;
    overflow: hidden;
  }
  
  .collapse:not(.show) {
    max-height: 0;
  }
  
  .collapse.show {
    max-height: 500px; /* Adjust based on expected content size */
  }
  
#sidebar ul {
    list-style: none;
    padding: 0;
}
#sidebar ul li {
    margin: 10px 0;
    }
.layer-item {
    cursor: pointer;
    padding: 5px;
    background-color: #fff;;
    border-radius: 5px;
    height: 30px;
}
.layer-item:hover {
    background-color: #d4d4d4;
}

/* LEGEND */
.legend-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}
.legend-item:hover {
    background-color: #d4d4d4;
}
.legend-item input {
    margin-right: 10px;
}

* Basic styling for info panel */
#info-panel {
    position: absolute;
    top: -200px;
    right: 80px; 
    max-width: 300px;
    background-color: #f0f8ff; 
    border: 2px solid #3cb371; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    color: #006400; 
    font-family: Arial, sans-serif;
    z-index: 1000;
}

/* Styling for the info table */
#info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#info-table caption {
    font-size: 1.2em;
    font-weight: bold;
    color: #2e8b57; /* SeaGreen */
    margin-bottom: 5px;
}

#info-table th,
#info-table td {
    padding: 8px;
    text-align: left;
}

#info-table th {
    background-color: #3cb371; /* MediumSeaGreen */
    color: #fff;
    font-weight: bold;
}

#info-table td {
    border-bottom: 1px solid #ddd;
    color: #2f4f4f; /* DarkSlateGray */
}

#info-table .separator {
    background-color: #f0f8ff; /* Light blue */
    color: #006400; /* DarkGreen */
    text-align: center;
    font-weight: bold;
}

#info-table tr:nth-child(even) {
    background-color: #e6ffe6; /* Light green */
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .logo-container {
        flex-basis: 100%;
        justify-content: center;
    }

    .navbar-title {
        font-size: 1rem;
        text-align: center;
        flex-basis: 100%;
        margin-top: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .close-icon {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links.active ~ .menu-toggle {
        display: none;
    }

    .nav-links.active ~ .close-icon {
        display: flex;
        
    }

    .nav-links li {
        margin: 1.5rem 0;
    }
    
    #map{
        width: 100%;
        height: 400px;
        
    }
    #sidebar{
        width: 300px;
        padding: 20px;
        background: linear-gradient(120deg, #1cf353, #0c6cf2);
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        top: 200px;
        right: 2px;
        position: absolute;
        z-index: 1000;
    }
}
/* Responsive styling */
@media (max-width: 768px) {
    #info-panel {
        max-width: 250px;
        right: 20px;
        padding: 10px;
    }

    #info-table th,
    #info-table td {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    #info-panel {
        position: static; 
        margin: 10px 0;
    }

    #info-table {
        font-size: 0.9em; 
    }
}


.ward-tooltip {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #333;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
}


#chart-sidebar {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    
    
}

.chart-container {
    width: 75%;
    height: auto;
    margin: 0 auto;
    
}
