/* Reusable container */

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.header-container a  {
    text-decoration: none;
}

/* HEADER layout */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-size: 26px;
  font-weight: bold;
  color: #333;
}

/* Nav */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  cursor: pointer;
  font-size: 1em;
  color: #333 !important;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #43A047; /* green hover */
  text-decoration: underline;
}

.nav-link.active,
.nav-link.is-active {           /* alias for JS-added class */
  color: #2ecc71;
  font-weight: bold;
  text-decoration: underline;
}

/* Auth buttons container */
.auth-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Login button (link style) */
.text-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1em;
  cursor: pointer;
  padding: 0.4em 0.8em;
  transition: color 0.2s;
}

.text-btn:hover {
  color: #2ecc71;
  text-decoration: underline;
}

/* Owner area */
.owner-info {
  position: relative;
  cursor: pointer;
}

.owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.owner-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
  text-align: left;
  min-width: 200px; /* or more if needed */
  max-width: 300px;  /* optional: to prevent it from growing too wide */
  word-wrap: break-word;
}

.owner-dropdown > div {
  padding: 10px;
  cursor: pointer;
}

.owner-dropdown > div:hover {
  background-color: #f0f0f0;
}


/*
.owner-info {
  position: relative;
  cursor: pointer;
}

.owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.owner-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
  text-align: left;
  min-width: 200px;
  max-width: 300px;
  word-wrap: break-word;
}
*/
/* (Not present in original) */
/* .owner-name { } */

/* Logout pill */
.logout-btn {
  padding: 0.4em 0.8em;
  border: none;
  background-color: #ccc;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #d32f2f;
}

/* Green underline bar under header */
.header-underline {
  height: 3px;
  background-color: #00C853;
  margin-top: 12px;
  border-radius: 2px;
}
