/* ----------------------------------------
   HALReserves.com — Cleaned & Reorganized CSS
   - Option A header styling (mild polish)
   - Top-to-bottom order matching HTML
   - No duplicate selectors or redundant rules
   - Paste this to replace your current CSS
   ---------------------------------------- */

/* 0) Fonts + Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* 1) Base body styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fc; /* preserved */
  color: #1b1045;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------
   NAVBAR / HEADER
   --------------------------- */

/* 2) Navbar container */
.navbar {
  background-color: #150c36; /* slightly richer than original #1b1045 for depth */
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* 3) Left: logo + title */
.logo,
.logo a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 60px;
  display: block;
}

/* 4) Right side container */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 5) User menu (badge + dropdown anchor) */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

/* 6) User badge */
#user-icon {
  background: linear-gradient(135deg, #f75c8b 0%, #ff447c 100%); /* Option A gradient */
  color: #fff;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 66px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
  user-select: none;
}

#user-icon:active { transform: translateY(0); }
#user-icon:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.22); }

/* 7) Dropdown panel */
#user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #ffffff;
  color: #1b1045;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(10,10,20,0.12);
  overflow: hidden;
  z-index: 1100;
  font-family: inherit;
  font-size: 0.95rem;
}

/* Use the existing .hidden utility to control visibility in your JS: */
.hidden { display: none; }

/* Each row */
.dropdown-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f1f6;
  background: white;
  transition: background .12s ease;
}

.dropdown-row:last-child { border-bottom: none; }

.dropdown-row strong { color: #1b1045; font-weight: 600; }

.dropdown-row:hover { background: #fafafa; }

/* Logout link styling */
.logout-link {
  color: #d9534f;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.logout-link:hover { text-decoration: underline; }

/* 8) Support/email icon (right-most) */
/* Prefer adding class="support-icon" to <img> for clarity */
.support-icon,
#nav-image-btn {
  width: 50px;
  height: 50px;
  display: inline-block;
  object-fit: contain;
  cursor: pointer;
  border-radius: 4px;
}

.support-icon:hover,
#nav-image-btn:hover { transform: scale(1.08); opacity: 1; }

/* ---------------------------
   MAIN / HERO / LAYOUT
   --------------------------- */

/* 9) Hero container (left + right) */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 0.5rem;
  flex-wrap: wrap;
}

/* 10) Left column (login form wrapper) */
.left {
  position: relative;
  flex: 0 0 480px;
  min-width: 320px; /* allow better small-screen fit */
}

/* 11) Login card (left) */
.login-left {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 12) Headings / form fields within login */
.login-heading {
  color: #1b1045;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 600;
}

.login-form input,
.login-form select,
.login-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 2px solid #d8d8e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
  background: #ffffff;
  color: inherit;
}

.login-form input:focus,
.login-form select:focus,
.login-form textarea:focus {
  border-color: #f75c8b;
  outline: none;
  box-shadow: 0 6px 18px rgba(247,92,139,0.08);
}

.btn-login {
  width: 100%;
  background-color: #f75c8b;
  color: #ffffff;
  border: none;
  padding: 0.82rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, transform .08s ease;
}

.btn-login:hover { background-color: #ff6e9c; transform: translateY(-1px); }

/* small utilities in form */
#msg { margin-top: 1rem; color: #c81d25; font-weight: 500; text-align: center; }
#agree { font-size: small; color: #555; }

/* 13) Right column content */
.right {
  flex: 1 1 auto;
  min-width: 260px;
}

.login-right {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* images in right card */
.login-image img {
  width: 100%;
  min-width: 240px;
  max-width: 720px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* 14) Lists inside right section */
.features, .notes {
  list-style: disc inside;
  text-align: left;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  color: #333;
  font-size: 0.95rem;
}

.features::before {
  content: "FEATURES";
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1b1045;
  margin-bottom: 0.4rem;
}

.notes::before {
  content: "NOTES";
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1b1045;
  margin-bottom: 0.4rem;
}

/* ---------------------------
   OVERLAYS / SPINNER
   --------------------------- */

.form-wrapper { position: relative; display: inline-block; width: 100%; }

.spinner-overlay {
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 900;
}

.spinner-overlay.hidden { display: none; }

/* spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e3b9c7;
  border-top: 4px solid #f75c8b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* optional disabled form appearance */
.login-form.disabled { opacity: 0.54; pointer-events: none; }

/* ---------------------------
   FOOTER
   --------------------------- */

footer {
  text-align: center;
  padding: 1rem;
  background-color: #150c36;
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 3rem;
}

/* ---------------------------
   RESPONSIVE (mobile-first breakpoints)
   --------------------------- */

@media (max-width: 1024px) {
  .left { flex: 0 0 420px; min-width: 300px; }
  .login-heading { font-size: 0.98rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0.6rem 1rem; }
  .hero { flex-direction: column; padding: 1.25rem; }
  .left, .right { max-width: 100%; flex-basis: 100%; }
  .login-right { margin-top: 1.25rem; }
  .logo span { font-size: 1.05rem; }
  #user-icon { padding: 6px 10px; min-width: 48px; font-size: 0.88rem; }
  #user-dropdown { right: 8px; left: auto; width: 200px; }
}

/* ---------------------------
   UTILITIES
   --------------------------- */

.hidden { display: none !important; }
.visually-hidden { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* small helper spacing utilities (optional) */
.mr-8 { margin-right: 8px; }
.ml-8 { margin-left: 8px; }
