body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
#header {
    width: 100%;
    background-color: #2b5760;
    padding: 19px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    /* border-bottom: 2px solid #555; */
    border: 2px solid black;
}
#content {
    display: flex;
    flex: 1;
}
#sidebar {
    width: 300px;
    background-color: #2b5760;
    padding: 15px;
    max-height: calc(100vh - 85px);
    min-height: 49px;
    overflow-y: auto;
}

.accordion {
    background-color: #222;
    color: #ffe9bf;
    cursor: pointer;
    padding: 12px;
    margin-top: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 14px;
    font-weight: bold;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}
.accordion:hover, .active {
    background-color: #333;
}
.accordion i {
    transition: transform 0.3s ease;
}
.active i {
    transform: rotate(180deg);
}
.accordion-content {
    display: none;
    padding: 10px;
    background-color: #111;
}
#sidebar label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: white;
}
#sidebar select, #sidebar input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    background-color: #222;
    color: white;
}
.menu-item {
    background-color: #222;
    color: #ffe9bf;
    padding: 12px;
    margin-top: 5px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}
.menu-item:hover {
    background-color: #333;
}
#mapContainer {
    flex: 1;
    position: relative;
    min-height: 100vh;
}
#mapDiv {
    height: calc(100vh - 55px);
    width: 100%;
}
#infoPanel {
    width: 446px;
    background-color: #2b5760;
    padding: 15px;
    max-height: calc(100vh - 85px);
    min-height: 49px;
    overflow-x: hidden;
    overflow-y: auto;
    
}
.stat-box {
    background: #333;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}
.chart-container {
    width: 95%;
    height: 250px;
    background: #222;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}
canvas {
    background-color: #111;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

.table-container {
    margin-top: 15px;
    background: #222;
    padding: 10px;
    border-radius: 5px;
    color: white;
    height: 48%;
    overflow-x: auto;
    overflow-y: auto;
}

.table-container h3 {
    text-align: center;
    margin-bottom: 10px;
    /* color: #FFA500; Orange heading */
    color: #ffe9bf; /* Orange heading */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

table th, table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: center;
}

table th {
    background: #333;
    color: #ffe9bf; /* Highlighted column headers */
}

table tr:nth-child(even) {
    background: #2a2a2a; /* Alternate row color */
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 21px;
    top: 6px;
}

.header-logo {
    height: 50px; /* Adjust logo size */
    width: auto;
    border-radius: 50px;
}
.before-h1 {
    left: 17px;
    top: 7px;
    position: absolute;
}
.header-title {
    margin-left: 60px;
    flex-grow: 1;  /* Ensures it takes up available space */
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: white;
}
.esri-ui .esri-attribution {  
    margin-bottom: 8px !important;   
}

/* Target the entire scrollbar */
::-webkit-scrollbar {
    width: 8px;   /* vertical scrollbar width */
    height: 8px;  /* horizontal scrollbar height */
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
  
  /* Thumb (the draggable part) */
  ::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 10px;
  }
  
  /* On hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }


  .map-btn {
    padding: 6px 23px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    background-color: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #34495e;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s;
    font-family: "Segoe UI", sans-serif;
}

.map-btn:hover {
    background-color: #3c5a72;
    border-color: #3c5a72;
}