/* Galaxy Asia — light UI refinements layered on top of the Porto theme.
   Intentionally subtle: spacing, depth, and readability only. */

body { background: #eef1f5; }
.content-body { padding-top: 14px; }

/* Cards: softer depth + cleaner headers */
.card { border: 1px solid #e6e9ee; border-radius: 7px; box-shadow: 0 1px 3px rgba(20,30,50,.05); margin-bottom: 18px; }
.card .card-header { background: #fff; border-bottom: 1px solid #eef1f4; border-radius: 7px 7px 0 0; padding: 12px 16px; }
.card .card-header .card-title { font-size: 15px; font-weight: 700; color: #2b3a4b; margin: 0; }
.card .card-body { padding: 16px; }

/* Page header title */
.page-header h2 { font-weight: 700; letter-spacing: .2px; }

/* Buttons: a touch more padding + rounded; keep theme colors */
.btn { border-radius: 5px; }
.btn-primary { background-color: #2f7fc4; border-color: #2f7fc4; }
.btn-primary:hover { background-color: #2a72b0; border-color: #2a72b0; }
.btn-success { background-color: #2faa63; border-color: #2faa63; }
.btn-success:hover { background-color: #299557; border-color: #299557; }
.btn-xs { padding: 2px 9px; font-size: 11.5px; border-radius: 4px; }

/* Tables: lighter, more legible */
.table thead th { background: #f5f7fa; border-bottom: 2px solid #e6e9ee; color: #54657a; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.table td, .table th { vertical-align: middle; }
.table-striped tbody tr:nth-child(odd) { background: #fafbfc; }
.table-hover tbody tr:hover { background: #f1f6fb; }

/* Forms: clearer fields + labels */
.form-control { border-radius: 5px; border-color: #d7dde5; }
.form-control:focus { border-color: #2f7fc4; box-shadow: 0 0 0 3px rgba(47,127,196,.12); }
.control-label { color: #5a6a7d; font-weight: 600; }

/* Top nav active pill a little crisper */
#mainNav .nav-link { font-weight: 600; }

/* Badges */
.badge { font-weight: 600; letter-spacing: .02em; padding: .35em .6em; }

/* Alerts: softer */
.alert { border-radius: 6px; border: 1px solid transparent; }

/* =========================================================
   Shared scheduling-tool shell (Booking Calendar + Fleet Timeline)
   A clean, roomy, unified look — used by scheduler.php & booking-calendar.php
   ========================================================= */
.sched-tool .content-header,
body.sched-page .content-body > .page-header { display: none; }   /* drop heavy Porto header */
.sx-wrap { max-width: 1320px; margin: 0 auto; padding: 18px 6px 46px; }

/* header row: title + view toggle */
.sx-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sx-title { display: flex; align-items: center; gap: 12px; }
.sx-title .ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; font-size: 19px; box-shadow: 0 6px 18px rgba(99,102,241,.32); }
.sx-title h1 { font-size: 19px; font-weight: 700; margin: 0; color: #1e2330; line-height: 1.1; }
.sx-title p { margin: 2px 0 0; font-size: 12.5px; color: #8a93a6; }

/* segmented view toggle */
.seg { display: inline-flex; background: #eaecf3; border-radius: 11px; padding: 3px; gap: 2px; }
.seg a { font-size: 12.5px; font-weight: 600; color: #6b7488; text-decoration: none; padding: 7px 15px; border-radius: 8px;
	display: inline-flex; align-items: center; gap: 7px; transition: .15s; }
.seg a:hover { color: #5145e0; }
.seg a.on { background: #fff; color: #5145e0; box-shadow: 0 1px 4px rgba(20,30,55,.12); }

/* clean panel */
.sx-panel { background: #fff; border: 1px solid #ecedf3; border-radius: 18px; box-shadow: 0 4px 22px rgba(20,30,55,.06); overflow: hidden; }
.sx-filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #f1f2f7; background: #fbfbfe; }
.sx-filters select, .sx-filters input { height: 38px; border: 1px solid #e1e4ec; border-radius: 10px; font-size: 13px;
	padding: 0 12px; color: #3a4255; background: #fff; min-width: 130px; }
.sx-filters select:focus, .sx-filters input:focus { outline: none; border-color: #bcc0f5; box-shadow: 0 0 0 3px rgba(99,102,241,.10); }
.sx-tools { margin-left: auto; display: flex; gap: 7px; }
.sx-btn { height: 38px; min-width: 38px; padding: 0 13px; border: 1px solid #e1e4ec; background: #fff; border-radius: 10px;
	color: #5b6478; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: .15s; text-decoration: none; }
.sx-btn:hover { border-color: #bcc0f5; color: #5145e0; }

/* legend / info strip */
.sx-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: #7a8396; padding: 12px 18px; }
.sx-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.sx-legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.sx-legend .push { margin-left: auto; }
.sx-legend b { color: #3a4255; font-weight: 700; }
.sx-empty { text-align: center; color: #97a0b2; padding: 46px 20px; font-size: 14px; }
.sx-empty i { display: block; font-size: 30px; color: #cdd3e0; margin-bottom: 12px; }

/* =========================================================
   MODERN REFRESH (v4) — cohesive "high-tech" layer, no markup changes.
   Adopts the indigo/violet accent already used by the scheduler across the
   whole app so everything matches. Purely cosmetic; safe to remove this block.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ga-accent: #5145e0;
  --ga-accent-2: #6366f1;
  --ga-ink: #1e2330;
}

body, .form-control, .btn, .nav, .table, .page-header h2, .card .card-header .card-title {
  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;
}
body { background: #eef1f6; color: #2b3242; -webkit-font-smoothing: antialiased; }

/* App header: crisp white bar with a hairline + soft depth */
.header.header-nav-menu { background: #fff; box-shadow: 0 1px 0 #e7eaf0, 0 2px 14px rgba(20,30,55,.05); }
#mainNav .nav-link { color: #5b6478; transition: color .15s, background .15s; border-radius: 8px; }
#mainNav .nav-link:hover { color: var(--ga-accent); }
#mainNav > li.active > .nav-link,
#mainNav > li.active > .nav-link:focus { color: var(--ga-accent); background: rgba(99,102,241,.08); }

/* Primary buttons -> gradient accent */
.btn-primary { background-image: linear-gradient(135deg, var(--ga-accent-2), var(--ga-accent)); border: none; box-shadow: 0 3px 10px rgba(81,69,224,.25); }
.btn-primary:hover, .btn-primary:focus { background-image: linear-gradient(135deg, #5b5ef0, #463bd4); box-shadow: 0 4px 14px rgba(81,69,224,.34); }
.btn { font-weight: 600; transition: transform .04s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }

/* Cards: rounder + airier with a refined shadow */
.card { border-radius: 12px; border-color: #e9ecf2; box-shadow: 0 1px 2px rgba(20,30,55,.04), 0 6px 22px rgba(20,30,55,.05); }
.card .card-header { border-radius: 12px 12px 0 0; }

/* Inputs: focus ring in the accent colour */
.form-control { border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: #bcc0f5; box-shadow: 0 0 0 3px rgba(99,102,241,.14); }

/* Page title */
.page-header h2 { color: var(--ga-ink); letter-spacing: -.01em; }

/* Login screen: high-tech gradient backdrop + glassy card */
.body-sign { background: radial-gradient(1200px 600px at 70% -10%, #2a2f63 0%, #161a36 45%, #0f1226 100%); min-height: 100vh; }
.card-sign { border: 1px solid rgba(255,255,255,.10); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(4px); background: rgba(255,255,255,.97); }
.card-sign .title { color: var(--ga-ink); }
.center-sign .logo img { filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.body-sign .text-muted { color: #b9c0d6 !important; }

/* ---- Mobile optimisation: keep wide content from breaking the layout ---- */
@media (max-width: 991.98px) {
  /* Never let the whole page scroll sideways */
  html, body { max-width: 100%; overflow-x: hidden; }
  /* Any data table scrolls horizontally inside its card instead of overflowing */
  .card-body > table.table,
  .card-body > .table,
  .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-body { overflow-x: auto; }
  /* Long emails / refs / URLs wrap instead of forcing the page wider */
  td, th { word-break: break-word; }
  /* Cards + page use the full narrow width, tighter padding */
  .card-body { padding: 12px; }
  .container, .container-fluid { padding-left: 10px; padding-right: 10px; }
  /* Stack form label/field vertically on small screens (Bootstrap does most of this) */
  .form-group.row > [class^="col-"] { margin-bottom: 6px; }
}
@media (max-width: 575.98px) {
  .card-title { font-size: 1rem; }
  .btn { padding: .45rem .6rem; }
}
