/* Reset some default browser styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure full height for the page */
html, body {
  height: 100%;
  margin: 0;
}

/* Use Roboto as the default font and set up flex layout for full height */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* The login container takes available space between header (if any) and footer */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling the login form */
.login-form {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Styling the button with the company accent color */
.btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #015291; /* company accent color */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background: #013e7d; /* slightly darker shade for hover */
}

/* Footer styling */
footer {
  background-color: #f4f4f4;
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid #ddd;
}

.footer-content p {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .login-form {
    margin: 0 10px;
  }
}

/* Main Navigation Styling */
.main-nav {
  background-color: #015291; /* Company accent color */
  position: relative;
  z-index: 1000;
}

/* Hamburger Menu Toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
}

/* Navigation Menu Styles */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.nav-menu li {
  position: relative;
}
.nav-menu li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
}
.nav-menu li a:hover {
  background-color: #013e7d; /* A darker shade for hover */
}

/* Dropdown Menu for Tasks */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #015291;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 2000;
}
.dropdown-menu li a {
  padding: 10px 20px;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li a {
    padding: 15px;
    border-top: 1px solid #013e7d;
  }
  /* Disable hover for dropdown on mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  .dropdown .dropdown-menu {
    position: static;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* Responsive Tasks Table Styles */
.tasks-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.table-header, .table-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.table-cell {
  flex: 1;
  padding: 5px 10px;
  min-width: 80px;
}

/* Table header styling */
.table-header {
  background-color: #015291;
  color: #fff;
  font-weight: bold;
}

/* Priority Row Colors */
.high-priority {
  background-color: #ffcccc; /* Light red for high priority */
}

.medium-priority {
  background-color: #fff0b3; /* Light yellow for medium priority */
}

.low-priority {
  background-color: #ccffcc; /* Light green for low priority */
}

/* Edit Button Styling */
.btn-edit {
  background-color: #015291;
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
}

.btn-edit:hover {
  background-color: #013e7d;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .table-header, .table-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .table-cell {
    min-width: 100%;
    padding: 8px 10px;
  }
}

/* Global container for all page content */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto; /* Centers container */
  padding: 20px;
}

/* Adjusted Button Styling */
.btn {
  display: inline-block;
  font-size: 0.9rem;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  margin-right: 10px;
  /* Use your company accent color for default background */
  background-color: #015291;
  color: #fff;
}

.btn:hover {
  background-color: #013e7d;
}

/* Ensuring buttons in groups (if any) float next to each other */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Optional: spacing between buttons */
}

/* Example for smaller button text on mobile */
@media (max-width: 600px) {
  .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

/* For the edit task form, ensure all form elements are full width */
.edit-task-form input,
.edit-task-form select,
.edit-task-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

/* Container for the buttons on the edit task page */
.edit-task-form .btn-group {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}

/* Style each button inside the button group */
.edit-task-form .btn-group .btn {
  width: 40%;
  box-sizing: border-box;
  margin: 0; /* remove any default margin */
  padding: 8px 15px; /* adjust padding as needed */
}

/* Float the first button to the left and the second to the right */
.edit-task-form .btn-group .btn:first-child {
  float: left;
}
.edit-task-form .btn-group .btn:last-child {
  float: right;
}

