body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.login-container {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
}
.login-container h1 {
  margin: 0 0 20px;
  font-size: 24px;
  color: #333;
  text-align: center;
}
.login-container label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}
.login-container input[type="text"],
.login-container input[type="password"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.login-container button {
  width: 100%;
  padding: 10px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.login-container button:hover {
  background-color: #0056b3;
}
button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

/* Overlay styling with blurred background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
  backdrop-filter: blur(8px); /* Apply blur effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it is above other elements */
}


/* Overlay content container */
#center-div {
    position: relative; /* Ensure positioning context for the button */
    width: 90%; /* Responsive width */
    max-width: 800px; /* Max width for large screens */
    height: 80%; /* Allow dynamic height based on content */
    max-height: 80%; /* Prevent overflowing the viewport */
    background-color: #ffffff; /* Background for the content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow-y: auto; /* Add vertical scroll if content exceeds max height */
    padding: 20px; /* Padding for content */
	animation: fadeIn 0.3s ease; /* Fade-in animation */
}

/* Full-size content inside the centered div */
#response-div {
  width: 100%;
  height: auto; /* Dynamic height based on content */
}

/* Header bar styling */
#header-bar {
    display: flex; /* Flex container for title and close button */
    justify-content: space-between; /* Space between title and button */
    align-items: center; /* Vertically align items */
    margin-bottom: 15px; /* Space below the header */
}

/* Title styling */
#overlay-title {
    font-family: Arial, sans-serif;
    font-size: 18px; /* Slightly smaller than main headers */
    font-weight: bold;
    color: #555; /* Light black */
    margin: 0; /* Remove default margin for alignment */
}

/* Close button styling */
#close-overlay {
    background-color: #F44336; /* Red background */
    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    width: 30px; /* Square dimensions */
    height: 30px;
    border: none;
    border-radius: 5px; /* Slightly rounded edges */
    cursor: pointer;
    text-align: center;
    display: flex; /* Flexbox for centering */
    justify-content: center;
    align-items: center;
    line-height: 1; /* Prevent text misalignment */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

#close-overlay:hover {
    background-color: #D32F2F; /* Slightly darker red on hover */
    transform: scale(1.1); /* Slight enlargement */
}

/* Download Overlay Container */
#download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
    backdrop-filter: blur(8px); /* Apply a blurred effect */
    display: flex; /* Flexbox for centering */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above all other content */
}

/* Centered content */
#download-center-div {
    position: relative; /* Ensure positioning context for spinner or buttons */
    width: 90%;
    max-width: 800px; /* Max width for large screens */
    height: auto; /* Allow dynamic height based on content */
    background-color: #ffffff; /* Background for the content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow-y: auto; /* Add vertical scroll if content exceeds max height */
    padding: 20px; /* Padding for content */
    animation: fadeIn 0.3s ease; /* Fade-in animation */
}

/* Header bar styling */
#download-header-bar {
    display: flex;
    justify-content: center; /* Center the title */
    align-items: center; /* Vertically align items */
    margin-bottom: 20px;
}

#download-overlay-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #555; /* Light black */
    margin: 0; /* Remove default margin */
}

/* Response content container for the spinner and text */
#download-response-div {
    display: flex; /* Flex container for vertical and horizontal alignment */
    flex-direction: column; /* Stack text and spinner vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center align text */
    height: auto; /* Dynamic height based on content */
}

/* Spinner styling */
#download-loading-spinner {
    margin: 20px 0;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1); /* Light gray border */
    border-top: 4px solid #4CAF50; /* Green accent for spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation overlay */
#confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
    backdrop-filter: blur(8px); /* Apply a blurred effect */
    display: flex; /* Flexbox for centering */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above all other content */
}

/* Centered content */
.confirmation-center-div {
    position: relative;
    width: 90%;
    max-width: 400px; /* Smaller size for confirmation dialogs */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: fadeIn 0.3s ease; /* Smooth fade-in */
}

/* Header bar */
.confirmation-header-bar {
    display: flex;
    justify-content: center; /* Center the title */
    align-items: center;
    margin-bottom: 20px;
}

.confirmation-overlay-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #555;
    margin: 0;
}

/* Message styling */
.confirmation-message {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons row */
.confirmation-button-row {
    display: flex;
    gap: 15px; /* Space between Yes and No buttons */
    justify-content: center;
}

/* Yes button styling */
.confirmation-yes-button {
    background-color: #4CAF50; /* Green */
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.confirmation-yes-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* No button styling */
.confirmation-no-button {
    background-color: #F44336; /* Red */
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.confirmation-no-button:hover {
    background-color: #D32F2F;
    transform: scale(1.05);
}

/* General table styling */
table {
	width: 80%;
	border-collapse: collapse;
	font-family: Arial, sans-serif;
	font-weight: bold;
	font-size: 16px; /* Slightly larger font for modern look */
	color: #333; /* Softer black for text */
	line-height: 1.5; /* Better spacing between lines */
	text-align: left;
	margin: 20px 0;
	background-color: #f9f9f9;
}

/* Table header styling */
table th {
	background-color: #4CAF50;
	color: white;
	padding: 10px;
	text-transform: uppercase;
	font-weight: bold;
}

/* Table cell styling */
table td {
	padding: 10px;
	border: 1px solid #ddd;
}

/* Hover effect for rows */
table tr:hover {
	background-color: #e0f7fa !important;
	transition: background-color 0.3s ease;
}

/* Add some spacing between rows */
table tr {
	border-bottom: 1px solid #ddd;
}

/* Optional: Center table inside container */
table {
	margin: 0 auto;
}

/* Optional: Add a shadow for a modern look */
table {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Main container */
.tab-container {
	width: 80%;
	margin: 20px auto;
	padding: 50px 20px;
	background-color: #f9f9f9;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	min-height: 50px;
	transition: height 0.3s ease;
}

/* Tab menu */
.tab-menu {
	display: flex;
	justify-content: space-around;
	margin-bottom: 20px;
	border-bottom: 2px solid #ddd;
}

.tab-link {
	flex: 1;
	text-align: center;
	padding: 10px 0;
	cursor: pointer;
	background-color: transparent;
	border: none;
	font-size: 16px;
	font-weight: bold;
	color: #4CAF50;
	outline: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-link.active {
	border-bottom: 3px solid #4CAF50;
	color: #333;
}

.tab-link:hover {
	background-color: #e0f7fa;
}

/* Tab content */
.tab-content {
	display: none;
	font-size: 14px;
	color: #555;
}

/* Response content */
.response-content {
	font-size: 14px;
	color: #555;
}

/* Responsive behavior */
@media (max-width: 768px) {
	.tab-link {
		font-size: 14px;
		padding: 8px 0;
	}
	.tab-container {
		width: 95%;
	}
}

/* Main Header Styling */
.main-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 80%;
	margin: 0 auto;
	padding: 10px 0;
	border-bottom: 2px solid #ddd;
}

.main-header h1 {
	font-family: Arial, sans-serif;
	font-size: 28px;
	font-weight: bold;
	color: #4CAF50;
	letter-spacing: 1px;
	margin: 0;
}

.secondary-header h2 {
	font-family: Arial, sans-serif;
	font-size: 22px;
	font-weight: normal;
	color: #333; /* Neutral color for secondary headers */
	text-align: left;
	margin: 10px 0 20px;
	border-bottom: 2px solid #ddd; /* Underline for separation */
	padding-bottom: 5px;
	letter-spacing: 0.5px;
}

/* Optional Container Alignment for Consistency */
.main-header, .secondary-header {
	width: 80%;
	margin: 0 auto;
	text-align: left;
}

/* Button container */
.header-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Shared button styles */
.header-buttons button {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Settings button (Green) */
.settings-button {
    background-color: #4CAF50; /* Green */
}

.settings-button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
}

/* Logoff button (Red) */
.logoff-button {
    background-color: #F44336; /* Red */
}

.logoff-button:hover {
    background-color: #D32F2F; /* Slightly darker red on hover */
}

/* Style for the checkboxes */
table input[type="checkbox"] {
	width: 20px; /* Adjust size */
	height: 20px; /* Adjust size */
	margin: 0 auto; /* Center checkbox in table cell */
	cursor: pointer;
	accent-color: #4CAF50; /* Modern green color matching your theme */
	transition: transform 0.2s ease; /* Add smooth animation */
}

/* Hover and focus effects for checkboxes */
table input[type="checkbox"]:hover {
	transform: scale(1.2); /* Enlarge slightly on hover */
}

table input[type="checkbox"]:focus {
	outline: 2px solid #4CAF50; /* Green outline on focus */
	outline-offset: 2px;
}

/* Style for buttons inside the table */
table button {
	font-family: Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	color: white;
	background-color: #4CAF50; /* Match theme */
	border: none;
	border-radius: 5px;
	padding: 5px 10px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for buttons */
table button:hover {
	background-color: #45a049; /* Slightly darker green */
	transform: scale(1.05); /* Slight enlargement */
}

/* Align buttons in a row */
.tab-content .button-row {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px; /* Space after the button row */
}

/* Reuse table button styles */
.tab-content button {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #4CAF50; /* Green to match theme */
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tab-content button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    transform: scale(1.05); /* Slight enlargement */
}

/* Third-level header styling */
.tab-content h3 {
    font-family: Arial, sans-serif;
    font-size: 16px; /* Matches specified font size */
    font-weight: bold;
    color: #555; /* Softer black for consistency */
    margin: 20px 0 10px; /* Spacing around the header */
    border-bottom: 1px solid #ddd; /* Optional underline for structure */
    padding-bottom: 5px; /* Add space between text and underline */
}

/* Selection container */
.selection-container {
    width: 80%;
    margin: 0 auto 20px;
    font-family: Arial, sans-serif;
    text-align: left;
}

/* Third-level header styling */
.selection-container h3 {
    font-size: 16px;
    font-weight: bold;
    color: #555; /* Softer black */
    margin-bottom: 10px;
}

/* Button row styling */
.selection-container .button-row {
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Reuse table button styles for buttons */
.selection-container button {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.selection-container button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    transform: scale(1.05); /* Slight enlargement */
}

/* Style for the labels and inputs to align textboxes */
#edit-common-section label,
#edit-advanced-section label {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* Add space between fields */
    font-weight: bold; /* Keep descriptions bold for readability */
    color: #555; /* Softer black for consistency */
}

#edit-common-section input,
#edit-advanced-section input {
    width: 100%; /* Full width for input fields */
    max-width: 400px; /* Optional: Limit max width */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    margin-top: 5px; /* Space between label and input */
}

/* Add space between the last input and the buttons */
.button-row {
    margin-top: 20px; /* Space between last field and buttons */
    display: flex;
    gap: 15px; /* Space between buttons */
    justify-content: flex-start; /* Align buttons to the left */
}

/* Date range selection styling */
#date-range-selection {
    display: flex;
    gap: 20px; /* Space between Date From and Date To */
    margin-bottom: 20px;
}

#date-range-selection label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #555;
}

#date-range-selection input[type="date"] {
    width: 100%; /* Full width */
    max-width: 300px; /* Limit maximum width */
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    margin-top: 5px; /* Space between label and input */
}

/* Report selection button list styling */
#report-selection {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between buttons */
}

#report-selection button {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color: #4CAF50; /* Match previous button styles */
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: left; /* Align button text to the left */
}

#report-selection button:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    transform: scale(1.02); /* Slight enlargement */
}

/* Delete button styling */
.delete-button {
    background-color: #F44336 !important; /* Red for Delete */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-button:hover {
    background-color: #D32F2F; /* Slightly darker red on hover */
    transform: scale(1.05); /* Slight enlargement on hover */
}

/* Placeholder styling */
.placeholder {
    padding: 20px;
    border: 1px dashed #ddd;
    background-color: #f9f9f9;
    font-style: italic;
    text-align: center;
    color: #888;
    margin-top: 10px;
}

/* Footnote styling */
.footnote {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
    font-style: italic;
}

/* Overlay for the alert modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    backdrop-filter: blur(8px); /* Apply blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

/* Alert box styling */
.custom-alert-box {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%; /* Ensure responsiveness */
    width: 400px; /* Default width */
    animation: fadeIn 0.3s ease;
}

/* Message text styling */
.custom-alert-box p {
    margin: 0 0 20px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
}

/* OK button styling */
.custom-alert-box button {
    background-color: #007BFF; /* Blue color */
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-alert-box button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slight enlargement */
}

/* Fade-in animation for the modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Container for the SQL textarea */
#sql-container {
    width: 90%;
    height: 80%; /* 90% height minus approximate header and button space */
    margin: 10px auto 20px; /* Centered with some spacing */
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9; /* Light background for clarity */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

/* SQL textarea styling */
#sql-textarea {
    width: 100%;
    height: 300px;
    padding: 10px;
    font-family: monospace; /* Monospaced font for SQL */
    font-size: 14px;
    border: none;
    outline: none;
    box-sizing: border-box; /* Ensure padding is included in height/width */
}

/* Green button styling (Execute) */
.green-button {
    background-color: #4CAF50;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.green-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Red button styling (Cancel) */
.red-button {
    background-color: #F44336;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.red-button:hover {
    background-color: #D32F2F;
    transform: scale(1.05);
}

