body {
    margin: 2px;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#right-panel {
    background-color: white; /* Keeps background for contrast */
    padding: 15px;
    width: 37%; /* Reduced width for a smaller panel */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 27%; /* Slightly adjusted position from the top */
    right: 56%;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    max-height: 60vh; /* Reduced max height */
}

#search-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reduced gap between elements */
}

#search-container label {
    font-weight: bold;
    margin-bottom: 3px; /* Reduced margin below labels */
    font-size: 14px; /* Slightly smaller font size */
}

#search-container input[type="text"],
#search-container input[type="date"],
#search-container select {
    width: 100%;
    padding: 6px; /* Reduced padding */
    margin-bottom: 5px; /* Reduced margin below inputs */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px; /* Consistent smaller font size */
}

#search-container button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px; /* Reduced padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    font-size: 14px; /* Slightly smaller font size */
}

#search-container button:hover {
    background-color: #45a049;
}

#polygonForm {
    background-color: white;
    padding: 20px;
    width: 300px; /* Adjust width as needed */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: absolute; /* Position form absolutely */
    top: 30%; /* Adjust position from the top */
    right: 20px; /* Adjust position from the right */
    z-index: 1000; /* Ensure it's above the map */
    display: none; /* Initially hidden */
}

#table-container {
    background-color: white;
    padding: 20px;
    width: 50%; /* Adjust width as needed */
    border: 2px solid #ccc;
    border-radius: 8px;
    max-height: 400px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: absolute; /* Position form absolutely */
    top: 27%; /* Adjust position from the top */
    right: 1%; /* Adjust position from the right */
    z-index: 1000; /* Ensure it's above the map */
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
	display: none; /* Initially hidden */
}



#parent-container {
    overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
}

#verify-container {
    background-color: white;
    padding: 20px;
    width: 50%; /* Adjust width as needed */
    height: 400px; /* Set a fixed height for the container */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: absolute; /* Position form absolutely */
    top: 25%; /* Adjust position from the top */
    right: 1%; /* Adjust position from the right */
    z-index: 1000; /* Ensure it's above the map */
    display: none; /* Initially hidden */
    
    flex-direction: column;
    justify-content: space-between; /* Ensures the form and preview occupy distinct sections */
}



.verify-container form {
    height: 100%; /* Form occupies 40% of the container height */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview-container {
    height: 60%; /* Preview container occupies the remaining 60% */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    overflow: hidden; /* Prevents the image from overflowing the container */
}

.image-preview {
    display: none;
    max-width: 100%;
    max-height: 100%; /* Ensures the image height does not exceed the height of the container */
}

.verify-container input[type="file"] {
    display: none;
}


#verify-container2 {
    background-color: white;
    padding: 20px;
    width: 50%; /* Adjust width as needed */
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: absolute; /* Position form absolutely */
    top: 27%; /* Adjust position from the top */
    right: 1%; /* Adjust position from the right */
    z-index: 1000; /* Ensure it's above the map */
    display: none; /* Initially hidden */
}

#chart-container {
    width: 50%;
    height: 50%;  /* Adjust to the full height of the container */
    max-width: 50%;  /* Prevents overflow */
    max-height: 50%;
	background-color: white;
	border: 2px solid #ccc;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	color: black;
	font-weight: bold;
    position: absolute;
	top: 27%; /* Adjust position from the top */
    right: 1%;
	display: none;
	z-index: 1500;
}

#chart {
    width: 100%;
    height: 100%;  /* The chart will scale with the container */
	color: black;
	font-weight: bold;
}


#verify-container2 form {
	height: 50%;
}


.image-container {
            flex-grow: 1;
            max-height: 180px;
            overflow-y: auto;
        }

        .image-container div {
            margin-bottom: 20px;
        }
		

img {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 5px;
        }

#data-table {
             width: 100%;
    height: 100%; /* Table takes up full height of container */
    border-collapse: collapse;
    table-layout: fixed;
        }
		

        #data-table th,
        #data-table td {
            border: 1px solid #ddd;
            padding: 1px;
            text-align: left;
			font-size: 18px;
			
        }
		
		#data-table td {
        font-size: 18px; /* Increase font size for larger screens */
    }
	

        #data-table th {
            background-color: #f2f2f2;
        }
		
		

        #data-table tr:hover {
            background-color: #f5f5f5;
        }
		
		#dataSelector {
        width: 15%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 75%;
        right: 10px;
		display: flex;
		flex-direction:row;
		border: 1px solid maroon;
        border-radius: 4px;
		z-index: 1000;
    }
		
		
		
		#rowCountDisplay {
            margin-top: 10px;
            color: #666;
        }

#polygonForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#polygonForm input[type="text"],
#polygonForm input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#polygonForm button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#polygonForm button:hover {
    background-color: #218838;
}





.message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    z-index: 9999;
}

.message.success {
    background-color: #28a745;
}

.message.error {
    background-color: #dc3545;
}

header {
    background-color: brown;
    color: white;
    text-align: left;
    padding: 5px 5px;
    font-size: 15px;
    font-weight: bold;
}

footer {
    background-color: brown;
    color: white;
    text-align: center;
    padding: 5px 5px;
    font-size: 13px;
}

#map {
    flex: 1;
    position: relative;
}

.cont {
    width: 80%;
    margin: 20px auto;
    background-color: rgb(80, 151, 107);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

form {
    overflow-y: auto;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

form input[type="text"],
form select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

input[type="submit"] {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}


#btn-container {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
    gap: 5px;
}

#btn-container h1 {
    display: flex;
    justify-content: flex-left;
    margin: 10px 0;
    gap: 5px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Custom Alert Modal Styles */
.custom-alert {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

.custom-alert-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-alert-content p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.custom-alert-content button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.custom-alert-content button:hover {
    background-color: #0056b3;
}
/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        height: 100%;
        padding: 0 4px;
    }
	
	#chart-container {
    width: 50%;
    height: 50%;  /* Adjust to the full height of the container */
    max-width: 50%;  /* Prevents overflow */
    max-height: 50%;
	background-color: white;
	border: 2px solid #ccc;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	color: black;
	font-weight: bold;
    position: absolute;
	top: 27%; /* Adjust position from the top */
    right: 1%;
	display: none;
	z-index: 1500;
}
	

#chart {
    width: 100%;
    height: 100%;  /* The chart will scale with the container */
	color: black;
	font-weight: bold;
}

    
    #polygonForm {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	
	
	
	#parent-container {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#verify-container {
        overflow-y: auto;
        width: 50%;
        height: 400px;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
    
    .preview-container {
        height: 60%; /* Preview container occupies the remaining 60% */
    }

    .image-preview {
        max-height: 100%; /* Ensures the image height does not exceed the height of the container */
    }
	
	#verify-container2 {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#table-container {
        width: 100%; /* Adjust for smaller screens */
        padding: 5px;
        top: 40%;
        right: 10px;
        max-height: 250px;
        overflow-y: auto;
    }
	#dataSelector {
        width: 8%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 75%;
        right: 10px;
		display: flex;
		flex-direction:row;
		border: 1px solid maroon;
        border-radius: 4px;
		z-index: 1000;
    }
	
	#data-table th,
    #data-table td {
        font-size: 8px; /* Adjust font size for medium screens */
    }
	#data-table {
	overflow-y: auto;
	}
	
	
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        height: 100%;
        padding: 0 4px;
    }
	
	h1 {
		font-size: 13px;
	}
	
	h2 {
		font-size: 12px;
	}
		
	
	.toggle-icon {
    width: 10px;
    height: 10px;
    vertical-align: middle;
}
#chart-container {
    width: 50%;
    height: 50%;  /* Adjust to the full height of the container */
    max-width: 50%;  /* Prevents overflow */
    max-height: 50%;
	background-color: white;
	border: 2px solid #ccc;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	color: black;
	font-weight: bold;
    position: absolute;
	top: 27%; /* Adjust position from the top */
    right: 4%;
	display: none;
	z-index: 1500;
}

#chart {
    width: 100%;
    height: 100%;  /* The chart will scale with the container */
	color: black;
	font-weight: bold;
}

    
    #polygonForm {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#table-container {
        width: 100%; /* Adjust for smaller screens */
        padding: 5px;
        top: 42%;
        right: 10px;
        max-height: 250px;
        overflow-y: auto;
    }
	#right-panel {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#parent-container {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	
	#verify-container {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#verify-container2 {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	
	#data-table {
            border-collapse: collapse;
            width: 100%;
			background-color: transparent;
			height: 100%;
        }
		
		#dataSelector {
        width: 15%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 85%;
        right: 10px;
		display: flex;
		flex-direction:row;
		border: 1px solid maroon;
        border-radius: 4px;
		z-index: 1000;
    }
		#data-table {
	overflow-y: auto;
	}
		
		#data-table th,
    #data-table td {
        font-size: 8px; /* Adjust font size for medium screens */
    }

    #map {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        height: 100%;
        padding: 0 4px;
    }
	.toggle-icon {
    width: 10px;
    height: 10px;
    vertical-align: middle;
}

#chart-container {
    width: 50%;
    height: 50%;  /* Adjust to the full height of the container */
    max-width: 50%;  /* Prevents overflow */
    max-height: 50%;
	background-color: white;
	border: 2px solid #ccc;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	color: black;
	font-weight: bold;
    position: absolute;
	top: 27%; /* Adjust position from the top */
    right: 4%;
	display: none;
	z-index: 1500;
}

#chart {
    width: 100%;
    height: 100%;  /* The chart will scale with the container */
	color: black;
	font-weight: bold;
}

    #polygonForm {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#table-container {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 42%;
        right: 20px;
    }
	#right-panel {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#parent-container {
        overflow-y: auto;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
		
		width: 100%;
    height: 100%;  /* Adjust to the full height of the container */
    max-width: 100%;  /* Prevents overflow */
    max-height: 100%;
    position: relative;
    }
	

	#verify-container {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	#verify-container2 {
        overflow-y: auto;
        width: 50%;
        padding: 5px;
        background-color: transparent;
        position: absolute;
        top: 40%;
        right: 20px;
    }
	
	#dataSelector {
        width: 25%;
        padding: 1px;
		margin: 1px;
        background-color: transparent;
        position: absolute;
        top: 85%;
        right: 10px;
		display: flex;
		flex-direction:center;
		border: 1px solid maroon;
        border-radius: 4px;
		z-index: 1000;
    }
	#data-table {
            border-collapse: collapse;
            width: 100%;
			background-color: transparent;
			height: 100%;
        }
		#data-table {
	overflow-y: auto;
	}
		
		#data-table th,
    #data-table td {
        font-size: 8px; /* Adjust font size for medium screens */
    }

    #map {
        height: 550px;
    }
}



#toggle-button, #toggle-button2, #toggle-button3, #toggle-button4, #toggle-button5, #enableLocationBtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
}
