/* Tour & Travel Management — admin theme. Bootstrap 5 + a small token layer. */
:root {
  --ink: #0f2a33;          /* sidebar */
  --ink-2: #16394a;
  --lagoon: #0e6b73;       /* primary */
  --lagoon-dk: #0a545a;
  --marigold: #e9a21b;     /* accent / held */
  --mist: #eef2f4;         /* page background */
  --line: #dbe3e7;
  --text: #1d2f37;
  --muted: #61757e;
  --seat-free: #2f9e62;
  --seat-booked: #c8433a;
  --seat-held: #e9a21b;
  --seat-blocked: #4b5563;
  --bs-primary: var(--lagoon);
  --bs-primary-rgb: 14, 107, 115;
  --bs-link-color: var(--lagoon);
  --bs-link-hover-color: var(--lagoon-dk);
  --bs-body-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --sidebar-w: 248px;
}
body { background: var(--mist); font-size: .95rem; }
.btn-primary { --bs-btn-bg: var(--lagoon); --bs-btn-border-color: var(--lagoon); --bs-btn-hover-bg: var(--lagoon-dk); --bs-btn-hover-border-color: var(--lagoon-dk); --bs-btn-active-bg: var(--lagoon-dk); --bs-btn-disabled-bg: var(--lagoon); --bs-btn-disabled-border-color: var(--lagoon); }
.btn-outline-primary { --bs-btn-color: var(--lagoon); --bs-btn-border-color: var(--lagoon); --bs-btn-hover-bg: var(--lagoon); --bs-btn-hover-border-color: var(--lagoon); --bs-btn-active-bg: var(--lagoon-dk); }
.form-control:focus, .form-select:focus, .btn:focus-visible, .form-check-input:focus { border-color: var(--lagoon); box-shadow: 0 0 0 .2rem rgba(14,107,115,.22); }
.form-check-input:checked { background-color: var(--lagoon); border-color: var(--lagoon); }
h1, h2, h3, h4, h5 { letter-spacing: -.01em; }

/* Shell */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--ink); color: #cfe0e6; overflow-y: auto; z-index: 1040; display: flex; flex-direction: column; transition: transform .2s; }
.app-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.25rem; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.app-brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--marigold); color: var(--ink); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.app-brand span.name { line-height: 1.15; font-size: .95rem; overflow-wrap: anywhere; }
.app-nav { list-style: none; margin: 0; padding: .75rem .6rem 1rem; flex: 1; }
.app-nav .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #7f9aa6; padding: 1rem .75rem .35rem; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .75rem; border-radius: 8px; color: #cfe0e6; text-decoration: none; font-size: .9rem; }
.app-nav a:hover { background: var(--ink-2); color: #fff; }
.app-nav a.active { background: var(--lagoon); color: #fff; }
.app-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .9; }
.app-nav .soon { opacity: .45; cursor: default; }
.app-nav .soon:hover { background: transparent; color: #cfe0e6; }
.app-nav .soon small { margin-left: auto; font-size: .62rem; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 0 .4rem; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }
.app-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1030; }
.app-content { padding: 1.5rem; max-width: 1400px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.45rem; margin: 0; }
.crumbs { font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--lagoon); }
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .app-main { margin-left: 0; }
  .app-content { padding: 1rem; }
}

/* Cards, tables */
.card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,42,51,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: 12px 12px 0 0 !important; }
.table > :not(caption) > * > * { padding: .65rem .8rem; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: #f7f9fa; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-responsive { border-radius: 0 0 12px 12px; }
.stat { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; }
.stat .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(14,107,115,.1); color: var(--lagoon); flex: none; }
.stat .val { font-size: 1.45rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.progress { height: .55rem; background: #e5ecef; }
.progress-bar { background: var(--lagoon); }
.num { font-variant-numeric: tabular-nums; }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .25rem; }
.mode-chip { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* Login / bare */
.bare-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background:
  radial-gradient(1200px 500px at 10% -10%, rgba(14,107,115,.16), transparent 60%), radial-gradient(900px 400px at 100% 110%, rgba(233,162,27,.16), transparent 60%), var(--mist); }
.bare-card { width: 100%; max-width: 420px; }

/* Seat map */
.seat-legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--muted); }
.seat-legend .sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: .35rem; }
.coach { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: .9rem; margin-bottom: 1.25rem; }
.coach-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: .75rem; }
.coach-bays { display: flex; flex-wrap: wrap; gap: .6rem; }
.bay { display: flex; gap: 4px; padding: 6px; border: 1.5px dashed #b9c8ce; border-radius: 10px; background: #fafcfc; position: relative; }
.bay-label { position: absolute; top: -9px; left: 8px; background: #fff; font-size: .62rem; color: var(--muted); padding: 0 4px; }
.bay-col { display: flex; flex-direction: column; gap: 4px; }
.bay-gap { width: 10px; }
.seat { position: relative; width: 46px; height: 42px; border: 0; border-radius: 7px; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.05; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.seat small { font-size: .56rem; font-weight: 600; opacity: .9; }
.seat:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.seat:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.seat.s-available { background: var(--seat-free); }
.seat.s-booked { background: var(--seat-booked); }
.seat.s-held { background: var(--seat-held); color: #2a1d00; }
.seat.s-blocked { background: var(--seat-blocked); background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 3px, transparent 3px 7px); }
.seat.s-booked::after, .seat.s-held::after, .seat.s-blocked::after { position: absolute; top: 1px; right: 3px; font-size: .55rem; font-family: "bootstrap-icons"; }
.seat.s-booked::after { content: "\f62a"; }   /* x-lg */
.seat.s-held::after { content: "\f291"; }     /* clock */
.seat.s-blocked::after { content: "\f5d6"; }  /* slash-circle */
.seat.selected { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.bus-shell { background: #fff; border: 2px solid var(--line); border-radius: 26px 26px 12px 12px; padding: 1rem 1.25rem; display: inline-block; max-width: 100%; overflow-x: auto; }
.bus-driver { display: flex; justify-content: flex-end; padding: 0 .25rem .75rem; color: var(--muted); font-size: .8rem; gap: .4rem; align-items: center; border-bottom: 2px dashed var(--line); margin-bottom: .75rem; }
.bus-grid { display: grid; gap: 5px; }
.bus-grid .stack { display: flex; flex-direction: column; gap: 3px; }
.seat-pop { max-width: 260px; }
@media (max-width: 575.98px) { .seat { width: 40px; height: 40px; } }
@media print { .app-sidebar, .app-topbar, .no-print { display: none !important; } .app-main { margin: 0; } body { background: #fff; } }
