/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basic styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-y: scroll; /* Allows smooth scrolling if needed */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
  margin: 0;
}

.menu-btn {
  font-size: 35px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 1100;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 10px 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 30px;
}

/* Drawer (menu) styling */
.drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: #333;
  color: white;
  padding: 70px 20px 20px;
  transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
  z-index: 900;
  transform: translateX(0);
}

.drawer.open {
  left: 0;
  transform: translateX(0);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 800;
}

.overlay.active {
  display: block;
}

/* Styling for main content */
main {
  padding: 80px 20px;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

/* Responsive behavior for smaller screens */
@media (max-width: 600px) {
  nav ul li {
    margin: 5px 0;
  }
}

/* Below is CSS for the Customers and Maps page */
.details {
  display: none;
}

.link {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
  line-height: 1.8;
  font-size: x-large;
}

.link:hover {
  text-decoration: none;
}

.row {
  margin-bottom: 10px;
}

div.main_page {
  position: relative;
  display: table;
  width: 800px;
  margin-bottom: 3px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border-width: 2px;
  border-color: #212738;
  border-style: solid;
  background-color: #FFFFFF;
  text-align: center;
}

div.page_header {
  height: 99px;
  width: 100%;
  background-color: #F5F6F7;
}

div.page_header span {
  margin: 15px 0px 0px 50px;
  font-size: 180%;
  font-weight: bold;
}

div.page_header img {
  margin: 3px 0px 0px 40px;
  border: 0px;
}

/* Table of contents */
div.table_of_contents {
  clear: left;
  min-width: 200px;
  margin: 3px;
  background-color: #FFFFFF;
  text-align: left;
}

div.table_of_contents_item {
  clear: left;
  width: 100%;
  margin: 4px 0;
  background-color: #FFFFFF;
  color: #000000;
  text-align: left;
}

div.table_of_contents_item a {
  margin: 6px 0 0 6px;
}

div.content_section {
  margin: 3px;
  background-color: #FFFFFF;
  text-align: left;
}

div.content_section_text {
  padding: 4px 8px;
  color: #000000;
  font-size: 100%;
}

div.section_header {
  padding: 3px 6px;
  background-color: #8E9CB2;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 112%;
  text-align: center;
}

.floating_element {
  position: relative;
  float: left;
}

div.table_of_contents_item a,
div.content_section_text a {
  text-decoration: none;
  font-weight: bold;
}

div.table_of_contents_item a:link,
div.table_of_contents_item a:visited,
div.table_of_contents_item a:active {
  color: #000000;
}

div.table_of_contents_item a:hover {
  background-color: #000000;
  color: #FFFFFF;
}

div.content_section_text a:link,
div.content_section_text a:visited,
div.content_section_text a:active {
  background-color: #DCDFE6;
  color: #000000;
}

div.content_section_text a:hover {
  background-color: #000000;
  color: #DCDFE6;
}

/* Expandable Table Styles for the myTasks.php */
.expandable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

#customers .expandable-table {
  margin-top: 0px;
}

.expandable-table th,
.expandable-table td {
  border: 1px solid black;
  padding: 10px;
  text-align: left;
}

.expandable-table .extra-info {
  /* display: none; */
  height: 0px;
  background-color: #f9f9f9;
}

.expandable-table .clickable-row {
  cursor: pointer;
  background-color: #f2f2f2;
  scroll-margin-top: 100px;
}

.expandable-table .clickable-row:hover {
  background-color: #ddd;
}

/* Sticky first row */
.expandable-table tr:first-child th {
  position: sticky;
  top: 40px;
  background-color: #fff;
  z-index: 10;
}

.extra-info {
  transition: height 0.9s ease;
  /* Transition effect for height */
  display: none;
}


/* Login CSS */

/* Centering the login container in the top half */
.login-container {
  height: 100vh;
  /* Full height of the viewport */
  display: flex;
  flex-direction: column;
  /* Stack logo and form vertically */
  justify-content: flex-start;
  /* Align to the top */
  align-items: center;
  /* Center horizontally */
  padding-top: 10vh;
  /* Push content down from the top (about 10% of screen height) */
  background-color: #f0f0f0;
  /* Soft background color */
}

/* Styling the logo */
.login-logo {
  width: 150px;
  /* Adjust size of the logo */
  margin-bottom: 20px;
  /* Add space between logo and form */
}

/* Styling the form */
.login-form {
  background-color: #fff;
  /* White background */
  padding: 20px;
  /* Padding inside the form */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Soft shadow for 3D effect */
  width: 100%;
  max-width: 400px;
  /* Max width for larger screens */
}

/* Styling the labels and input fields */
.login-form label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  /* Full width */
  padding: 15px;
  /* Increased padding for bigger input fields */
  margin: 10px 0 20px 0;
  /* Spacing between input fields */
  border: 1px solid #ccc;
  /* Light border */
  border-radius: 4px;
  /* Rounded edges */
  font-size: 18px;
  /* Larger font for readability */
}

/* Styling the button */
.login-form button {
  width: 100%;
  padding: 15px;
  background-color: #4CAF50;
  /* Green background */
  color: white;
  /* White text */
  border: none;
  /* Remove borders */
  border-radius: 4px;
  /* Rounded edges */
  font-size: 18px;
  /* Larger font */
  font-weight: bold;
  /* Bold text for the button */
  cursor: pointer;
  /* Pointer cursor on hover */
  transition: background-color 0.3s ease;
  /* Smooth transition for hover */
}

/* Button hover effect */
.login-form button:hover {
  background-color: #45a049;
  /* Darker green on hover */
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .login-container {
    padding: 0 15px;
    /* Add some padding on the container for mobile */
    padding-top: 7vh;
    /* Push form down slightly more on mobile for keyboard visibility */
  }

  .login-logo {
    width: 120px;
    /* Smaller logo on mobile */
    margin-bottom: 15px;
  }

  .login-form {
    padding: 20px;
    /* Maintain padding for mobile */
  }

  .login-form input[type="text"],
  .login-form input[type="password"],
  .login-form button {
    width: calc(100% + 30px);
    /* Ensure input fields go edge-to-edge */
    margin-left: -15px;
    /* Adjust margin to align with the screen edges */
    font-size: 16px;
    /* Slightly smaller font for smaller screens */
  }
}

.checkbox-button {
  display: block;
  /* Make label block-level for full width */
  width: 100%;
  /* Full width */
  position: relative;
  /* Position for input */
  cursor: pointer;
  /* Pointer cursor on hover */
  /* padding: 10px; Padding for button-like effect */
  text-align: center;
  /* Center text */
  border: 2px solid #000000;
  /* Border color */
  border-radius: 5px;
  /* Rounded corners */
  background-color: #f0f0f0;
  /* Default background color */
  transition: background-color 0.3s, color 0.3s;
  /* Smooth transition */
}

.checkbox-button input {
  display: none;
  /* Hide the checkbox */
}

/* Checked state styles */
.checkbox-button input:checked+span {
  background-color: lightgreen;
  /* Background color when checked */
  color: white;
  /* Text color when checked */
}

/* Optional: Add a span for custom button style */
.checkbox-button span {
  display: inline-block;
  /* Allow span to be styled */
  width: 100%;
  /* Full width for the span */
}

/* Date Input Styles */
input[type="date"] {
  width: 100%;
  /* Full width */
  padding: 10px;
  /* Padding for better appearance */
  border: 2px solid black;
  /* Thin black outline */
  border-radius: 5px;
  /* Rounded corners */
  background-color: #f0f0f0;
  /* Background color */
  transition: border-color 0.3s;
  /* Smooth transition for border color */
}



/* Button Styles */
.button-custom {
  font-size: large;
  height: 43px;
  width: 100%;
  /* Full width */
  padding: 10px;
  /* Padding for better appearance */
  border: 2px solid black;
  /* Thin black outline */
  border-radius: 5px;
  /* Rounded corners */
  background-color: #f0f0f0;
  /* Default background color */
  color: black;
  /* Text color */
  cursor: pointer;
  /* Pointer cursor on hover */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  /* Smooth transition */
}

/* Button hover effect */
.button-custom:hover {
  background-color: lightgreen;
  /* Background color on hover */
  color: white;
  /* Text color on hover */
}

/* Button focus style */
.button-custom:focus {
  border-color: green;
  /* Change border to green on focus */
}

.date-button-container {
  display: flex;
  /* Enables Flexbox layout */
  gap: 5px;
  /* Optional: Space between the date input and the button */
  align-items: center;
  /* Ensures both items are vertically aligned */
}

/* Scope styles to only apply within the #taskList container */
#taskList input[type="checkbox"] {
  display: none;
  /* Hide the checkboxes */
}

#taskList tr.selected {
  background-color: lightblue;
  /* Highlight selected rows */
}



/* Hide the entire first column (checkbox column) */
#taskList th:first-child,
#taskList td:first-child {
  display: none;
  /* Hide the first column */
}


.filter-section #areaDropdown,
#addTask,
#showMap,
#usersDropdown {
  width: 100%;
  height: 40px;
  font-size: large;
}

.filter-section #areaDropdown {
  position: fixed;
  top: 40px;
  z-index: 10;
  text-align: center;
}

.filter-section #addTask {
  position: fixed;
  top: 80px;
  z-index: 10;
}

.filter-section #showMap {
  position: fixed;
  top: 120px;
  z-index: 10;
}

.filter-section #usersDropdown {
  position: fixed;
  top: 40px;
  z-index: 20;
  text-align: center;
}

#taskList .expandable-table tr:first-child th {
  position: sticky;
  top: 160px;
  background-color: #fff;
  z-index: 10;
}

#taskList .expandable-table tbody {
  border-top-style: solid;
  border-top-width: 140px;
  background-color: #fff;
  z-index: 0;
  position: relative;
  top: 140px;
}

#taskList .expandable-table {
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
}


.ownerDropdown {
  width: 100%;
  min-width: 100px;
  height: 40px;

  padding: 0px;
  text-align: center;
  font-size: medium;
  margin: 0px;
}

.search-container {


  width: 100%;
  background-color: #f8f8f8; /* Light background */
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Slight shadow for depth */
  z-index: 1000; /* Keeps it above other elements */
}

.search-container input[type="text"] {
  width: 100%; /* Full width of the container */
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

.search-container input[type="text"]:focus {
  border-color: #007bff; /* Highlight color on focus */
}