/* File name = styles.css (cleaned + consistent across pages) */

/* =========================
   Theme tokens (single source)
   ========================= */
:root{
  /* Core palette */
  --bg: #F6F7FB;
  --card: rgba(255,255,255,0.88);
  --card-strong: rgba(255,255,255,0.94);

  --text: #0f172a;
  --muted: #5b6b7b;

  /* Brand accents */
  --accent: #2563eb;          /* blue */
  --accent-soft: rgba(37,99,235,0.12);

  --ok: #10b981;              /* green */
  --ok-soft: rgba(16,185,129,0.14);

  --danger: #ef4444;          /* red */
  --danger-soft: rgba(239,68,68,0.14);

  --warn: #f59e0b;            /* amber */
  --warn-soft: rgba(245,158,11,0.18);

  /* Surfaces */
  --border: rgba(15,23,42,0.10);
  --border-2: rgba(15,23,42,0.06);
  --shadow: 0 16px 45px rgba(15,23,42,0.10);
  --shadow-2: 0 10px 26px rgba(15,23,42,0.08);

  --radius: 18px;
}

/* =========================
   Base / reset
   ========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}
a{ color: inherit; }
[hidden]{ display:none !important; }

/* =========================
   Layout
   ========================= */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px 60px;
}

/* Default grids used across pages */
.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  margin-top:18px;
}
@media (max-width: 920px){ .grid{ grid-template-columns: 1fr; } }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:18px;
}
@media (max-width: 920px){ .grid2{ grid-template-columns: 1fr; } }

/* Top bar helpers (booking pages) */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 560px){
  .actions{ width:100%; }
  .actions .btn{ flex:1; justify-content:center; }
}

/* =========================
   Nav
   ========================= */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;

  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);

  box-shadow: var(--shadow-2);
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  letter-spacing:.2px;
}
.badge{
  font-size:12px;
  padding:4px 10px;
  border:1px solid var(--border-2);
  border-radius:999px;
  color: rgba(15,23,42,0.70);
  background: rgba(15,23,42,0.03);
}
.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width: 560px){
  .nav{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .navlinks{ width:100%; }
  .navlinks .btn{ width:100%; justify-content:center; }
}

/* =========================
   Buttons (match booking.css vibe)
   ========================= */
.btn{
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(15,23,42,0.04);
  color: var(--text);

  padding: 10px 14px;
  border-radius: 14px;
  cursor:pointer;

  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  text-decoration:none;

  display:inline-flex;
  align-items:center;
  gap:8px;

  font-weight: 900;
  letter-spacing: 0.1px;
}
.btn:hover{ background: rgba(15,23,42,0.06); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

/* Primary = soft blue */
.btn.primary{
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.28);
}
.btn.primary:hover{ background: rgba(37,99,235,0.16); }

/* Danger */
.btn.danger{
  background: var(--danger-soft);
  border-color: rgba(239,68,68,0.30);
  color: rgba(127,29,29,1);
}

/* OK */
.btn.ok{
  background: var(--ok-soft);
  border-color: rgba(16,185,129,0.28);
  color: rgba(6,95,70,1);
}

/* Booking wizard states (used in booking.css / wizard) */
.btn.is-disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: saturate(.7);
}
.btn.is-disabled:hover{ transform:none; }

.btn.primary.is-ready{
  background: var(--ok) !important;
  border-color: var(--ok) !important;
  color: #fff !important;
}

/* Back button (warm amber like booking.css) */
.btn.backBtn{
  background: var(--warn-soft) !important;
  border-color: rgba(245,158,11,0.35) !important;
  color: rgba(15,23,42,0.92) !important;
  font-weight: 950 !important;
}

/* Make top-right booking nav buttons look like your booking.css (amber pills) */
#loginBtn, #myBookingsBtn, #logoutBtn{
  font-weight: 950 !important;
  font-size: 16px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;

  background: rgba(245,158,11,0.18) !important;
  border: 1px solid rgba(245,158,11,0.34) !important;
  color: #111827 !important;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}
#loginBtn:hover, #myBookingsBtn:hover, #logoutBtn:hover{
  background: rgba(245,158,11,0.26) !important;
  transform: translateY(-1px);
}

/* Bigger tap targets on phones */
@media (max-width: 560px){
  .btn{ padding: 12px 14px; }
}

/* =========================
   Cards
   ========================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.card h2{
  margin:0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.2px;
}
.cardheader{
  padding:18px 18px 12px;
  border-bottom: 1px solid var(--border-2);
}
.cardbody{ padding:18px; }

.sub{
  color: rgba(15,23,42,0.62);
  font-size: 13px;
  line-height: 1.45;
}
.small{
  font-size: 12px;
  color: rgba(15,23,42,0.62);
}

/* =========================
   Forms
   ========================= */
label{
  display:block;
  font-size:12px;
  color: rgba(15,23,42,0.62);
  margin: 0 0 6px;
  font-weight: 800;
}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  outline:none;
  border: 1px solid rgba(15,23,42,0.12);
  background: var(--card-strong);
  color: var(--text);
}
input::placeholder, textarea::placeholder{ color: rgba(15,23,42,0.45); }
input:focus, textarea:focus, select:focus{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
textarea{ min-height: 96px; resize: vertical; }

hr{
  border:none;
  border-top: 1px solid var(--border-2);
  margin:14px 0;
}

/* =========================
   Table + wrapper
   ========================= */
.tableWrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
}
.table{
  width:100%;
  border-collapse:collapse;
}
.table th,.table td{
  padding:10px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  vertical-align:top;
}
.table th{
  text-align:left;
  font-size:12px;
  color: rgba(15,23,42,0.60);
  font-weight: 900;
}

/* =========================
   Toast
   ========================= */
.toast{
  position: fixed;
  right:16px;
  bottom:16px;
  max-width:420px;

  background: rgba(15,23,42,0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);

  border-radius:16px;
  padding:12px 12px;
  box-shadow: var(--shadow);
  display:none;
}
.toast.show{ display:block; }

/* Touch devices don't have hover */
@media (hover: none){
  .btn:hover{ transform:none; }
}


/* =========================
   Mobile-safe responsiveness (NO JS impact)
   - Only adjusts layout/spacing
   - Does NOT rename classes/ids
   ========================= */

/* Prevent iOS Safari zoom on focus by keeping controls >= 16px */
@media (max-width: 560px){
  input, select, textarea{ font-size: 16px; }
}

@media (max-width: 560px){
  .container{ padding: 18px 12px 44px; }

  .cardheader{ padding: 14px 14px 10px; }
  .cardbody{ padding: 14px; }

  /* Keep nav/brand readable without overflowing */
  .brand{ min-width: 0; }
  .badge{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Tables: keep inside viewport and allow horizontal scroll */
  .tableWrap{ border-radius: 14px; }
  .table th, .table td{ padding: 9px 8px; }

  /* Toast should never go off-screen */
  .toast{
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* Very small phones */
@media (max-width: 380px){
  .btn{ padding: 12px 12px; }
  h1{ font-size: 22px; }
  .card h2{ font-size: 17px; }
}


/* ✅ Sticky Progress Bar */
.ab-progress{
  position: sticky;
  top: 56px;               /* change if your navbar height differs */
  z-index: 9999;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ab-progress-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.ab-step{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 120px;
}

.ab-dot{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.7);
  color: rgba(0,0,0,0.55);
}

.ab-label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
}

.ab-line{
  flex: 1;
  height: 2px;
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
}

/* completed */
.ab-step.done .ab-dot{
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.8);
  color: rgba(16,185,129,1);
}
.ab-step.done .ab-label{ color: rgba(16,185,129,1); }

/* current */
.ab-step.active .ab-dot{
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.85);
  color: rgba(37,99,235,1);
}
.ab-step.active .ab-label{ color: rgba(37,99,235,1); }

/* mobile */
@media (max-width: 700px){
  .ab-step{ min-width: auto; }
  .ab-label{ display:none; } /* keep it clean on mobile */
  .ab-progress-inner{ gap: 8px; }
}
/* =======================
/* Consistent top action buttons across ALL pages */
#loginBtn, #myBookingsBtn, #logoutBtn,
#signoutBtn, #saveProfileBtn, #myBookingsMakeBtn{
  font-weight: 950 !important;
  font-size: 16px !important;
  padding: 12px 18px !important;
  border-radius: 14px !important;

  /* ✅ same amber style as booking page */
  background: rgba(245,158,11,0.18) !important;
  border: 1px solid rgba(245,158,11,0.34) !important;
  color: #111827 !important;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
}

#loginBtn:hover, #myBookingsBtn:hover, #logoutBtn:hover,
#signoutBtn:hover, #saveProfileBtn:hover, #myBookingsMakeBtn:hover{
  background: rgba(245,158,11,0.26) !important;
  transform: translateY(-1px);
}

/* ================================
   Fixed Top-Left Logo (CSS only)
   ================================ */
/* Clickable top-left logo */
.siteLogoLink{
  position: fixed;
  top: 0px;
  left: 18px;
  width: 120px;
  height: 120px;

  background-image: url("./logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  z-index: 50;              /* above UI */
  cursor: pointer;
  border-radius: 14px;

  /* subtle hover affordance */
  opacity: 0.98;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.siteLogoLink:hover{
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(15,23,42,0.14);
}

@media (max-width: 700px){
  .siteLogoLink{
    width: 84px;
    height: 84px;
    left: 10px;
    top: 6px;
  }
  .container{ padding-top: 24px; }
}
/* ===============================
   MOBILE FRIENDLY PATCH (SAFE)
   Paste at end of styles.css
   =============================== */

/* 1) Make the fixed top-left logo not overlap content on small screens
   Scope this ONLY to pages that actually include .siteLogoLink */
@media (max-width: 700px){
  .siteLogoLink ~ .container{
    padding-top: 96px; /* enough space for fixed logo */
  }
}

/* 2) Sticky progress bar top offset: prevent weird overlap on mobile */
@media (max-width: 700px){
  .ab-progress{ top: 0px; } /* safer if nav height changes/wraps */
}

/* 3) Better button tap targets on phones without changing style */
@media (max-width: 560px){
  .btn{
    min-height: 46px;
  }
  input, select, textarea{
    min-height: 46px;
  }
}

/* 4) Tables: guarantee scrolling instead of squishing */
.tableWrap{
  max-width: 100%;
}

/* 5) Prevent horizontal scrolling from any child layout */
html, body{ overflow-x: hidden; }
.container{ overflow-x: clip; }

/* 6) Grid padding tweak on small screens (same design, less cramped) */
@media (max-width: 560px){
  .container{ padding-left: 14px; padding-right: 14px; }
}
