header {
  margin: 0;
  padding: 0;
  border: 1px solid gray;
  background-color: white;
  color: black;
  text-align: center;
}

header .nav-list
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  header .nav-list{
    grid-template-columns: 1fr; /* stack vertically in one column */
    justify-items: center;
  }
}

header .header-left {
  display: flex;
  list-style: none;
  justify-content: flex-start;
}

header .header-center {
  display: flex;
  list-style: none;
  justify-content: center;
}

header .header-right {
  display: flex;
  list-style: none;
  justify-content: flex-end;
  padding-right: 20px;
}

header .nav-list li {
  padding-right: 1rem;
}

header a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease; /* Smooth hover transition */
}

header a:hover {
  color: #007bff;
}

header .dropdown
{
  /* This is crucial for positioning the dropdown content */
  position: relative; 
  display: inline-block;
}


header img
{
  /* border: 2px solid black; */
  display: block;
  padding: 0;
  margin: 0;
}

header #userInitials
{
  padding: 0 15px;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

header #userInitials:hover {
  background-color: #a0d0ff;
}

header #dropdownMenu
{
  /* Positions the menu absolutely relative to its parent .dropdown */
  position: absolute; 
  top: 100%; /* Positions the menu right below the button */
  right: 0; /* Aligns the right edge of the menu with the right edge of the button/container */
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  /* Hide by default */
  display: none;
}
header .dropdownItems li
{
  display: block;
  padding: 12px 16px;
}
header .dropdownItems li a
{
  text-decoration: none;
  color: darkblue;
}
header .dropdownItems li button
{
  text-decoration: none;
  background: #FF7070;
  color: black;
  border-radius: 10%;
}

.alert-header {
  font-size: 1.2rem;
  color: red;
  background-color: white;
  padding: 0 10px 0 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
}
