
/* Container for the topbar navigation */
.topbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  background-color: #f0f0f0; /* Light gray backdrop */
  gap: 5px;
  overflow: visible;
  position: relative;
  border-bottom: 1px solid #ccc;
}

/* Individual menu items */
.topbar-nav a {
  display: inline-block;
  padding: 8px 12px;
  background-color: #ffffff; /* Square white background */
  color: #000000; /* Black text */
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px; /* Slight rounding for polish */
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover and active states */
.topbar-nav a:hover,
.topbar-nav a.active {
  background-color: #e0e0e0;
  color: #000;
  border-color: #aaa;
}


.user-info {
  margin-left: 1rem;
  font-weight: bold;
  color: #00ffcc;
}

.topbar-overflow {
  display: inline-block;
  position: relative;
}

.expand-btn {
  display: none; /* JS will toggle this */
  background: #eee;
  border: none;
  padding: 6px 10px;
  font-size: 1.2em;
  cursor: pointer;
}

.overflow-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
}


.overflow-menu.show {
  display: block;
}

.overflow-menu a,
.overflow-menu span {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
}
.topbar-login-form{
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 10px;
}
.topbar-login-form input,
.topbar-login-form button {
  display: block;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  margin: 0px auto;
  width: 80%;
  padding: 8px 12px;
  font-size: 14px;
}

.topbar-login-form input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
}