/* ═══════════════════════════════════════════════════
   THE PAGE LAGOS — MANAGEMENT SYSTEM
   Main Stylesheet  |  Light Theme + SEO + Responsive
═══════════════════════════════════════════════════ */

:root {
  /* Brand */
  --gold:             #C9A227;
  --gold-light:       #e8c547;
  --gold-dim:         rgba(201,162,39,.15);

  /* Sidebar (kept dark — premium contrast) */
  --sidebar-bg:       #0d0d0d;
  --sidebar-border:   #1a1a1a;
  --sidebar-text:     #999;

  /* Main content (light) */
  --bg-page:          #f4f5f7;
  --bg-surface:       #ffffff;
  --bg-surface-2:     #f9fafb;
  --bg-surface-3:     #f1f2f4;

  /* Text */
  --text-primary:     #1a1a2e;
  --text-secondary:   #4a4a6a;
  --text-muted:       #6b7280;

  /* Borders */
  --border:           #e2e4e9;
  --border-light:     #eef0f3;

  /* Shadows */
  --shadow-sm:        0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:        0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);

  /* Layout */
  --sidebar-w:        260px;
  --topbar-h:         56px;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ── Accessibility ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* ── Form labels ──────────────────────────────── */
label,
.form-label,
.col-form-label,
legend,
.form-check-label {
  color: var(--text-primary) !important;
  font-size: 12.5px;
  letter-spacing: .4px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════
   SIDEBAR  (dark — intentional brand choice)
════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 1040;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid var(--sidebar-border);
  scrollbar-width: thin;
  scrollbar-color: #2a2a2a transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

.sidebar-header {
  background: linear-gradient(135deg, #0d0d0d, #1a1500);
  border-bottom: 2px solid var(--gold);
  padding: 14px 16px;
  position: sticky; top: 0; z-index: 1;
}
.hotel-logo .brand-name {
  color: var(--gold);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  line-height: 1.2;
}
.hotel-logo .brand-sub { color: #555; font-size: 8px; letter-spacing: 2px; }

.branch-badge {
  background: rgba(201,162,39,.12);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,.3);
  font-size: 10px; padding: 2px 8px;
  border-radius: 10px; display: inline-block;
}

.sidebar-nav { list-style: none; padding: 6px 0; margin: 0; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  color: #999; text-decoration: none;
  font-size: 12.5px; letter-spacing: .2px;
  transition: all .18s;
  border-left: 3px solid transparent;
  min-height: 40px; /* touch-friendly */
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: var(--gold) !important;
  background: rgba(201,162,39,.07);
  border-left-color: var(--gold);
}
.sidebar-nav li a i { color: var(--gold); opacity: .7; font-size: 13px; width: 16px; flex-shrink: 0; }
.nav-section {
  color: var(--gold); font-size: 9.5px; font-weight: 700;
  letter-spacing: 2px; padding: 14px 16px 4px;
  opacity: .6; text-transform: uppercase;
}

/* ════════════════════════════════════════════════
   TOPBAR  (white / light)
════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  background: var(--bg-page);
}

.topbar {
  background: var(--bg-surface);
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.topbar .outlet-badge {
  font-size: 11px;
  background: var(--gold-dim);
  color: var(--gold); border-radius: 8px;
  padding: 3px 10px; white-space: nowrap;
  font-weight: 600;
}
.topbar .branch-badge { font-size: 11px; }

#sidebarToggle {
  background: var(--bg-surface-3);
  border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 6px;
  padding: 6px 11px; cursor: pointer;
  flex-shrink: 0; transition: all .18s;
}
#sidebarToggle:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

.topbar .brand-name { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }

/* ── Content Area ──────────────────────────────── */
.content-area { flex: 1; padding: 24px; }

/* ── Page titles ───────────────────────────────── */
.page-title { color: var(--text-primary); font-weight: 700; font-size: 1.3rem; }
h1, h2, h3, h4 { color: var(--text-primary); }

/* ════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.card-header {
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 12px 12px 0 0 !important;
  font-size: 13px; font-weight: 700;
  letter-spacing: .3px;
}
.card-body { color: var(--text-primary); }
.card-footer { background: var(--bg-surface-2); border-top: 1px solid var(--border); }

/* Stat cards */
.stat-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border) !important;
  transition: all .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-num {
  color: var(--text-primary); font-size: 2rem; font-weight: 700;
  line-height: 1.1;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.text-muted { color: var(--text-muted) !important; }

/* ════════════════════════════════════════════════
   TABLES
════════════════════════════════════════════════ */
.table {
  --bs-table-bg: var(--bg-surface);
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border-light);
  --bs-table-striped-bg: var(--bg-surface-2);
  font-size: 13px;
}
.table thead th {
  background: var(--bg-surface-3);
  color: var(--text-secondary);
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  padding: 11px 14px; white-space: nowrap;
}
.table tbody td {
  border-color: var(--border-light);
  padding: 11px 14px;
  vertical-align: middle;
  color: var(--text-primary);
}
.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(201,162,39,.06);
}

/* ════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════ */
.form-control, .form-select {
  background: var(--bg-surface) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  font-size: 13px;
  padding: 9px 12px;
}
.form-control::placeholder { color: var(--text-muted) !important; opacity: 1; }
.form-control:focus, .form-select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,162,39,.15) !important;
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
}
.form-select option { background: #fff; color: var(--text-primary); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

.input-group-text {
  background: var(--bg-surface-3); border-color: var(--border);
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn-gold {
  background: var(--gold); color: #000;
  font-weight: 700; border: none; font-size: 13px;
  border-radius: 8px; transition: all .18s;
}
.btn-gold:hover { background: var(--gold-light); color: #000; box-shadow: 0 4px 12px rgba(201,162,39,.3); }
.btn-gold:disabled { background: #d4b96a; color: #fff; }

.btn-outline-gold {
  border: 1.5px solid var(--gold); color: var(--gold); background: transparent;
  border-radius: 8px;
}
.btn-outline-gold:hover { background: var(--gold); color: #000; }

.btn { min-height: 36px; } /* touch-friendly minimum */
.btn-sm { font-size: 12px; padding: 5px 11px; min-height: 30px; }
.btn-xs { font-size: 11px; padding: 3px 8px; min-height: 26px; }

/* Bootstrap btn overrides for light mode */
.btn-primary   { background-color: #3b82f6; border-color: #3b82f6; }
.btn-success   { background-color: #16a34a; border-color: #16a34a; }
.btn-danger    { background-color: #dc2626; border-color: #dc2626; }
.btn-warning   { background-color: #d97706; border-color: #d97706; color: #fff; }
.btn-secondary { background-color: #6b7280; border-color: #6b7280; }

/* ════════════════════════════════════════════════
   BADGES / STATUS
════════════════════════════════════════════════ */
.badge { font-size: 10.5px; font-weight: 600; letter-spacing: .3px; padding: 4px 8px; }

.s-available   { background:#dcfce7; color:#166534; }
.s-occupied    { background:#fee2e2; color:#991b1b; }
.s-reserved    { background:#dbeafe; color:#1e40af; }
.s-maintenance { background:#fef3c7; color:#92400e; }
.s-checked_in  { background:#dcfce7; color:#166534; }
.s-checked_out { background:#f3f4f6; color:#374151; }
.s-pending     { background:#fef3c7; color:#92400e; }
.s-confirmed   { background:#dbeafe; color:#1e40af; }
.s-cancelled   { background:#fee2e2; color:#991b1b; }
.s-paid        { background:#dcfce7; color:#166534; }
.s-unpaid      { background:#fee2e2; color:#991b1b; }
.s-partial     { background:#fef3c7; color:#92400e; }
.s-open        { background:#fef3c7; color:#92400e; }
.s-billed      { background:#dbeafe; color:#1e40af; }
.s-posted      { background:#ede9fe; color:#5b21b6; }
.s-active      { background:#dcfce7; color:#166534; }
.s-draft       { background:#f3f4f6; color:#374151; }

/* ════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════ */
.alert { border-radius: 10px; font-size: 13px; border: none; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ════════════════════════════════════════════════
   NAV PILLS
════════════════════════════════════════════════ */
.nav-pills .nav-link {
  color: var(--text-secondary); background: var(--bg-surface-3);
  border: 1px solid var(--border); font-size: 12.5px;
  border-radius: 8px; padding: 7px 14px;
}
.nav-pills .nav-link.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* ════════════════════════════════════════════════
   POS TERMINAL
════════════════════════════════════════════════ */
.pos-item {
  cursor: pointer; border-radius: 10px;
  border: 2px solid var(--border);
  transition: all .18s; text-align: center;
  padding: 12px; background: var(--bg-surface);
  color: var(--text-primary);
}
.pos-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.2);
  background: #fffbeb;
}
.pos-cart {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; display: flex;
  flex-direction: column; height: 100%;
  box-shadow: var(--shadow-sm);
}
.cart-items { flex: 1; overflow-y: auto; padding: 10px; max-height: 55vh; }
.cart-footer {
  padding: 16px; border-top: 1px solid var(--border);
  background: var(--bg-surface-2); border-radius: 0 0 12px 12px;
}

/* ════════════════════════════════════════════════
   KITCHEN DISPLAY
════════════════════════════════════════════════ */
.kitchen-card { border-left: 4px solid var(--gold); background: var(--bg-surface); }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.85;} }

/* ════════════════════════════════════════════════
   FOLIO / RECEIPT
════════════════════════════════════════════════ */
.folio-header {
  background: linear-gradient(135deg, var(--text-primary), #2a2a4a);
  border-bottom: 3px solid var(--gold);
  padding: 24px; border-radius: 12px 12px 0 0;
  color: #fff;
}

/* ════════════════════════════════════════════════
   MOBILE SIDEBAR OVERLAY
════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1049;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤991px)
════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1050;
    width: min(var(--sidebar-w), 82vw);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,.25);
  }
  .main-content { margin-left: 0 !important; }
  .content-area { padding: 14px; }
  .topbar { padding: 0 14px; }

  /* Scrollable tables */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Card-style rows on mobile */
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
  }
  .table-mobile-cards tbody td {
    display: flex; justify-content: space-between; align-items: flex-start;
    border: none; padding: 5px 0; font-size: 12.5px;
    border-bottom: 1px solid var(--border-light);
  }
  .table-mobile-cards tbody td:last-child { border-bottom: none; padding-bottom: 0; }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    color: var(--gold); font-size: 10px;
    font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; white-space: nowrap;
    margin-right: 12px; flex-shrink: 0;
  }

  /* POS adjustments */
  .pos-cart { height: auto; }
  .cart-items { max-height: 38vh; }

  /* Larger touch targets */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 34px; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — PHONE  (≤575px)
════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .content-area { padding: 10px; }
  h4.page-title { font-size: 1rem; }
  .stat-card .stat-num { font-size: 1.6rem; }
  .d-flex.justify-content-between { flex-wrap: wrap; gap: 8px; }
  .btn { font-size: 12.5px; }
  .card-body { padding: 14px; }
  .sidebar { width: 88vw; }
  .topbar { gap: 8px; padding: 0 10px; }

  /* Stack action buttons */
  .btn-group-sm { display: flex; flex-wrap: wrap; gap: 4px; }

  /* Full-width forms on small screens */
  .form-row-mobile { flex-direction: column; }
  .form-row-mobile .col { width: 100% !important; max-width: 100% !important; }
}

/* ════════════════════════════════════════════════
   PRINT
════════════════════════════════════════════════ */
@media print {
  .sidebar, .topbar, #sidebarToggle, .no-print,
  .btn, nav { display: none !important; }
  .main-content { margin: 0 !important; }
  .content-area { padding: 0; }
  body, .card, .table { background: #fff !important; color: #000 !important; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; }
  .table thead th { background: #f0f0f0 !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* ════════════════════════════════════════════════
   PUBLIC WEBSITE — The Page Lagos
════════════════════════════════════════════════ */
.site-nav {
  background: rgba(8,6,0,.96);
  border-bottom: 1px solid rgba(201,162,39,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 999;
}
.site-nav .navbar-brand img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold);
}
.site-nav .brand-text { color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.site-nav .nav-link { color: rgba(255,255,255,.82) !important; font-size: 13px; }
.site-nav .nav-link:hover { color: var(--gold) !important; }
.site-nav .btn-book {
  background: var(--gold); color: #000;
  font-weight: 700; border-radius: 6px;
  padding: 7px 20px; font-size: 13px;
}
.site-nav .btn-book:hover { background: var(--gold-light); }

.web-hero {
  min-height: 95vh; display: flex; align-items: center;
  position: relative; overflow: hidden; color: #fff;
}
.web-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.52); z-index: 1;
}
.web-hero .hero-content { position: relative; z-index: 2; }
.web-hero .hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&q=80') center/cover no-repeat;
  animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom { from{transform:scale(1);} to{transform:scale(1.06);} }

.stat-bubble {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 10px; padding: 14px 20px;
  backdrop-filter: blur(8px); text-align: center;
}
.section-gold { color: var(--gold); letter-spacing: 3px; font-size: 11px; text-transform: uppercase; }
.divider-gold { width: 50px; height: 3px; background: var(--gold); margin: 10px 0 20px; }

.svc-card {
  background: #0d0d00; border: 1px solid rgba(201,162,39,.2);
  border-radius: 12px; overflow: hidden; transition: all .25s;
}
.svc-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,162,39,.15);
}
.svc-card .svc-icon {
  width: 60px; height: 60px;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold); margin: 0 auto 16px;
}

.room-card {
  background: #0d0d0d; border: 1px solid #222;
  border-radius: 12px; overflow: hidden; transition: all .25s;
}
.room-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,162,39,.12);
}
.room-card img { height: 220px; object-fit: cover; width: 100%; }

.site-footer {
  background: #050400; border-top: 2px solid rgba(201,162,39,.3); color: #888;
}
.site-footer a { color: #888; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .footer-logo { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold); }

.avail-bar {
  background: #080600;
  border-top: 1px solid rgba(201,162,39,.2);
  border-bottom: 1px solid rgba(201,162,39,.2);
  padding: 20px 0;
}
.avail-bar .form-control, .avail-bar .form-select {
  background: #1a1600 !important; border-color: rgba(201,162,39,.3) !important; color: #ddd !important;
}

.page-hero {
  min-height: 260px; display: flex; align-items: center;
  color: #fff; text-align: center;
  border-bottom: 2px solid rgba(201,162,39,.3);
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    background: rgba(5,4,0,.98);
    border-top: 1px solid rgba(201,162,39,.2);
    padding: 12px 16px; margin-top: 4px;
    border-radius: 0 0 10px 10px;
  }
  .web-hero { min-height: 80vh; }
}
