/* ==========================================
   Tiket Grup Umroh - 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;
}

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

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
.navbar {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(26,75,140,0.3);
}

.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: white;
  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: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.navbar-links a:hover {
  color: white;
  background: rgba(255,255,255,0.15);
}

.navbar-links a.btn-outline {
  border: 1px solid rgba(255,255,255,0.4);
}

/* ==========================================
   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: 1rem;
  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;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
  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: 0.9rem;
  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-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: linear-gradient(135deg, var(--navy), var(--navy-light));
  flex-shrink: 0;
}

.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: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.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: 0.95rem;
  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;
}

.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;
}

.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;
}

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

.admin-content {
  padding: 28px;
}

/* 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;
}

/* ==========================================
   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
   ========================================== */
@media (max-width: 768px) {
  .layout-grid { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .ticket-card { grid-template-columns: 1fr; }
  .ticket-price-box { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .payment-plan-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .search-input-group { flex-direction: column; }
  .hero { padding: 40px 20px 60px; }
  .navbar-links { display: none; }
  .detail-header { flex-direction: column; gap: 16px; }
  .booking-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .ticket-route .route-city .name { display: none; }
}

/* 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; }
