/* Main menu styles */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0077B6;
    padding: 10px 20px;
    z-index: 1000;
    color: white;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 1rem;
  }

  /* Keep first dropdown left-aligned (no translate offset) */
  .menu .dropdown:first-child .dropdown-content {
    transform: translateX(0%);
  }

  /* Beta / warning banner shown below the navbar */
  .beta-warning {
    background-color: #ffcccb;
    color: #8a1f1f;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-top: 1px solid #c70000;
    border-bottom: 1px solid #c70000;
  }
  
  .menu .menu-left, .menu .menu-center, .menu .menu-right {
    display: flex;
    align-items: center;
  }
  
  .menu .menu-center {
    justify-content: center;
    flex-grow: 1;
  }
  
  .menu .menu-right {
    margin-left: auto;
    display: flex;
    gap: 15px; /* Space between icons */
  }
  
  .menu .dropdown {
    position: relative;
    display: inline-block;
    margin-right: 20px; /* Add margin between dropdowns */
  }
  
  .menu .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;
    border: 1px solid #ccc;
    border-radius: 5px;
    top: 100%;
    padding: 10px 0; /* Add padding to dropdown content */
    text-align: left; /* Align text to left inside dropdown */
  }
  
  .menu .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    white-space: nowrap;
  }
  
  .menu .dropdown-content a:hover {
    background-color: #005994;
    color: white;
  }
  
  .menu .dropdown-content.show {
    display: block;
  }
  
  .menu .dropdown-content.dropdown-right {
    right: 0;
    left: auto;
  }
  
  .menu .hamburger, .menu .user-icon, .menu .home-icon, .menu .report-icon, .menu .fa-business-time {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: white;
  }
  
  .menu .menu-center span {
    cursor: pointer;
    margin: 0 15px;
    text-align: center; /* Center the text */
  }
  
  .user-info {
    padding: 12px 16px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    color: #0077B6; /* Change text color to a dark blue for better visibility */
  }
  
  @media (max-width: 768px) {
    .menu .menu-center span {
      display: none;
    }
  }
  .home-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  
  .home-icon {
    width: 20px; /* Adjust width as necessary */
    height: auto;
    margin-right: 8px; /* Adds spacing between image and text */
    vertical-align: middle;
  }

  /* ── Reliquary nav-primary-link (clickable top-level label) ── */
  .menu .nav-primary-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu .nav-primary-link:hover {
    color: #cce8ff;
  }

  /* ── Reliquary category dropdown ── */
  .menu .reliquary-menu {
    min-width: 190px;
  }

  /* ── Category rows with right-arrow flyouts ── */
  .menu .has-submenu {
    position: relative;
  }

  .menu .has-submenu > a.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: black;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
  }

  .menu .has-submenu > a.category-row:hover {
    background-color: #005994;
    color: white;
  }

  .menu .has-submenu > a.category-row:hover .flyout-arrow {
    color: white;
  }

  .menu .flyout-arrow {
    font-size: 0.7rem;
    color: #888;
    flex-shrink: 0;
  }

  /* ── Flyout submenu (slides right) ── */
  .menu .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f9f9f9;
    min-width: 210px;
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.18);
    z-index: 10;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 0;
  }

  .menu .has-submenu:hover > .submenu {
    display: block;
  }

  .menu .submenu a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
  }

  .menu .submenu a:hover {
    background-color: #005994;
    color: white;
  }

  .menu .submenu .submenu-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 6px 0;
  }