body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.login-container img {
  max-width: 100%; /* Make sure the image doesn't overflow the container */
  height: auto; /* Maintain the aspect ratio */
  margin-bottom: 20px; /* Add space between the logo and the form */
  display: block; /* Center the image horizontally */
  margin-left: auto; /* Center the image horizontally */
  margin-right: auto; /* Center the image horizontally */
}

.header-container {
  background-color: #333;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Ensures the header stays on top */
}

.header-left {
  display: flex;
  align-items: center;
  flex-grow: 1; /* Allow the left section to take as much width as needed */
}

.header-right {
  margin-left: auto; /* Ensures the logout button is pushed to the right side */
}

.logo {
  height: 50px;
  margin-right: 20px; /* Adds space between the logo and the text */
  vertical-align: middle;
}

.welcome-message {
  color: white;
}

.user-photo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  margin-left: 10px;
}

.logout-button {
  color: white;
  background-color: #ff6347;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 20px; /* Adds space between the welcome message and button */
  margin-right: 40px; /* Move the button left by adding more right margin */
}

.logout-button:hover {
  background-color: #ff4500;
}

/* navbar – just add a z-index to be safe */
.navbar {
  display: flex;
  background-color: #333;
  font-family: Arial;
  position: fixed;
  top: 80px;
  right: 0;
  z-index: 950;
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: red;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.container {
  display: flex;
}

/* sidebar sits below header + navbar */
.sidebar {
  width: 200px;
  background: #333;
  position: fixed;
  top: 130px; /* was 100px */
  bottom: 0;
  padding-top: 20px;
}

.common-sidebar,
.position-sidebar {
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 15px;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
}

.content {
  margin-left: 220px;
  padding: 140px 20px 20px; /* Adjust padding-top to account for the fixed header height */
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-group label {
  width: 30%;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 65%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.button-container {
  display: flex;
  justify-content: center; /* Center the button horizontally */
  margin-top: 20px;
}

.button-container button {
  width: auto; /* Makes the button take only the space needed for the text */
  padding: 10px 20px; /* Adjusts padding for a more defined button size */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.button-container button:hover {
  background-color: #0056b3; /* Darken the button on hover */
}

/* Leave v2 layout tweaks */
#leaveModuleV2 {
  margin-top: 15px; /* space below the black header/nav bar */
}

#leaveModuleV2 h2 {
  margin-bottom: 8px; /* small gap between title and buttons */
}

#leaveModuleV2 .btn-group {
  margin-bottom: 10px; /* gap between buttons and the form card */
}

#leaveModuleV2 #leaveView {
  margin-top: 5px;
  display: flex;
  justify-content: flex-start; /* keep the card aligned to the left */
}

#leaveModuleV2 #leaveView .card {
  margin-top: 0; /* card flush with the #leaveView top */
}
