/* ============================================================
   Arbeni Tours — custom.css
   Vetem mbishkrime/overrides mbi Bootstrap 5. Mos editoni Bootstrap core.
   ============================================================ */

:root {
  /* Neutrale (Light SaaS) — sfond pak i ftohtë që seksionet të dallohen */
  --at-bg: #eef1f6;
  --at-surface: #ffffff;
  --at-border: #dde3ec;
  --at-input-border: #cbd5e1;
  --at-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);

  /* Radius i vogël = pamje "katror", e drejtuar */
  --at-radius: 6px;
  --at-radius-sm: 5px;

  /* PRIMARY = blu (si më parë) */
  --at-blue: #2f6bff;
  --at-blue-soft: #e9f0ff;
  --at-primary: #2f6bff;
  --at-primary-strong: #2257e0;
  --at-primary-soft: #e9f0ff;

  /* INFO (blu) */
  --at-info: #2f6bff;
  --at-info-soft: #e9f0ff;

  /* Status (tone modern) */
  --at-green: #10b981;
  --at-red: #f43f5e;

  /* Ngjyra e logos (e kuqe) — për item-in aktiv të sidebar-it (tint transparent) */
  --at-logo: #ed1b23;
  --at-logo-soft: rgba(237, 27, 35, 0.10);

  /* Ndarja e seksioneve — sfond gri i lehtë + border pak më i fortë (dallon prej borders-ave të tjera) */
  --at-section-bg: #f5f7fa;
  --at-section-border: #cdd5e1;

  --at-sidebar-w: 240px;
  --at-navbar-h: 64px;
}

/* ---------- Bootstrap primary → blu i platformës (jo Bootstrap default) ---------- */
:root {
  --bs-primary: #2f6bff;
  --bs-primary-rgb: 47, 107, 255;
  --bs-link-color: #2f6bff;
  --bs-link-hover-color: #2257e0;
  --bs-link-color-rgb: 47, 107, 255;
  --bs-link-hover-color-rgb: 34, 87, 224;
  --bs-border-radius: 6px;
  --bs-border-radius-sm: 5px;
  --bs-border-radius-lg: 8px;
}
.btn-primary {
  --bs-btn-bg: #2f6bff; --bs-btn-border-color: #2f6bff;
  --bs-btn-hover-bg: #2257e0; --bs-btn-hover-border-color: #2257e0;
  --bs-btn-active-bg: #2257e0; --bs-btn-active-border-color: #2257e0;
  --bs-btn-disabled-bg: #2f6bff; --bs-btn-disabled-border-color: #2f6bff;
  --bs-btn-focus-shadow-rgb: 47, 107, 255;
}
.btn-outline-primary {
  --bs-btn-color: #2f6bff; --bs-btn-border-color: #2f6bff;
  --bs-btn-hover-bg: #2f6bff; --bs-btn-hover-border-color: #2f6bff;
  --bs-btn-active-bg: #2f6bff; --bs-btn-active-border-color: #2f6bff;
  --bs-btn-focus-shadow-rgb: 47, 107, 255;
}
.text-primary { color: #2f6bff !important; }
.bg-primary { background-color: #2f6bff !important; }
.form-check-input:checked { background-color: #2f6bff; border-color: #2f6bff; }
.form-check-input:focus { border-color: #6f9bff; box-shadow: 0 0 0 0.2rem rgba(47, 107, 255, 0.15); }
.pagination {
  --bs-pagination-hover-color: #2257e0;
  --bs-pagination-focus-color: #2257e0;
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(47, 107, 255, 0.18);
  --bs-pagination-active-bg: #2f6bff;
  --bs-pagination-active-border-color: #2f6bff;
  --bs-pagination-border-radius: 6px;
}
.nav-pills { --bs-nav-pills-link-active-bg: #2f6bff; }
.btn { border-radius: 6px; }

* {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
  background-color: var(--at-bg);
  color: #1f2530;
}

/* ---------- Brand colors as Bootstrap-ish helpers ---------- */
.text-brand   { color: var(--at-blue) !important; }
.text-success-soft { color: var(--at-green) !important; }
.bg-brand     { background-color: var(--at-blue) !important; }

/* ============================================================
   Butona modernë (2026): pak katror, hije me ngjyrë, micro-lift
   ============================================================ */
.btn {
  border-radius: 7px;            /* ~95% katror */
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.005em;
  transition: transform 0.12s ease, box-shadow 0.16s ease,
              background 0.14s ease, border-color 0.14s ease, color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* PRIMARY — purple me sfond transparent (soft) */
.btn-brand {
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.28);
  color: #7c3aed;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.44rem 0.95rem;
  box-shadow: none;
}
.btn-brand:hover,
.btn-brand:focus {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.45);
  color: #6d28d9;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.18);
}
.btn-brand:active { background: rgba(124, 58, 237, 0.26); color: #6d28d9; }

/* SUCCESS — emerald modern */
.btn-success {
  --bs-btn-bg: #10b981; --bs-btn-border-color: #0ca877;
  --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669;
  --bs-btn-active-bg: #059669; --bs-btn-active-border-color: #047857;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-success:hover { box-shadow: 0 8px 18px rgba(16, 185, 129, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* WARNING — amber modern (tekst i bardhë) */
.btn-warning {
  --bs-btn-bg: #f59e0b; --bs-btn-border-color: #e08e09;
  --bs-btn-hover-bg: #e08e09; --bs-btn-hover-border-color: #d4850a;
  --bs-btn-active-bg: #d4850a; --bs-btn-active-border-color: #b87209;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-warning:hover { box-shadow: 0 8px 18px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22); }

/* DANGER — rose modern */
.btn-danger {
  --bs-btn-bg: #f43f5e; --bs-btn-border-color: #e11d48;
  --bs-btn-hover-bg: #e11d48; --bs-btn-hover-border-color: #c81840;
  --bs-btn-active-bg: #be123c; --bs-btn-active-border-color: #9f1239;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-danger:hover { box-shadow: 0 8px 18px rgba(244, 63, 94, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18); }

/* Outline modern (pa lift të tepruar) */
.btn-outline-danger { --bs-btn-color: #e11d48; --bs-btn-border-color: #f0a9b6; --bs-btn-hover-bg: #f43f5e; --bs-btn-hover-border-color: #f43f5e; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--at-input-border); --bs-btn-hover-bg: #f4f6fa; }
/* Buton që bëhet jeshil kur kalon mausi sipër */
.at-hover-green:hover,
.at-hover-green:focus {
  background: var(--at-green) !important;
  border-color: var(--at-green) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.32);
}
/* Buton që bëhet purple kur kalon mausi sipër */
.at-hover-blue:hover,
.at-hover-blue:focus {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.32);
}
/* Buton success soft (jeshil me sfond transparent) */
.btn-soft-success {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.30);
  color: #059669;
  font-weight: 600;
}
.btn-soft-success:hover,
.btn-soft-success:focus {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.48);
  color: #047857;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.18);
}
/* Buton danger soft (i kuq me sfond transparent) */
.btn-soft-danger {
  background: rgba(244, 63, 94, 0.10);
  border: 1px solid rgba(244, 63, 94, 0.30);
  color: #e11d48;
  font-weight: 600;
}
.btn-soft-danger:hover,
.btn-soft-danger:focus {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.48);
  color: #be123c;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.18);
}
/* Butona shkarkimi (aqua) — kompakt */
.btn-dl {
  background: #e6fbff;
  border: 1px solid #9fe3ee;
  color: #0e7c8a;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}
.btn-dl i { font-size: 0.72rem; }
.btn-dl:hover,
.btn-dl:focus {
  background: #cdf2f8;
  border-color: #7fd3e0;
  color: #0a6c79;
}

/* "+" te kolona Nr → hap rreshtin e veprimeve brenda tabelës */
.at-detail-plus {
  width: 30px; height: 28px; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: #7c3aed; font-size: 1.25rem; line-height: 1; cursor: pointer; vertical-align: middle;
  transition: color 0.12s ease;
}
.at-detail-plus:hover { color: #6d28d9; }
.at-detail-plus:focus { outline: none; }
.at-detail-plus.open { color: #6d28d9; }
.at-detail-plus .ic-minus { display: none; }
.at-detail-plus.open .ic-plus { display: none; }
.at-detail-plus.open .ic-minus { display: inline; }
.at-detail-row > td { background: #f5f8ff; border-top: 0; }
.at-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.15rem 0; }
.at-detail-actions .btn { font-size: 0.72rem; padding: 0.2rem 0.55rem; font-weight: 600; }
.at-detail-actions .btn i { font-size: 0.72rem; }
/* Butonat e tjerë në rreshtin e veprimeve → light gray */
.at-detail-actions .btn-light {
  background: #eceff4;
  border-color: #d9dee6;
  color: #3f4654;
}
.at-detail-actions .btn-light:hover,
.at-detail-actions .btn-light:focus {
  background: #e0e5ec;
  border-color: #c8cfd9;
  color: #2b303a;
}

/* ---------- Navbar ---------- */
.at-navbar {
  height: var(--at-navbar-h);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--at-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.at-brand {
  width: var(--at-sidebar-w);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #1f2530;
  border-right: 1px solid var(--at-border);
}
@media (max-width: 991.98px) {
  .at-brand { width: auto; border-right: none; }
}
.at-brand-logo {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 3px;
}
.at-brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #8a93a3;
  margin-top: 2px;
}

/* ---------- Veprimet e shpejta në navbar (si nav-linqe) ---------- */
.at-quick-nav { flex-wrap: wrap; gap: 0.15rem !important; }
.at-qa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  color: #5b6472;
  background: none;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease, background 0.12s ease;
}
.at-qa i { font-size: 1.02rem; opacity: 0.8; }
.at-qa:hover {
  color: #1f2530;
  background: #f3f5f9;
}
.at-qa:hover i { opacity: 1; }
/* Aktive (faqja aktuale) — theks blu si nav-link */
.at-qa-active,
.at-qa-active:hover {
  color: var(--at-blue);
  background: var(--at-blue-soft);
  font-weight: 600;
}
.at-qa-active i { opacity: 1; }

.at-bell {
  position: relative;
  font-size: 1.25rem;
  color: #5b6472;
}
.at-bell .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--at-red);
  font-size: 0.62rem;
}
.at-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--at-blue-soft);
  color: var(--at-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.at-user-name { font-size: 0.86rem; font-weight: 600; line-height: 1.1; }
.at-user-role { font-size: 0.74rem; color: #8a93a3; line-height: 1.1; }

/* ---------- Sidebar ---------- */
.at-sidebar {
  width: var(--at-sidebar-w);
  background: #fff;
  border-right: 1px solid var(--at-border);
  min-height: calc(100vh - var(--at-navbar-h));
  padding: 1rem 0.75rem;
}
.at-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #5b6472;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.18rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.at-sidebar .nav-link i { font-size: 1.05rem; }
.at-sidebar .nav-link:hover {
  background: #f5f7fb;
  color: #1f2530;
}
.at-sidebar .nav-link.active {
  background: #374151;
  color: #fff;
  font-weight: 600;
  position: relative;
}
.at-sidebar .nav-link.active i { color: #fff; }
.at-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #9aa3b2;
}

/* Desktop sidebar fiks — nuk ngushtohet, qëndron në pozicion */
@media (min-width: 992px) {
  .at-sidebar.offcanvas-lg {
    visibility: visible !important;
    transform: none !important;
    /* Bootstrap e bën transparent te ≥lg — e detyrojmë të bardhë si header-i */
    background-color: #fff !important;
    border-right: 1px solid var(--at-border) !important;
    /* Gjerësi e palëvizshme: pa u ngushtuar kur content-i është i gjerë */
    flex: 0 0 var(--at-sidebar-w) !important;
    width: var(--at-sidebar-w) !important;
    min-width: var(--at-sidebar-w) !important;
    max-width: var(--at-sidebar-w) !important;
    /* Fiks në pozicion (sticky nën navbar) */
    position: sticky;
    top: var(--at-navbar-h);
    align-self: flex-start;
    height: calc(100vh - var(--at-navbar-h));
    overflow-y: auto;
  }
}

/* ---------- Main content ---------- */
.at-main {
  flex: 1 1 auto;
  padding: 1.5rem;
  min-width: 0;
}

/* ---------- Cards / panels ---------- */
.at-card {
  background: var(--at-section-bg);
  border: 1px solid var(--at-section-border);
  border-radius: var(--at-radius);
  box-shadow: var(--at-card-shadow);
}

/* ---------- Pills ---------- */
.at-pill {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.at-pill-green { background: rgba(34, 176, 125, 0.12); color: var(--at-green); }
.at-pill-red   { background: rgba(239, 71, 87, 0.12);  color: var(--at-red); }
.at-pill-blue  { background: var(--at-info-soft);      color: var(--at-info); }
.at-pill-amber { background: rgba(245, 158, 11, 0.14); color: #d97706; }

/* ---------- Inputs ---------- */
.form-control,
.form-select {
  border-radius: var(--at-radius);
  border: 1px solid var(--at-input-border);
  font-size: 0.9rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--at-primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 107, 255, 0.15);
}

/* Icon buttons for export */
.at-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--at-radius);
  border: 1px solid var(--at-input-border);
  background: #fff;
  font-size: 1.15rem;
}
.at-icon-btn.excel { color: var(--at-green); }
.at-icon-btn.pdf   { color: var(--at-red); }
.at-icon-btn:hover { background: #f5f7fb; }

/* ---------- Tables ---------- */
.at-table-card { overflow: hidden; }
/* Tabelë kompakte që zë gjithë gjerësinë dhe shmang scroll-in horizontal kur ka pak kolona */
.at-table-compact { width: 100%; }
.at-table-compact th,
.at-table-compact td {
  padding: 0.5rem 0.55rem;
  font-size: 0.84rem;
  vertical-align: middle;
}
.at-table-compact thead th { white-space: nowrap; }
.table thead th {
  background: var(--at-bg);
  color: #5b6472;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 1px solid var(--at-border);
  padding: 0.85rem 0.9rem;
}
.table tbody td {
  /* padding: 0.8rem 0.9rem; */
  vertical-align: middle;
  font-size: 0.86rem;
  border-color: var(--at-border);
}
.table tbody tr:hover { background: #fafbfe; }

/* ---------- Stepper (wizard) ---------- */
.at-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
}
.at-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.at-step-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--at-input-border);
  background: #fff;
  color: #8a93a3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  z-index: 2;
}
.at-step-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #5b6472;
  font-weight: 500;
  max-width: 120px;
}
.at-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--at-input-border);
  min-width: 40px;
  margin: 0 -2px;
  margin-bottom: 28px; /* lift line to circle center */
  align-self: center;
}
/* states */
.at-step.active .at-step-circle {
  border-color: var(--at-blue);
  color: var(--at-blue);
}
.at-step.active .at-step-label { color: var(--at-blue); font-weight: 600; }
.at-step.completed .at-step-circle {
  border-color: var(--at-green);
  background: var(--at-green);
  color: #fff;
}
.at-step.completed .at-step-label { color: #1f2530; }

/* ---------- Rezervim i ri (Hapi 2) — rrjetë pasagjerësh si forma ---------- */
.rez-grid { display: grid; grid-template-columns: 40px minmax(0,1fr) minmax(0,1fr) minmax(0,0.85fr) 92px; gap: 10px; align-items: center; }
.rez-head { font-size: .76rem; color: #8a93a3; font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid #eef0f3; margin-bottom: 8px; }
.rez-row { padding: 6px 0; }
.rez-ava { width: 34px; height: 34px; border: 1.5px solid #c7ccd4; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: #8a93a3; }
.rez-seat { position: relative; }
.rez-seat input { padding-right: 30px; cursor: pointer; background: #fff; }
.rez-seat-ic { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 1rem; line-height: 1; }
.rez-total { background: #fff; border: 2px solid #22b07d; border-radius: 12px; padding: 14px 18px; font-weight: 800; color: #22b07d; }
.rez-total .amt { font-size: 1.55rem; }
.rez-side .row-kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid #eef0f3; font-size: .9rem; }
.rez-side .row-kv span { color: #8a93a3; }
.rez-trip th { font-size: .74rem; color: #8a93a3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.rez-kontakt { border: 1.5px solid #bdeccf; background: #f5fcf8; border-radius: 12px; padding: 1rem 1.1rem; }
/* Inputi i plotësuar → sfond jeshil i çelët (tregon se është "check") */
.rez-filled { background: #eafaf1 !important; border-color: #bdeccf !important; }
@media (max-width: 767px) {
  .rez-grid { grid-template-columns: 1fr 1fr; }
  .rez-ava { display: none; }
}

/* ---------- Vendet & Stacionet (hierarki me kartela) ---------- */
.at-geo-card { padding: 0; overflow: hidden; }
.at-geo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--at-border); background: #fff; }
.at-geo-flag { width: 38px; height: 38px; border-radius: 10px; background: var(--at-blue-soft); color: var(--at-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.at-geo-body { padding: 12px 14px; }
.at-geo-qytet { background: #f6f8fb; border: 1px solid #eef0f3; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.at-geo-qytet:last-child { margin-bottom: 0; }
.at-geo-stac { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #e3e7ee; border-radius: 999px; padding: 3px 9px; font-size: .78rem; font-weight: 500; color: #1f2733; }
.at-geo-stac i.bi-geo-alt-fill { color: var(--at-blue); }
.at-geo-stac a, .at-geo-stac button { border: 0; background: none; padding: 0; line-height: 1; color: #b0b7c3; font-size: .72rem; cursor: pointer; }
.at-geo-stac a:hover { color: var(--at-blue); }
.at-geo-stac button:hover { color: #ef4757; }
/* Butoni +/− për hapje/mbyllje të qyteteve të një shteti */
.at-geo-toggle { line-height: 1; }
.at-geo-toggle .geo-ic-minus { display: none; }
.at-geo-toggle:not(.collapsed) { background: var(--at-blue-soft); border-color: var(--at-blue); color: var(--at-blue); }
.at-geo-toggle:not(.collapsed) .geo-ic-plus { display: none; }
.at-geo-toggle:not(.collapsed) .geo-ic-minus { display: inline; }
/* Search-bar i shteteve/qyteteve */
.at-geo-searchbar { position: relative; max-width: 420px; }
.at-geo-searchbar .form-control { padding-left: 36px; padding-right: 36px; }
.at-geo-searchicon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa3b2; pointer-events: none; }
.at-geo-searchclear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #b0b7c3; cursor: pointer; line-height: 1; padding: 4px; }
.at-geo-searchclear:hover { color: #ef4757; }
/* Rrjetë masonry: kolona të pavarura — hapja e një kartele nuk e prek tjetrën */
.row.at-geo { display: block; }
.row.at-geo > .at-geo-col { width: 100%; max-width: 100%; margin: 0 0 1rem; padding: 0; break-inside: avoid; -webkit-column-break-inside: avoid; }
@media (min-width: 992px) {
  .row.at-geo { column-count: 2; column-gap: 1rem; }
}
.at-geo-col.at-geo-hide { display: none !important; }

/* Input i kyçur (readonly) — duket qartë i bllokuar derisa hapet me switch */
.at-locked {
  background: #e9ecef !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}

/* ---------- Shiriti i filtrit me datë (kuti/katror) ---------- */
.at-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--at-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-shadow: var(--at-card-shadow);
}
/* Shirit i vetëm (filtra + buton) me sfond të lehtë jeshil (ndarje seksioni) */
.at-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  background: var(--at-section-bg);
  border: 1px solid var(--at-section-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.at-filter-wrap .at-filter-bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
/* Toolbar në një rresht: search + excel/pdf + filtra + buton — të gjitha 42px */
.at-toolbar-line { align-items: center; }
.at-toolbar-line .at-tb-search { width: 420px; max-width: 100%; }
.at-toolbar-line .form-control { height: 40px; }
.at-toolbar-line .at-tb-date {
  height: 40px;
  min-width: 150px;
  border: 1px solid var(--at-input-border);
  border-radius: var(--at-radius);
  padding: 0 0.65rem;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2733;
  outline: none;
}
.at-toolbar-line .at-tb-date:focus { border-color: var(--at-blue); box-shadow: 0 0 0 0.15rem var(--at-blue-soft); }
.at-toolbar-line .btn { height: 40px; display: inline-flex; align-items: center; }
.at-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.at-filter-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #5b6472;
  margin: 0;
}
.at-filter-field input[type="date"] {
  border: 1px solid var(--at-input-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2733;
  outline: none;
  min-width: 160px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.at-filter-field input[type="date"]:focus {
  border-color: var(--at-blue);
  box-shadow: 0 0 0 0.15rem var(--at-blue-soft);
}
/* Select brenda filter-bar (p.sh. zgjedhja e linjës) — i njëjtë me input-et e datës */
.at-filter-field select {
  border: 1px solid var(--at-input-border);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1f2733;
  outline: none;
  min-width: 200px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.at-filter-field select:focus {
  border-color: var(--at-blue);
  box-shadow: 0 0 0 0.15rem var(--at-blue-soft);
}

/* ---------- Tabela e udhëtimeve (nisjet sipas datës) ---------- */
/* Rresht ndarës me datën (header brenda tabelës) */
.at-trips .at-date-row td {
  background: var(--at-section-bg, #f4f8f5);
  border-top: 1px solid var(--at-section-border, #e3ece6);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: .01em;
  color: #2f4636;
  text-transform: capitalize;
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.at-trips .at-trip-row:hover { background: var(--at-blue-soft, #eef3ff); }
/* Shiriti i mbushjes (rezervime / kapacitet) */
.at-occ-bar {
  height: 7px;
  border-radius: 6px;
  background: #eef0f4;
  overflow: hidden;
  min-width: 70px;
}
.at-occ-bar > span {
  display: block;
  height: 100%;
  border-radius: 6px;
  transition: width .25s ease;
}

/* ---------- Combobox i kërkueshëm (select me kërkim brenda dropdown-it) ---------- */
.at-combo { text-align: left; }
.at-combo-btn {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.at-combo-btn.text-muted { color: #8a93a3 !important; }
.at-combo-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 1056; text-align: left;
  background: #fff; border: 1px solid #e3e7ee; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
  padding: 8px;
}
.at-combo-search { margin-bottom: 8px; }
.at-combo-list { max-height: 240px; overflow-y: auto; }
.at-combo-group {
  font-weight: 700; text-transform: uppercase; font-size: .72rem;
  color: #5b6472; padding: 6px 8px 2px; letter-spacing: .03em;
}
.at-combo-item {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 7px 8px 7px 18px;
  border-radius: 6px; font-size: .9rem; color: #1f2733; cursor: pointer;
}
.at-combo-item:hover { background: #eef2f7; }
.at-combo-empty { padding: 10px 8px; color: #8a93a3; font-size: .85rem; }

/* ---------- Wizard step 1 field with label ABOVE the input ---------- */
.at-field { display: flex; flex-direction: column-reverse; text-align: left; }
.at-field > .form-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #5b6472;
  font-weight: 500;
}
/* Kalendari i datës si popup absolut (që të mos shtyjë rreshtimin) */
.at-cal {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 1056;
  background: #fff; border: 1px solid #e3e7ee; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14); padding: 10px;
}
.at-add-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--at-blue);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.32);
}
.at-add-btn:hover { background: var(--at-primary-strong); color: #fff; }

/* ---------- Wizard step 2 result rows ---------- */
.at-result-row {
  border: 1px solid var(--at-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.at-result-row:hover {
  border-color: var(--at-primary);
  box-shadow: 0 2px 8px rgba(47, 107, 255, 0.1);
}

/* ---------- Placeholder pages ---------- */
.at-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  color: #8a93a3;
}
.at-placeholder i { font-size: 3rem; color: #c3cad6; margin-bottom: 1rem; }

/* ---------- Wizard step 3: karta e pasagjerit ---------- */
.at-pass-card {
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.at-pass-card.active {
  border-color: var(--at-primary);
  box-shadow: 0 0 0 0.15rem rgba(47, 107, 255, 0.15);
}
.at-pass-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--at-blue-soft);
  color: var(--at-blue);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Wizard step 3: harta e ulëseve ---------- */
.at-seatmap-card { position: sticky; top: calc(var(--at-navbar-h) + 16px); }
.at-bus-front {
  text-align: right;
  color: #8a93a3;
  font-size: 0.8rem;
  padding: 0 4px 0.5rem 0;
  border-bottom: 2px dashed var(--at-border);
  margin-bottom: 0.75rem;
}
.at-seatmap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.at-seat-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.at-seat {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--at-input-border);
  background: #fff;
  color: #5b6472;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
}
.at-seat.free { cursor: pointer; }
.at-seat.free:hover {
  border-color: var(--at-blue);
  color: var(--at-blue);
  background: var(--at-blue-soft);
}
.at-seat.selected {
  background: var(--at-blue);
  border-color: var(--at-blue);
  color: #fff;
  cursor: pointer;
}
.at-seat.taken {
  background: #eef0f4;
  border-color: #eef0f4;
  color: #b6bdc9;
  cursor: not-allowed;
}
.at-aisle { width: 22px; }

.at-seat-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 4px;
  border: 1px solid var(--at-input-border);
}
.at-seat-dot.free { background: #fff; }
.at-seat-dot.selected { background: var(--at-blue); border-color: var(--at-blue); }
.at-seat-dot.taken { background: #eef0f4; border-color: #eef0f4; }

/* ---------- Modal: gjenerimi i ulëseve te autobusi ---------- */
.at-seat-preview {
  max-height: 260px;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--at-border);
  border-radius: 10px;
  background: var(--at-bg);
}
.at-seat.preview {
  width: 34px;
  height: 34px;
  font-size: 0.64rem;
  cursor: default;
  pointer-events: none;
  background: #fff;
}

/* ---------- Kartela e autobusit (modal) ---------- */
.at-kartela-section + .at-kartela-section { margin-top: 1.1rem; }
.at-kartela-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8a93a3;
  margin-bottom: 0.4rem;
}
.at-kartela-spec {
  background: var(--at-bg);
  border: 1px solid var(--at-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-align: center;
}
.at-kartela-spec .v { font-size: 1.15rem; font-weight: 700; }
.at-kartela-spec .k { font-size: 0.74rem; color: #8a93a3; }

/* ---------- Pakot turistike (kartela ofertash) ---------- */
.at-pako-card {
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.at-pako-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.at-pako-photo {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #2f6bff 0%, #22b07d 100%);
  overflow: hidden;
}
.at-pako-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.at-pako-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.at-pako-modal-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f6bff 0%, #22b07d 100%);
}

/* ---------- App i shoferit (mock PWA ne telefon) ---------- */
.at-phone {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 10px solid #1f2530;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.at-phone-header {
  background: linear-gradient(135deg, #2f6bff 0%, #22b07d 100%);
  color: #fff;
  padding: 1rem 1.1rem;
}
.at-phone-body {
  flex: 1 1 auto;
  overflow-y: auto;
  background: var(--at-bg);
  padding: 1rem;
  max-height: 600px;
}
.at-phone-nav {
  display: flex;
  border-top: 1px solid var(--at-border);
  background: #fff;
}
.at-phone-nav .nav-link {
  flex: 1 1 0;
  text-align: center;
  color: #8a93a3;
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  border-radius: 0;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.at-phone-nav .nav-link i { font-size: 1.15rem; }
.at-phone-nav .nav-link.active { color: var(--at-blue); background: var(--at-blue-soft); }

.at-app-item {
  background: #fff;
  border: 1px solid var(--at-border);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}
.at-app-stop {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Skaneri i biletave (placeholder) */
.at-scanner {
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--at-blue);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--at-blue);
  background: var(--at-blue-soft);
}

/* ---------- Tabs (kartela e autobusit si faqe) ---------- */
.at-tabs {
  gap: 0.35rem;
  border: none;
  flex-wrap: wrap;
}
.at-tabs .nav-link {
  color: #5b6472;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.at-tabs .nav-link:hover { background: #f5f7fb; color: #1f2530; }
.at-tabs .nav-link.active { background: var(--at-blue-soft); color: var(--at-blue); }

/* ---------- Raportet: grafikë me CSS (pa librari) ---------- */
.at-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 200px;
  padding-top: 8px;
}
.at-bar-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  height: 100%;
}
.at-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, #2f6bff 0%, #6f9bff 100%);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.at-bar-val { font-size: 0.66rem; font-weight: 600; color: #5b6472; }
.at-bar-label { font-size: 0.7rem; color: #8a93a3; }

.at-donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.at-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  background: #fff;
  border-radius: 50%;
}
.at-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
}
.at-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: -1px;
  margin-right: 6px;
}

/* ---------- Faqja publike e rezervimit ---------- */
.at-public-bar {
  background: #fff;
  border-bottom: 1px solid var(--at-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.at-public-hero {
  background: linear-gradient(135deg, #2f6bff 0%, #22b07d 100%);
  color: #fff;
  border-radius: 16px;
}

/* Dokumenti i pasagjerit (pasaportë / letërnjoftim) — placeholder */
.at-doc {
  border: 1px solid var(--at-input-border);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  max-width: 380px;
  margin: 0 auto;
}
.at-doc-photo {
  width: 74px;
  height: 92px;
  border-radius: 8px;
  background: var(--at-blue-soft);
  color: var(--at-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  flex: 0 0 auto;
}
.at-doc-line { height: 9px; border-radius: 4px; background: #eef0f4; }

/* Utility */
.cursor-pointer { cursor: pointer; }

/* ── Wizard "Shto udhëtime" (steppers) ───────────────────── */
.at-wiz-steps { gap: 0; }
.at-wiz-step { display: flex; align-items: center; gap: .5rem; color: #98a2b3; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.at-wiz-no { width: 30px; height: 30px; border-radius: 50%; background: #eef0f4; color: #98a2b3;
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: 0 0 auto; transition: .2s; }
.at-wiz-step.is-active { color: var(--at-blue, #2f6bff); }
.at-wiz-step.is-active .at-wiz-no { background: var(--at-blue, #2f6bff); color: #fff; }
.at-wiz-step.is-done { color: #1a8a5f; }
.at-wiz-step.is-done .at-wiz-no { background: #e3f7ee; color: #1a8a5f; }
.at-wiz-bar { flex: 1 1 auto; height: 2px; background: #eef0f4; margin: 0 .75rem; min-width: 18px; }
@media (max-width: 575.98px) { .at-wiz-lbl { display: none; } .at-wiz-bar { margin: 0 .4rem; } }

/* =================== PWA standalone i shoferit =================== */
body.at-shofer-pwa { background: #0d1b2a; margin: 0; }
.at-shofer-pwa .at-phone {
  max-width: 560px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 100vh;
  min-height: 100dvh;
}
.at-shofer-pwa .at-phone-header { padding-top: calc(1rem + env(safe-area-inset-top)); }
.at-shofer-pwa .at-phone-body { max-height: none; }
.at-shofer-pwa .at-phone-nav {
  position: sticky;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.at-shofer-pwa .at-phone-nav .nav-link { font-size: 0.6rem; }

/* Skaneri i biletave */
.at-skano-reader {
  width: 100%;
  min-height: 60px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b2a;
}
.at-skano-reader:empty { display: none; }
.at-skano-reader video { width: 100% !important; height: auto !important; display: block; }

/* Theksimi i kartës së pasagjerit pas skanimit */
@keyframes paxflash {
  0%   { box-shadow: 0 0 0 0 rgba(47,107,255,.55); }
  100% { box-shadow: 0 0 0 10px rgba(47,107,255,0); }
}
.at-app-item.pax-flash {
  border-color: var(--at-blue);
  animation: paxflash 1s ease-out 2;
}
