/* ==========================================
   Tiket Umroh Grup - Main Stylesheet
   Colors: #1a4b8c (Navy Blue) + #f5a623 (Gold)
   ========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a4b8c;
  --navy-dark: #12346a;
  --navy-light: #2460b0;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --gold-light: #ffc04d;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); }

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.navbar {
  background: #ffffff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border-bottom: 1px solid #e8edf5;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand .brand-icon {
  font-size: 1.8rem;
}

.navbar-brand .brand-text span {
  color: var(--gold);
}

.navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.navbar-links a {
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.navbar-links a:hover {
  color: var(--navy-dark);
  background: rgba(26,46,108,0.07);
}

.navbar-links a.active {
  color: var(--gold);
  font-weight: 700;
}

.navbar-links a.btn-outline {
  border: 1px solid var(--navy);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e5ca8 100%);
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ==========================================
   SEARCH BOX
   ========================================== */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 0;
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color 0.2s;
  background: var(--gray-50);
}

.search-input:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
}

.search-hints {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 8px;
  text-align: left;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-search {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.btn-search:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ==========================================
   MAIN LAYOUT
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content {
  padding: 40px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* ==========================================
   FILTER SIDEBAR
   ========================================== */
.filter-sidebar {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 84px;
}

.filter-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 8px;
  display: block;
}

.filter-select, .filter-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  background: var(--gray-50);
  color: var(--gray-700);
  transition: border-color 0.2s;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--navy);
  background: white;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-filter {
  width: 100%;
  background: var(--navy);
  color: white;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-filter:hover { background: var(--navy-dark); }

.btn-reset {
  width: 100%;
  background: transparent;
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 8px;
  transition: all 0.2s;
}

.btn-reset:hover { border-color: var(--danger); color: var(--danger); }

/* ==========================================
   TICKET CARDS
   ========================================== */
.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tickets-count {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
}

.ticket-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-100);
  transition: all 0.3s;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.ticket-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.ticket-card.status-booked {
  opacity: 0.7;
  background: var(--gray-50);
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available { background: #dcfce7; color: #15803d; }
.badge-booked { background: #fee2e2; color: #991b1b; }
.badge-unavailable { background: #fecaca; color: #7c2d12; }
.badge-hold { background: #fed7aa; color: #92400e; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }

.ticket-airline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.airline-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
  background: white;
  border: 1.5px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}
/* fallback when image fails */
.airline-logo:not(:has(img[style*="none"])) {
  background: white;
}
.airline-logo[data-code]::after {
  content: attr(data-code);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
}

.airline-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.airline-info .pnr {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-family: monospace;
}

.ticket-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.route-city {
  text-align: center;
}

.route-city .code {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

.route-city .name {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.route-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.route-line .line {
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.route-line .plane {
  color: var(--navy);
  font-size: 1rem;
}

.ticket-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.ticket-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket-price-box {
  text-align: right;
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.price-per {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.pax-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* ==========================================
   TICKET DETAIL PAGE
   ========================================== */
.ticket-detail {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-100);
}

.detail-airline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.airline-logo-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: white;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.segments-timeline {
  margin: 24px 0;
}

.segment-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.segment-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 4px;
}

.segment-content {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
}

.segment-route {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.segment-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ==========================================
   BOOKING FORM
   ========================================== */
.booking-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: border-color 0.2s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,75,140,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.payment-plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.plan-card.selected, .plan-card:has(input:checked) {
  border-color: var(--navy);
  background: rgba(26,75,140,0.04);
}

.plan-card-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.plan-card-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.plan-card-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-top: 8px;
}

/* ==========================================
   BOOKING STATUS
   ========================================== */
.status-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.booking-code {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 8px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-dp_paid { background: #dbeafe; color: #1e40af; }
.status-pending_verification { background: #fef9c3; color: #713f12; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-item label {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.info-item p {
  font-weight: 600;
  color: var(--gray-800);
}

/* Payment History */
.payment-history {
  margin-top: 24px;
}

.payment-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--gray-100);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-status-pending { color: #d97706; }
.payment-status-verified { color: #059669; }
.payment-status-rejected { color: #dc2626; }

/* Upload form */
.upload-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s;
  cursor: pointer;
}

.upload-area:hover { border-color: var(--navy); }

.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-text { color: var(--gray-500); margin-bottom: 8px; }

/* ==========================================
   ADMIN STYLES
   ========================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  flex-shrink: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

/* Mobile drawer state */
.admin-sidebar.drawer-open {
  transform: translateX(0);
}

.admin-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}

.admin-overlay.active {
  display: block;
}

.admin-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 8px 4px;
}

.admin-hamburger:hover {
  opacity: 0.7;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h2 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.admin-sidebar-header p {
  color: var(--gold);
  font-size: 0.75rem;
  margin-top: 2px;
}

.admin-nav {
  padding: 16px 0;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
  color: white;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold);
}

.admin-nav .nav-icon { font-size: 1rem; }

.admin-main {
  flex: 1;
  overflow-y: auto;
  background: var(--gray-50);
}

.admin-topbar {
  background: white;
  padding: 16px 28px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-content {
  padding: 28px;
}

@media (max-width: 768px) {
  .admin-main {
    width: 100%;
  }
  
  .admin-content {
    padding: 16px;
  }
  
  .admin-topbar {
    padding: 12px 16px;
  }
  
  .admin-topbar h1 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 12px;
  }
  
  .admin-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .admin-hamburger {
    padding: 6px 2px;
    font-size: 1.2rem;
  }
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--navy);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card.gold { border-color: var(--gold); }
.stat-card.success { border-color: var(--success); }
.stat-card.warning { border-color: var(--warning); }
.stat-card.info { border-color: var(--info); }

.stat-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.stat-info .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-info .label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Admin Table */
.admin-table-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-weight: 700;
  color: var(--navy);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: var(--gray-50);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* Admin form */
.admin-form {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-form textarea {
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--gray-800);
  color: #e2e8f0;
  border: none;
  border-radius: var(--radius-sm);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Filters bar */
.filters-bar {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filters-bar input, .filters-bar select {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--gray-50);
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.login-subtitle {
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ==========================================
   RESPONSIVE TABLE-TO-CARD LAYOUT
   ========================================== */
.desktop-table {
  display: table;
}

.table-card-list {
  display: none;
}

.table-card-list .card-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.table-card-list .card-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}

.table-card-list .card-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.table-card-list .card-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-card-list .card-value {
  font-size: 0.9rem;
  color: var(--gray-800);
  word-break: break-word;
}

.table-card-list .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.table-card-list .card-actions .btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
  margin-top: 60px;
  font-size: 0.85rem;
}

.footer a { color: var(--gold); }

/* ==========================================
   UTILITIES
   ========================================== */
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--gray-400); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { color: var(--gray-600); margin-bottom: 8px; }

/* ==========================================
   RESPONSIVE - TABLET (768px and below)
   ========================================== */
@media (max-width: 768px) {
  /* Sidebar Layout */
  .admin-layout { flex-direction: row; }
  .admin-sidebar { 
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    z-index: 99;
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  .admin-sidebar.drawer-open {
    transform: translateX(0);
  }
  .admin-hamburger { display: block; }
  .admin-main { width: 100%; }
  .admin-content {
    padding: 16px;
  }
  
  /* General Responsive */
  .layout-grid { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .payment-plan-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  
  /* Booking detail layout */
  #booking-screenshot-content {
    grid-template-columns: 1fr !important;
  }
  
  /* Cards */
  .ticket-card { 
    grid-template-columns: 1fr;
  }
  .ticket-price-box { text-align: left; }
  
  /* Stats */
  .stat-cards { grid-template-columns: 1fr 1fr; }
  
  /* Search */
  .search-input-group { flex-direction: column; }
  .hero { padding: 40px 20px 60px; }
  
  /* Detail Pages */
  .detail-header { flex-direction: column; gap: 16px; }
  .booking-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  
  /* Admin Filter Bar */
  .admin-filter-bar {
    flex-direction: column;
  }
  .admin-filter-bar input,
  .admin-filter-bar select {
    width: 100%;
  }
  
  /* Tables to Card Layout */
  .admin-table-wrap .desktop-table {
    display: none;
  }
  .admin-table-wrap .table-card-list {
    display: block;
  }
  
  /* Better spacing on mobile */
  .admin-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .admin-topbar h1 {
    font-size: 1rem;
  }
}

/* ==========================================
   RESPONSIVE - MOBILE (480px and below)
   ========================================== */
@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .ticket-route .route-city .name { display: none; }
  
  /* Smaller padding on mobile */
  .admin-content {
    padding: 12px;
  }
  
  /* Buttons more touch-friendly */
  .btn {
    padding: 12px 16px;
    min-height: 44px;
    font-size: 16px;
  }
  
  .btn-sm {
    padding: 10px 14px;
    min-height: 40px;
  }
  
  /* Navbar */
  .navbar-inner {
    height: 56px;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-brand .brand-icon {
    font-size: 1.4rem;
  }
  
  /* Hero section */
  .hero h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  
  /* Admin topbar */
  .admin-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-direction: column;
  }
  
  .admin-hamburger {
    padding: 6px 2px;
    font-size: 1.2rem;
  }
  
  /* Form spacing */
  .form-group {
    margin-bottom: 14px;
  }
  
  /* Tables - responsive card view */
  table {
    display: none;
  }
  
  .table-card-list {
    display: block !important;
  }
  
  /* Alert sizing */
  .alert {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  
  /* Filters bar */
  .filters-bar {
    flex-direction: column;
  }
  
  .filters-bar input,
  .filters-bar select {
    width: 100%;
  }
  
  /* Better heading sizing */
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
  
  /* Ensure readability */
  p { font-size: 1rem; }
  
  /* Admin form improvements */
  .admin-form {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  /* Pagination */
  .pagination {
    gap: 4px;
  }
  
  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  
  /* Ensure table card items are visible */
  .table-card-list .card-item {
    margin-bottom: 12px;
  }
}

/* ==========================================
   RESPONSIVE - SMALL PHONE (320px and below)
   ========================================== */
@media (max-width: 320px) {
  .admin-topbar h1 {
    font-size: 0.9rem;
  }
  
  .btn {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  table {
    font-size: 0.75rem;
  }
}

/* Search example chips */
.search-chips-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 12px;
  margin-bottom: 6px;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
/* Default chip: for white/light background (homepage search-box) */
.search-chip {
  display: inline-block;
  background: #eef3fb;
  color: var(--navy);
  border: 1.5px solid #c2d3f0;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.search-chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  text-decoration: none;
}
/* Light variant: for dark navy background (search result page top bar) */
.search-chip-light {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.78rem;
  padding: 4px 12px;
}
.search-chip-light:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 28px 0 12px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: white;
  transition: all 0.15s;
}
.page-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== ADMIN FILTER BAR ===== */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}
.admin-filter-bar input,
.admin-filter-bar select {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--gray-700);
  background: white;
}
.admin-filter-bar input[type=text],
.admin-filter-bar input[name=q] { min-width: 200px; }
.admin-filter-bar input[type=date] { min-width: 140px; }

/* ── How To Section ─────────────────────────────────────────── */
.howto-section {
  background: linear-gradient(135deg, #1a2e6c 0%, #0f3460 100%);
  padding: 72px 20px;
  color: white;
}
.howto-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.howto-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: white;
}
.section-label {
  display: inline-block;
  background: rgba(245,166,35,0.2);
  color: #f5a623;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: left;
}
.step-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform .2s, background .2s;
}
.step-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}
.step-num {
  position: absolute;
  top: -14px;
  left: 22px;
  background: #f5a623;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: white; }
.step-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section {
  background: #f8fafc;
  padding: 72px 20px;
}
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.faq-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a2e6c;
  margin-bottom: 10px;
}
.faq-inner .section-sub { color: #6b7280; }
.faq-inner .section-label {
  background: #e8f0fe;
  color: #1a2e6c;
}
.faq-list {
  margin-top: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2e6c;
  gap: 12px;
  text-align: left;
}
.faq-arrow {
  font-size: 0.75rem;
  color: #9ca3af;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-q.open .faq-arrow { transform: rotate(180deg); color: #1a4b8c; }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  border-top: 1px solid #f3f4f6;
}
.faq-a p { margin: 12px 0 0; }
.faq-a.open { display: block; }

@media (max-width: 640px) {
  .howto-inner h2, .faq-inner h2 { font-size: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   MOBILE NAVBAR — hamburger + drawer
   ===================================================== */

/* Default: hamburger hidden (desktop) */
.nav-hamburger {
  display: none;
}

/* Mobile only: show hamburger */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f0f4f8;
    border: 1.5px solid #d1d9e6;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-hamburger i {
    font-size: 1.2rem;
    color: #1a2e6c;
    pointer-events: none;
  }
  .nav-hamburger .icon-close { display: none; }
  .nav-hamburger .icon-open  { display: inline-block; }
  .nav-hamburger.open .icon-close { display: inline-block; }
  .nav-hamburger.open .icon-open  { display: none; }
}

/* Drawer — hidden by default, show when .open (mobile only) */
.nav-drawer {
  display: none;
}
@media (max-width: 768px) {
  .nav-drawer.open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9000;
    border-top: 2px solid #f5a623;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    animation: drawerSlide .2s ease;
  }
  .nav-drawer.open a {
    display: block;
    padding: 16px 20px;
    color: #1a2e6c;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-drawer.open a:last-child { border-bottom: none; }
  .nav-drawer.open a:active    { background: #fff8e7; }
  .nav-drawer.open a.active    { color: #f5a623; }
}
@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
