

/* Create a flex container for the sidebar and map */
#main-container {
	display: flex;
	flex-direction: row; /* Horizontal layout */
	height: 100vh; /* Full height of viewport */
}

/* Sidebar (Left side - Nav Buttons) */
#categories {
	width: 250px; /* Sidebar width */
	height: 100%;
	background-color: #f8f9fa; /* Light background */
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* Align buttons to the top */
	position: fixed;
}

/* Styling nav buttons inside the sidebar */
#nav-buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px; /* Space between buttons */
	height: 100%;
	padding-top: 10%;
	padding-bottom: 75%;
}

#nav-buttons button {
	width: 90%; /* Make buttons wider */
}

/* Main Content Area (Right side - Map) */

#query_tab {
	position: absolute;
	left: 0;
	width: 21%;
	height: 100%;
	background-color: white; /* Ensure visibility */
	visibility: hidden;
	padding: 10px; /* Add padding inside the query tab */
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* Align items at the top */
}

#nav-attributes {
	padding-left: 6%;
	padding-right: 6%;
	display: flex;
	flex-direction: column;
	gap: 10px; /* Adds space between form elements */
}

#sub-heading {
	padding-top: 10px; /* Reduce padding to align properly */
	font-weight: bold;
	text-align: center;
}

/* Style the buttons properly */
#query_tab button {
	width: 90%;
	margin: 10px auto; /* Centers button and provides spacing */
	padding: 8px;
	font-size: 14px;
	text-align: center;
}

/* Back button specific styling */
#query_tab button:first-of-type {
	background-color: #408080;
	border: none;
	padding: 8px;
	font-weight: bold;
}

/* #map {
	position: absolute;
	width: 79%;
	height: 100%;
	left: 21%;
}

#nav-attributes {
	padding-left: 6%;
	padding-right: 6%;
}

#heading-div {
	background-color: #378b29;
	background-image: linear-gradient(315deg, #378b29 0%, #ffffff 85%);
	padding: 10px;
	margin-top: -8px;
}

#heading {
	text-align: center;
	margin-top: 0;
}

#sub-heading {
	padding-top: 20%;
	padding-left: 6%;
	font-weight: bold;
}

#categories {
	position: absolute;
	padding: 0.5% 0%;
	left: 0%;
	width: 21%;
	height: 100%;
}

#nav-buttons {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
	padding-top: 50%;
	padding-bottom: 75%;
}

#nav-buttons button {
	width: 60%;
} */

/* #query_tab {
	position: absolute;
	padding: 0.5% 0%;
	left: 0%;
	width: 21%;
	height: 100%;
	visibility: hidden;
} */

/* #legend {
     z-index: 11;
     padding: 2px 4px;
     border: 1px solid grey;
     position: absolute;
     bottom: 7%;
     height: 0%;
     overflow: scroll;
     width: 0%;
     right: 0%;
     z-index: 10000;
     background-color: #ffffff;
     font-weight: bold;
     visibility: hidden;

 } */
/* #legend {
	z-index: 10000; Ensure it stays on top
	padding: 10px;
	border: 1px solid #ccc;
	position: absolute;
	bottom: 5%;
	right: 2%;
	height: auto;
	max-height: 250px;
	width: 0%; Initially hidden
	overflow-y: auto;
	background-color: #f9f9f9;
	font-weight: normal;
	font-size: 14px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out, opacity 0.3s;
	opacity: 0; Make it fully hidden
}
 */
/* Styling for the legend header */
/* #legend h6 {
	margin-top: 0;
	font-size: 16px;
	color: #333;
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
	margin-bottom: 10px;
}
 */
/* Styling for legend items */
#legend div {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

#legend div span {
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#legend.visible {
	width: 300px; /* Set your preferred width */
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Styling for legend items */
#legend div {
	display: flex;
	align-items: center;
	margin-bottom: 8px; /* Spacing between items */
}

/* Media query for responsiveness */
@media ( max-width : 768px) {
	#legend {
		width: 90%; /* Make legend responsive for smaller screens */
		right: 5%; /* Center it better */
		bottom: 5%; /* Adjust position */
	}
}

#year {
	position: relative;
	width: 85%;
}

#state {
	position: relative;
	width: 85%;
}

#district {
	position: relative;
	width: 85%;
}

#layer {
	position: relative;
	width: 85%;
}

#attributes {
	position: relative;
	/* width: 85%; */
}

#operator {
	position: relative;
	/* width: 85%; */
}

#value {
	position: relative;
	/* width: 85%; */
}

#layer1 {
	position: relative;
	width: 85%;
}

#wms_layers_btn {
	position: absolute;
	z-index: 600;
	top: 1%;
	left: 30%;
}

#query_panel_btn {
	position: absolute;
	z-index: 600;
	top: 1%;
	left: 10%;
}

#legend_btn {
	position: absolute;
	z-index: 600;
	bottom: 2%;
	right: 0%;
}

#table_wms_layers {
	white-space: nowrap;
	grid-template-areas: "head-fixed" "body-scrollable";
}

#table_wms_layers th {
	position: -webkit-sticky;
	/* for Safari */
	position: sticky;
	top: 0px;
	background-color: rgb(122, 209, 100);
}

.modal-dialog {
	max-width: 60% !important;
	height: 60% !important;
	top: 18% !important;
}

#clear_btn {
	position: absolute;
	z-index: 500;
	top: 1%;
	left: 50%;
}

#info_btn {
	position: absolute;
	z-index: 500;
	top: 1%;
	left: 80%;
}

#measuretype {
	position: absolute;
	z-index: 600;
	top: 1%;
	left: 60%;
	width: 15%;
}

#scale_bar {
	position: absolute;
	z-index: 500;
	bottom: 0%;
	left: 20%;
}

#scale_bar1 {
	/* color: red; */
	font-weight: bold;
	position: absolute;
	z-index: 500;
	top: 22.875em;
	left: 0.5em;
}

.ol-popup-content {
	max-width: 500px;
}

.ol-scale-text {
	/* color: red; */
	font-weight: bold;
}

.layer-switcher.shown {
	max-height: 465px;
}

.ol-control button {
	background-color: rgba(40, 40, 40, 0.8) !important;
}

.ol-control button:hover {
	background-color: rgba(40, 40, 40, 1) !important;
}

.ol-mouse-position {
	top: 95%;
	left: 0.5%;
	position: absolute;
	font-size: 14px;
	font-weight: bold;
}

.ol-zoom-extent {
	top: 3.8em;
	left: 0.5em;
	position: absolute;
}

.ol-zoomslider {
	top: 5.8em;
	left: 0.5em;
	position: absolute;
	height: 200px;
}

.ol-geocoder.gcd-gl-container {
	top: 21.875em;
	left: 0.5em;
	position: absolute;
}

.tooltip {
	position: relative;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	color: white;
	padding: 4px 8px;
	opacity: 0.7;
	white-space: nowrap;
}

.tooltip-measure {
	opacity: 1;
	font-weight: bold;
}

.tooltip-static {
	background-color: #ffcc33;
	color: black;
	border: 1px solid white;
}

.tooltip-measure:before, .tooltip-static:before {
	border-top: 6px solid rgba(0, 0, 0, 0.5);
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
	content: "";
	position: absolute;
	bottom: -6px;
	margin-left: -7px;
	left: 50%;
}

.tooltip-static:before {
	border-top-color: #ffcc33;
}

#table_data {
	width: 100%;
	max-height: 200px; /* Adjust as needed */
	overflow-y: auto;
	background: white;
	border-top: 1px solid #ccc;
	z-index: 10;
}

#featureDataTable {
	width: 100%;
	border-collapse: collapse;
}



