:root {
  --cream: #F7F3EE;
  --warm-white: #FDFAF6;
  --beige: #E8DDD0;
  --sand: #D4C4B0;
  --gold: #B8975A;
  --gold-light: #D0AE72;
  --dark: #2A1F1A;
  --dark2: #3A2B24;
  --text: #3E342C;
  --muted: #7A6E68;
  --success: #4f8f55;
  --warning: #b98124;
  --danger: #b94a48;
  --shadow: 0 12px 40px rgba(44,36,32,.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, var(--warm-white), var(--cream));
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 430px;
  background: rgba(253,250,246,.95);
  border: 1px solid var(--beige);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.brand-title {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 5px;
}
.brand-title span { color: var(--gold); }
.brand-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 7px;
}
.form-input, .status-select {
  width: 100%;
  border: 1px solid var(--beige);
  background: white;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.form-input:focus, .status-select:focus { border-color: var(--gold); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: .25s ease;
}
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-dark { background: var(--dark); color: white; }
.btn-light { background: var(--cream); color: var(--text); border: 1px solid var(--beige); }
.btn-full { width: 100%; }
.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-error { background: #fff0f0; border: 1px solid #f0c4c4; color: var(--danger); }
.alert-success { background: #eef8ef; border: 1px solid #b9dabd; color: var(--success); }
.admin-shell { max-width: 1280px; margin: 0 auto; padding: 24px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(253,250,246,.96);
  border: 1px solid var(--beige);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 8px 26px rgba(44,36,32,.06);
  margin-bottom: 22px;
}
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat-card {
  background: white;
  border: 1px solid var(--beige);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(44,36,32,.055);
}
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat-num { color: var(--dark); font-size: 30px; font-weight: 800; margin-top: 5px; }
.panel {
  background: white;
  border: 1px solid var(--beige);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--beige);
}
.panel-title { font-size: 18px; font-weight: 800; color: var(--dark); }
.search-box {
  max-width: 340px;
  width: 100%;
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #f1e8de; vertical-align: top; }
th { background: var(--cream); color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 14px; color: var(--text); }
.ref { font-weight: 800; color: var(--dark); }
.muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.status-new { background: #fff5df; color: var(--warning); }
.status-confirmed { background: #eaf6ff; color: #27739f; }
.status-completed { background: #eef8ef; color: var(--success); }
.status-cancelled { background: #fff0f0; color: var(--danger); }
.notes-cell { max-width: 220px; }
.empty-state { padding: 54px 20px; text-align: center; color: var(--muted); }
.footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
@media (max-width: 850px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-head { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
}
@media (max-width: 520px) {
  .admin-shell { padding: 14px; }
  .login-card { padding: 24px; }
  .stats-grid { grid-template-columns: 1fr; }
}
.login-links {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}
.login-links a {
  color: var(--gold);
  font-weight: 700;
}
.login-links a:hover { color: var(--dark); }


/* ===== Premium dark admin refresh to match public website ===== */
:root {
  --cream: #17100a;
  --warm-white: #080503;
  --beige: rgba(214,173,88,.22);
  --gold: #d6ad58;
  --gold-light: #ffe9a9;
  --dark: #070503;
  --dark2: #120c07;
  --text: #ead8bb;
  --muted: #bda77e;
  --shadow: 0 24px 80px rgba(0,0,0,.52);
}
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: radial-gradient(circle at 16% 0%, rgba(214,173,88,.16), transparent 25rem), linear-gradient(135deg, #070503, #130d08 55%, #050301);
  color: var(--text);
}
.login-card, .topbar, .panel, .stat-card {
  background: linear-gradient(155deg, rgba(255,233,169,.07), rgba(255,233,169,.025));
  border-color: rgba(214,173,88,.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.brand-title, .panel-title, .stat-num, .ref, td strong { color: var(--gold-light); }
.brand-title span, .form-label, th, .stat-label { color: var(--gold); }
.brand-subtitle, .muted, .footer-note, .empty-state { color: rgba(234,216,187,.62); }
.form-input, .status-select, .search-box {
  background: rgba(255,233,169,.055);
  color: var(--text);
  border-color: rgba(214,173,88,.2);
}
.form-input:focus, .status-select:focus, .search-box:focus { border-color: var(--gold); }
.btn-gold { background: linear-gradient(135deg, #9b6d25, #d6ad58, #ffe9a9); color: #100a05; }
.btn-dark { background: #050301; color: var(--gold-light); border: 1px solid rgba(214,173,88,.18); }
.btn-light { background: rgba(255,233,169,.06); color: var(--gold-light); border-color: rgba(214,173,88,.22); }
th { background: rgba(214,173,88,.08); }
th, td { border-bottom-color: rgba(214,173,88,.12); }
.alert-error { background: rgba(185,74,72,.12); border-color: rgba(185,74,72,.32); }
.alert-success { background: rgba(79,143,85,.13); border-color: rgba(79,143,85,.3); }


/* ===== Admin usability fixes ===== */
body { font-size: 16px; line-height: 1.65; }
.login-card { max-width: 460px; }
.brand-subtitle, .muted, .footer-note, .empty-state { color: rgba(250,231,196,.76) !important; }
.form-input, .status-select, .search-box { font-size: 15px; line-height: 1.4; }
.password-field { position: relative; display: flex; align-items: center; }
.password-field .form-input { padding-right: 52px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214,173,88,.22);
  border-radius: 999px;
  background: rgba(255,233,169,.08);
  color: var(--gold-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}
.password-toggle:hover, .password-toggle:focus-visible { border-color: var(--gold); background: rgba(255,233,169,.14); outline: none; }
.password-toggle .eye-closed { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: inline; }
.table-wrap { overflow-x: auto; }
td, th { line-height: 1.55; }

/* June 2026 booking quote visibility */
.counter-amount {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 135, 76, .10);
  color: #1d7a44;
  border: 1px solid rgba(36, 135, 76, .20);
  font-size: .82rem;
  font-weight: 700;
}
