/* Shared ReGen brand logo — landing, auth pages, dashboard */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.92;
}

.logo--static {
  cursor: default;
}

.logo--static:hover {
  opacity: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 1.35rem;
  font-weight: 800;
}

.logo-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 5px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  display: block;
}

/* Auth pages (login, register) — navbar match landing page */

.auth-navbar {
  width: 100%;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(30, 100, 95, 0.12);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.auth-navbar .logo-text {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.auth-navbar .logo-tagline {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.auth-nav-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.auth-nav-link--ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.auth-nav-link--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
}

.auth-nav-link--teal {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(38, 166, 154, 0.35);
}

.auth-nav-link--teal:hover {
  background: rgba(38, 166, 154, 0.55);
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .auth-navbar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .auth-navbar .logo-text {
    font-size: 1.2rem;
  }

  .auth-navbar .logo-img {
    height: 38px;
    max-width: 46px;
  }
}

@media (max-width: 480px) {
  .auth-navbar {
    padding: 12px 15px;
  }

  .auth-navbar .logo-text {
    font-size: 1.1rem;
  }

  .auth-nav-link {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* Dashboard header */
body[data-theme="dark"] .header .logo-text {
  color: #ffffff;
}

body[data-theme="dark"] .header .logo-tagline {
  color: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"] .header .logo-text {
  color: #2d3436;
}

body[data-theme="light"] .header .logo-tagline {
  color: #636e72;
}

body[data-theme="light"] .header .logo-mark {
  border: 1px solid rgba(45, 52, 54, 0.12);
  box-shadow: 0 2px 10px rgba(38, 166, 154, 0.08);
}

@media (max-width: 768px) {
  .header .logo-text {
    font-size: 1.15rem;
  }

  .header .logo-img {
    height: 38px;
    max-width: 46px;
  }
}

@media (max-width: 480px) {
  .header .logo-text {
    font-size: 1rem;
  }

  .header .logo-tagline {
    font-size: 0.58rem;
  }

  .header .logo-img {
    height: 34px;
    max-width: 42px;
  }
}

/* ---------------------------------------------------------------------------
   Dropdown (<select>) readability — UNIFIED dark popup across the system
   ---------------------------------------------------------------------------
   Chromium-based browsers on Windows render the <option> popup using the OS
   native control, which often ignores CSS on the parent <select>. This leaves
   options invisible (e.g. white text on the OS-default white popup) and is
   what produced the broken "Generator Type" dropdown screenshot.

   The fix below forces every <select> in the system to display its dropdown
   list with a solid black/dark background and white text, regardless of the
   page theme. We use:
   - `color-scheme: dark` directly on the <select> so Chrome on Windows
     renders the native popup chrome (scrollbar, hover bar) in dark mode.
   - `!important` on the option/optgroup background + color to win over the
     more specific rules scattered in dashboard-shell.css and booking.css.
   - High-contrast hover/selected state in ReGen orange so the highlighted
     row is unmistakable.
   --------------------------------------------------------------------------- */

select {
  color-scheme: dark !important;
}

select option,
select optgroup {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

select option:checked,
select option:hover,
select option:focus {
  background-color: #FF8C00 !important;
  color: #ffffff !important;
}

select option:disabled {
  background-color: #1e293b !important;
  color: #94A3B8 !important;
}
