/* =====================================================
   জারা কনভেনশন হল — ডিজাইন সিস্টেম
   Palette: deep emerald-teal + brass gold + wine accent
   Type: Tiro Bangla (display) / Hind Siliguri (body) / Inter (numerals)
   ===================================================== */

:root {
  --ink: #1f2a28;
  --teal-deep: #0e3b36;
  --teal-deeper: #092723;
  --teal-mid: #1c6e62;
  --teal-pale: #e7f0ec;
  --gold: #c79a45;
  --gold-soft: #f1e2bd;
  --gold-line: #d8b876;
  --wine: #7c2d42;
  --wine-soft: #f4dde3;
  --ivory: #f8f5ef;
  --card: #ffffff;
  --border: #e6e1d4;
  --muted: #6d7a76;
  --success: #2f7d5a;
  --success-soft: #dcefe3;
  --danger: #b3403a;
  --danger-soft: #f6dfdd;
  --warn: #b8863a;
  --warn-soft: #f4e9d3;
  --shadow: 0 8px 24px rgba(14, 59, 54, 0.08);
  --shadow-sm: 0 2px 8px rgba(14, 59, 54, 0.07);
  --radius: 14px;
  --sidebar-w: 264px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Hind Siliguri', 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Tiro Bangla', 'Playfair Display', serif;
  color: var(--teal-deeper);
  letter-spacing: 0.2px;
}

a { text-decoration: none; color: var(--teal-mid); }
a:hover { color: var(--wine); }

::selection { background: var(--gold-soft); }

/* ---------- Layout shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(185deg, var(--teal-deep) 0%, var(--teal-deeper) 100%);
  color: #eef4f1;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(199, 154, 69, 0.35);
  z-index: 50;
}

.sidebar-brand {
  padding: 26px 22px 20px;
  border-bottom: 1px solid rgba(199, 154, 69, 0.25);
}
.sidebar-brand .mark {
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tiro Bangla', serif;
  font-size: 20px; color: var(--gold);
  margin-bottom: 10px;
}
.sidebar-brand .name {
  font-family: 'Tiro Bangla', serif;
  font-size: 21px;
  line-height: 1.3;
  color: #fdfaf3;
}
.sidebar-brand .tag {
  font-size: 12px;
  color: var(--gold-soft);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.sidebar-nav .nav-section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(238, 244, 241, 0.45);
  padding: 14px 12px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px;
  color: rgba(238, 244, 241, 0.88);
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  margin-bottom: 2px;
  transition: background .15s ease, color .15s ease;
}
.sidebar-nav a i { font-size: 16px; width: 18px; text-align: center; color: var(--gold-soft); }
.sidebar-nav a:hover { background: rgba(199, 154, 69, 0.14); color: #fff; }
.sidebar-nav a.active {
  background: rgba(199, 154, 69, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-foot {
  padding: 14px 12px 20px;
  border-top: 1px solid rgba(199, 154, 69, 0.25);
}
.sidebar-foot a { color: rgba(238, 244, 241, 0.75); }
.sidebar-foot a:hover { color: var(--wine-soft); }

/* ---------- Main area ---------- */
.main-area { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.topbar .page-title { font-size: 22px; margin: 0; }
.topbar .page-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--teal-pale);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-mid); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tiro Bangla', serif; font-size: 15px;
}
.user-chip .role-badge {
  font-size: 11px; color: var(--teal-mid); display: block; margin-top: -2px;
}

.content { padding: 26px 28px 60px; }

/* ---------- Cards ---------- */
.hall-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hall-card .hall-card-body { padding: 20px 22px; }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.stat-card.accent-wine { border-top-color: var(--wine); }
.stat-card.accent-teal { border-top-color: var(--teal-mid); }
.stat-card .stat-label {
  font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px;
}
.stat-card .stat-value {
  font-family: 'Tiro Bangla', serif;
  font-size: 28px; color: var(--teal-deeper); margin-top: 6px;
}
.stat-card .stat-foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat-card i.stat-icon { color: var(--gold); font-size: 20px; }

/* ---------- Buttons ---------- */
.btn-hall-primary {
  background: var(--teal-deep); border: 1px solid var(--teal-deep); color: #fdfaf3;
  border-radius: 9px; padding: 9px 18px; font-size: 14.5px;
  transition: background .15s ease;
}
.btn-hall-primary:hover { background: var(--teal-deeper); color: #fff; }
.btn-hall-gold {
  background: var(--gold); border: 1px solid var(--gold); color: var(--teal-deeper);
  border-radius: 9px; padding: 9px 18px; font-size: 14.5px; font-weight: 600;
}
.btn-hall-gold:hover { background: #b98938; color: #fff; }
.btn-hall-outline {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  border-radius: 9px; padding: 9px 18px; font-size: 14.5px;
}
.btn-hall-outline:hover { border-color: var(--teal-mid); color: var(--teal-mid); }
.btn-hall-danger {
  background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger);
  border-radius: 9px; padding: 8px 16px; font-size: 14px;
}
.btn-hall-danger:hover { background: var(--danger); color: #fff; }

/* ---------- Badges ---------- */
.badge-status { font-size: 12px; padding: 4px 11px; border-radius: 999px; font-weight: 500; }
.badge-PENDING { background: var(--warn-soft); color: var(--warn); }
.badge-CONFIRMED { background: var(--success-soft); color: var(--success); }
.badge-COMPLETED { background: var(--teal-pale); color: var(--teal-mid); }
.badge-CANCELLED { background: var(--danger-soft); color: var(--danger); }

.shift-pill { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; font-weight: 600; letter-spacing: .3px; }
.shift-DAY { background: var(--gold-soft); color: #8a6416; }
.shift-NIGHT { background: #e3dcf1; color: #4a3480; }
.shift-FULL { background: var(--teal-mid); color: #fff; }

/* ---------- Booking calendar grid (signature element) ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-nav .cal-title { font-size: 20px; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.cal-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-inline-end: 5px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-weekday-hd { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 4px; font-weight: 600; }

.cal-cell {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cal-cell.out-of-month { opacity: 0.35; }
.cal-cell.is-today { box-shadow: 0 0 0 2px var(--gold); }
.cal-cell .cal-daynum {
  font-size: 12px; color: var(--muted); padding: 5px 8px 2px;
  font-family: 'Inter', sans-serif;
}
.cal-cell .cal-half {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px;
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: filter .12s ease;
  color: inherit;
  padding: 2px 4px;
  text-align: center;
}
.cal-cell .cal-half:hover { filter: brightness(0.94); }
.cal-half.slot-available { background: var(--success-soft); color: var(--success); }
.cal-half.slot-booked { background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.cal-half.slot-pending { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.cal-half.slot-past { background: #f1efe9; color: #a7a196; }

.cal-full-add {
  font-size: 9px; color: var(--gold); background: var(--gold-soft); border-radius: 6px;
  padding: 1px 6px; text-decoration: none; white-space: nowrap; margin-inline-end: 4px;
}
.cal-full-add:hover { background: var(--gold); color: #fff; }

.cal-cell .cal-full {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 4px 6px; text-align: center;
  border-top: 1px solid var(--border);
  transition: filter .12s ease;
}
.cal-cell .cal-full:hover { filter: brightness(0.94); }
.cal-full-name { font-size: 11px; font-weight: 700; line-height: 1.15; }
.cal-full-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .4px; opacity: 0.85; }
.cal-cell.cal-cell-fullday { border-color: var(--gold); }

/* ---------- Tables ---------- */
.hall-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.hall-table thead th {
  text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.hall-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hall-table tbody tr:hover { background: var(--teal-pale); }
.hall-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-label { font-size: 13.5px; font-weight: 600; color: var(--teal-deeper); margin-bottom: 5px; }
.form-control, .form-select {
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 14.5px;
  font-family: 'Hind Siliguri', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal-mid); box-shadow: 0 0 0 3px rgba(28, 110, 98, 0.14);
}

/* ---------- Auth page ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, #123f39 0%, var(--teal-deeper) 55%, #071f1c 100%);
  padding: 20px;
}
.auth-card {
  background: var(--ivory); border-radius: 18px; padding: 42px 38px;
  width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-top: 4px solid var(--gold);
}
.auth-card .mark {
  width: 54px; height: 54px; border: 1.5px solid var(--gold); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-family: 'Tiro Bangla', serif;
  font-size: 26px; color: var(--gold); margin: 0 auto 14px;
}
.auth-card h1 { text-align: center; font-size: 23px; margin-bottom: 2px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------- Misc ---------- */
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line), transparent); border: none; margin: 22px 0; }
.section-eyebrow { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 34px; color: var(--gold-soft); margin-bottom: 10px; display: block; }

.pagination-hall { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination-hall a, .pagination-hall span {
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 13px; font-size: 13.5px; color: var(--ink);
}
.pagination-hall .current { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(9, 39, 35, 0.55);
  z-index: 60;
  opacity: 0;
  transition: opacity .2s ease;
}
.sidebar-backdrop.open { display: block; opacity: 1; }

.sidebar-close {
  display: none;
  position: absolute; top: 18px; inset-inline-end: 16px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(199, 154, 69, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--gold-soft);
  font-size: 14px;
}
.sidebar-close:hover { background: rgba(199, 154, 69, 0.14); color: #fff; }

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .28s ease;
    width: min(var(--sidebar-w), 84vw);
    z-index: 70;
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.35);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .main-area { margin-left: 0; }
  .topbar { padding: 13px 16px; }
  .topbar .page-title { font-size: 19px; }
  .content { padding: 18px 16px 50px; }
  .cal-grid { gap: 5px; }
  .cal-cell { min-height: 62px; }
  .cal-cell .cal-half { font-size: 9px; }
  .cal-full-name { font-size: 10px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hall-table { min-width: 640px; }
}

@media (max-width: 480px) {
  .user-chip-info { display: none; }
  .user-chip { padding: 4px; gap: 0; }
  .topbar .page-title { font-size: 17px; }
  .sidebar-brand { padding: 22px 18px 16px; }
  .cal-weekday-hd { font-size: 10px; }
  .cal-cell { min-height: 52px; border-radius: 7px; }
  .cal-cell .cal-daynum { font-size: 10px; padding: 3px 5px 1px; }
  .cal-cell .cal-half { font-size: 8px; padding: 1px 2px; }
  .cal-full-add { font-size: 8px; padding: 1px 4px; }
  .cal-full-name { font-size: 9px; }
  .cal-full-tag { font-size: 8px; }
  .stat-card .stat-value { font-size: 22px; }
  .btn-hall-primary, .btn-hall-gold, .btn-hall-outline { padding: 8px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

a:focus-visible, button:focus-visible, .form-control:focus-visible {
  outline: 2px solid var(--wine); outline-offset: 2px;
}
