/* ========================================
   SHREE RAM TRAVELS - STYLES
   Tailwind-inspired custom CSS
   ======================================== */

/* === ROOT VARIABLES === */
:root {
  /* Colors */
  --primary: #FF6B35;
  --primary-dark: #E85A2A;
  --secondary: #1E293B;
  --secondary-light: #334155;
  --accent: #10B981;
  
  /* Grays */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-unit: 8px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: var(--slate-50);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

.text-muted {
  color: var(--slate-500);
}

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

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === NAVBAR === */
.navbar {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--slate-600);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.show {
    display: flex;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--slate-300);
  color: var(--secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: #EF4444;
  color: white;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--slate-600);
}

.btn-icon:hover {
  color: var(--primary);
}

.btn-group {
  display: flex;
  gap: 0.5rem;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--slate-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input.error {
  border-color: #EF4444;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--secondary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.4), rgba(248, 250, 252, 1));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--slate-200);
  margin-bottom: 3rem;
}

/* === BOOKING CARD === */
.booking-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  margin-top: -4rem;
  position: relative;
  z-index: 100;
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .booking-form {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .booking-form .form-group:last-child {
    display: flex;
    align-items: flex-end;
  }
}

/* === SCHEDULE CARDS === */
.schedules-list {
  display: grid;
  gap: 1.5rem;
}

.schedule-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .schedule-card {
    flex-direction: row;
  }
}

.schedule-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.schedule-info {
  flex: 1;
  padding: 1.5rem;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.bus-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  transition: var(--transition);
}

.schedule-card:hover .bus-name {
  color: var(--primary);
}

.bus-rating {
  background: #D1FAE5;
  color: #065F46;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.bus-type {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.route-timeline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.route-time {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.route-city {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.route-connector {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.route-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--slate-200);
}

.route-duration {
  position: relative;
  z-index: 10;
  background: white;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bus-amenities {
  display: flex;
  gap: 1rem;
  color: var(--slate-400);
}

.amenity-icon {
  width: 16px;
  height: 16px;
}

.schedule-cta {
  background: var(--slate-50);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--slate-100);
  min-width: 200px;
}

.price-section {
  text-align: center;
  margin-bottom: 1rem;
}

.price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-400);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.seats-left {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* === SEAT LAYOUT === */
.seat-layout-container {
  padding: 2rem 0;
}

.seat-deck {
  margin-bottom: 3rem;
}

.deck-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
  text-align: center;
}

.driver-indicator {
  background: var(--slate-100);
  padding: 0.5rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.seat-grid {
  max-width: 600px;
  margin: 0 auto;
}

.seat-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.seat-aisle {
  width: 2rem;
}

.seat {
  width: 60px;
  height: 60px;
  border: 2px solid var(--slate-300);
  border-radius: 0.5rem;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.seat:hover:not(:disabled) {
  border-color: var(--primary);
  transform: scale(1.05);
}

.seat.seat-window {
  background: linear-gradient(135deg, #EFF6FF 0%, white 100%);
}

.seat.seat-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.seat.seat-booked {
  background: var(--slate-100);
  border-color: var(--slate-200);
  cursor: not-allowed;
  opacity: 0.6;
}

.seat-number {
  font-size: 0.875rem;
  font-weight: 700;
}

.seat-price {
  font-size: 0.625rem;
  margin-top: 0.125rem;
}

.seat.seat-selected .seat-price {
  color: rgba(255, 255, 255, 0.9);
}

/* === LEGEND === */
.seat-legend {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-box {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 2px solid;
}

.legend-available {
  border-color: var(--slate-300);
  background: white;
}

.legend-selected {
  border-color: var(--primary);
  background: var(--primary);
}

.legend-booked {
  border-color: var(--slate-200);
  background: var(--slate-100);
}

/* === SUMMARY SIDEBAR === */
.summary-sidebar {
  position: sticky;
  top: 6rem;
}

.summary-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
}

.summary-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.summary-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.detail-group {
  margin-bottom: 1rem;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
  color: var(--secondary);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 1.5rem 0;
}

.selected-seats-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.selected-seat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--slate-50);
  border-radius: 0.5rem;
}

.seat-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.seat-badge-sm {
  background: var(--primary);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  display: inline-block;
  margin: 0.125rem;
}

.seat-item-price {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.875rem;
}

.remove-seat-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.remove-seat-btn:hover {
  background: var(--slate-100);
  color: var(--slate-600);
}

.total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.total-amount {
  color: var(--primary);
  font-size: 1.5rem;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 1rem;
}

.empty-selection {
  text-align: center;
  padding: 2rem 0;
  color: var(--slate-500);
}

/* === PAYMENT PAGE === */
.payment-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.payment-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* === CONFIRMATION === */
.confirmation-success {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 3rem;
  color: #10B981;
}

.success-title {
  font-size: 2rem;
  color: #065F46;
  margin-bottom: 0.5rem;
}

.success-message {
  color: #047857;
  font-size: 1.125rem;
}

/* === TICKET CARD === */
.ticket-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}

.ticket-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.ticket-header h3 {
  color: white;
  margin-bottom: 1rem;
}

.ticket-token {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.token-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.token-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 1px;
}

.ticket-body {
  padding: 2rem;
}

.ticket-section {
  margin-bottom: 1.5rem;
}

.ticket-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ticket-row {
    grid-template-columns: 1fr 1fr;
  }
}

.ticket-field {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.field-value {
  font-weight: 600;
  color: var(--secondary);
}

.seats-value {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.amount-value {
  color: var(--primary);
  font-size: 1.25rem;
}

.ticket-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 1.5rem 0;
}

.ticket-footer {
  background: var(--slate-50);
  padding: 1rem 2rem;
  border-top: 1px solid var(--slate-100);
}

.ticket-note {
  font-size: 0.75rem;
  color: var(--slate-600);
  margin: 0.25rem 0;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === ADMIN PANEL === */
.admin-header {
  background: var(--secondary);
  color: white;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--slate-200);
}

.admin-tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--slate-600);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: var(--primary);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
  text-align: center;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* === TABLES === */
.table-container {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.table thead {
  background: var(--slate-50);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.875rem;
  border-bottom: 2px solid var(--slate-200);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.table tbody tr:hover {
  background: var(--slate-50);
}

.token-code {
  background: var(--slate-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.75rem;
}

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-secondary {
  background: var(--slate-200);
  color: var(--slate-700);
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid;
  min-width: 300px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-info {
  border-color: #3B82F6;
}

.toast-success {
  border-color: #10B981;
}

.toast-warning {
  border-color: #F59E0B;
}

.toast-error {
  border-color: #EF4444;
}

/* === LOADING SPINNER === */
.loading-spinner {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === SKELETON LOADERS === */
.skeleton-card {
  padding: 1.5rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--slate-200) 25%, var(--slate-100) 50%, var(--slate-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-button {
  height: 2.5rem;
  width: 150px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === EMPTY STATES === */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}

/* === ANIMATIONS === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* === FOOTER === */
.footer {
  background: var(--secondary);
  color: white;
  padding: 3rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer h3, .footer h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--slate-400);
  font-size: 0.875rem;
}

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

/* === PRINT STYLES === */
@media print {
  .no-print,
  .navbar,
  .footer,
  .confirmation-actions,
  button {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .ticket-card {
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .schedule-card {
    flex-direction: column;
  }
  
  .schedule-cta {
    border-left: none;
    border-top: 1px solid var(--slate-100);
  }
  
  .route-timeline {
    flex-direction: column;
    gap: 1rem;
  }
  
  .route-connector {
    width: 2px;
    height: 2rem;
    flex-direction: column;
  }
  
  .route-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
  }
  
  .seat {
    width: 50px;
    height: 50px;
  }
  
  .summary-sidebar {
    position: static;
  }
}

/* === UTILITIES === */
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Seat Zone Colors */
.zone-first-right {
  border-color: #3b82f6; /* Blue border for first right */
}

.zone-sleeper {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.zone-last-left {
  border-color: #10b981; /* Green border for last left */
}

.seat-sleeper {
  width: 60px; /* Wider for sleeper seats */
  font-size: 0.75rem;
}

.seat-type {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.7rem;
}
/* ========================================
   SEAT LAYOUT STYLES - NEW DESIGN
   Add this to your existing CSS or create seats.css
   ======================================== */

/* New Seat Grid Layout */
.seat-grid-new {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.seat-row-new {
  display: grid;
  grid-template-columns: auto auto 20px auto auto 20px auto;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* Driver Indicator */
/* Driver Indicator */
.driver-indicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.driver-indicator svg {
  width: 20px;
  height: 20px;
  stroke: white;
}











/* New Seat Button Styles */
.seat-new {
  position: relative;
  width: 80px;
  height: 100px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.seat-new:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.seat-new:active:not(:disabled) {
  transform: translateY(0);
}

/* Seat Number */
.seat-new .seat-number {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
}

/* Seat Price */
.seat-new .seat-price {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

/* Seat Type (for sleepers) */
.seat-new .seat-type {
  font-size: 1.25rem;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}

/* Sold Label */
.sold-label {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 600;
  text-transform: uppercase;
}

/* Seat States */
.seat-new.seat-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.seat-new.seat-selected .seat-number,
.seat-new.seat-selected .seat-price {
  color: white;
}

.seat-new.seat-booked {
  background: #f3f4f6;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.seat-new.seat-booked .seat-number {
  color: #9ca3af;
}

.seat-new:disabled {
  cursor: not-allowed;
}

/* Sleeper Seat Special Styling */
.seat-new.seat-sleeper {
  height: 120px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.seat-new.seat-sleeper.seat-selected {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Zone-Based Seat Colors */
.seat-new.zone-first-right {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.seat-new.zone-first-right.seat-selected {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
}

.seat-new.zone-first-left {
  border-color: #d1d5db;
  background: white;
}

.seat-new.zone-first-left.seat-selected {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border-color: #6b7280;
}

.seat-new.zone-last-left {
  border-color: #10b981;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.seat-new.zone-last-left.seat-selected {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
}

.seat-new.zone-sleeper {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.seat-new.zone-sleeper.seat-selected {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
}

/* Aisle Spacing */
.seat-aisle {
  width: 20px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  font-size: 0.75rem;
}

/* Deck Title */
.deck-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Selected Seat Badge in Summary */
.seat-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  background: #e5e7eb;
  color: #1f2937;
}

.seat-badge.zone-first-right {
  background: #3b82f6;
  color: white;
}

.seat-badge.zone-first-left {
  background: #6b7280;
  color: white;
}

.seat-badge.zone-last-left {
  background: #10b981;
  color: white;
}

.seat-badge.zone-sleeper {
  background: #f59e0b;
  color: white;
}

/* Seat Legend */
.seat-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.legend-box {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.legend-box.available {
  background: white;
  border-color: #d1d5db;
  color: #6b7280;
}

.legend-box.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.legend-box.booked {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.legend-box.sleeper {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  color: #78350f;
}

/* Pricing Zone Legend */
.pricing-zones-legend {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pricing-zones-legend h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f2937;
}

.pricing-zone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: #f9fafb;
}

.pricing-zone-item:last-child {
  margin-bottom: 0;
}

.zone-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.zone-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid;
}

.zone-color.first-right {
  background: #3b82f6;
  border-color: #3b82f6;
}

.zone-color.first-left {
  background: #6b7280;
  border-color: #6b7280;
}

.zone-color.last-left {
  background: #10b981;
  border-color: #10b981;
}

.zone-color.sleeper {
  background: #f59e0b;
  border-color: #f59e0b;
}

.zone-name {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 500;
}

.zone-seats {
  font-size: 0.75rem;
  color: #6b7280;
}

.zone-price {
  font-size: 1rem;
  font-weight: 700;
  color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
  .seat-new {
    width: 60px;
    height: 80px;
    font-size: 0.75rem;
  }
  
  .seat-new .seat-number {
    font-size: 0.875rem;
  }
  
  .seat-new .seat-price {
    font-size: 0.625rem;
  }
  
  .seat-new.seat-sleeper {
    height: 100px;
  }
  
  .seat-row-new {
    gap: 0.375rem;
  }
  
  .seat-aisle {
    width: 15px;
    height: 80px;
  }
  
  .driver-indicator {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .seat-legend {
    gap: 1rem;
  }
  
  .legend-box {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .seat-new {
    width: 50px;
    height: 70px;
  }
  
  .seat-new .seat-number {
    font-size: 0.75rem;
  }
  
  .seat-new .seat-price {
    display: none; /* Hide price on very small screens */
  }
  
  .seat-new.seat-sleeper {
    height: 85px;
  }
  
  .seat-row-new {
    gap: 0.25rem;
  }
  
  .seat-aisle {
    width: 10px;
    height: 70px;
  }
}

/* Admin Pricing Form Styles */
.pricing-form-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pricing-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-input-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-input-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
}

.pricing-input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pricing-description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.pricing-example {
  font-size: 0.75rem;
  color: #667eea;
  font-weight: 500;
  margin-top: 0.25rem;
}

#pricing-preview {
  margin-top: 1.5rem;
}

/* Color indicators for pricing inputs */
.pricing-input-group.first-right label::before {
  content: '🔵';
  font-size: 1rem;
}

.pricing-input-group.first-left label::before {
  content: '⚪';
  font-size: 1rem;
}

.pricing-input-group.last-left label::before {
  content: '🟢';
  font-size: 1rem;
}

.pricing-input-group.sleeper label::before {
  content: '🟠';
  font-size: 1rem;
}
/* ========================================
   7-ROW SEAT LAYOUT STYLES
   Layout: Left (1 column) | Aisle | Right (2 columns)
   ======================================== */

/* 7-Row Seat Grid Layout */
.seat-grid-7row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.seat-row-7 {
  display: grid;
  grid-template-columns: 80px 30px 80px 80px; /* 1 seat | aisle | 2 seats (default) */
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

/* Last row with wide sleeper seat */
.seat-row-7-last {
  grid-template-columns: 80px 30px 170px; /* 1 seat | aisle | wide sleeper */
}

/* Seat 20 in last row should be wider */
.seat-row-7-last .seat-new.zone-sleeper {
  width: 170px;
}

/* Seat spacer for empty spots */
.seat-spacer {
  width: 80px;
  height: 100px;
}

/* Driver Indicator */
.driver-indicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Aisle */
.seat-aisle {
  width: 30px;
  height: 100px;
  background: linear-gradient(to bottom, 
    rgba(203, 213, 225, 0.2) 0%, 
    rgba(203, 213, 225, 0.5) 50%, 
    rgba(203, 213, 225, 0.2) 100%
  );
  border-radius: 4px;
  position: relative;
}

.seat-aisle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 80%;
  background: repeating-linear-gradient(
    to bottom,
    #cbd5e1 0px,
    #cbd5e1 5px,
    transparent 5px,
    transparent 10px
  );
}

/* New Seat Button Styles */
.seat-new {
  position: relative;
  width: 80px;
  height: 100px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.seat-new:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.seat-new:active:not(:disabled) {
  transform: translateY(0);
}

/* Seat Number */
.seat-new .seat-number {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
}

/* Seat Price */
.seat-new .seat-price {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

/* Seat Type (for sleepers) */
.seat-new .seat-type {
  font-size: 1.25rem;
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}

/* Sleeper seats are wider and taller */
.seat-new.seat-sleeper {
  width: 80px;  /* Same width as regular seats */
  height: 100px;
  background: white;  /* Default white background, not highlighted */
  border-color: #d1d5db;  /* Default border */
}

/* Sold Label */
.sold-label {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 600;
  text-transform: uppercase;
}

/* Seat States */
.seat-new.seat-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.seat-new.seat-selected .seat-number,
.seat-new.seat-selected .seat-price {
  color: white;
}

.seat-new.seat-booked {
  background: #f3f4f6;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

.seat-new.seat-booked .seat-number {
  color: #9ca3af;
}

/* Zone-based seat colors - only when zone class is applied */
.seat-new.zone-first-right {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.seat-new.zone-first-right:hover:not(:disabled) {
  border-color: #2563eb;
}

.seat-new.zone-first-left {
  border-color: #6b7280;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.seat-new.zone-first-left:hover:not(:disabled) {
  border-color: #475569;
}

.seat-new.zone-last-left {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.seat-new.zone-last-left:hover:not(:disabled) {
  border-color: #059669;
}

.seat-new.zone-sleeper {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.seat-new.zone-sleeper:hover:not(:disabled) {
  border-color: #d97706;
}

/* Deck Title */
.deck-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .seat-grid-7row {
    padding: 1rem;
    max-width: 100%;
  }
  
  .seat-row-7 {
    grid-template-columns: 70px 25px 70px 70px;
    gap: 0.375rem;
  }
  
  .seat-row-7-last {
    grid-template-columns: 70px 25px 145px; /* Last row with wide sleeper */
  }
  
  .seat-row-7-last .seat-new.zone-sleeper {
    width: 145px;
  }
  
  .seat-new {
    width: 70px;
    height: 90px;
    font-size: 0.8125rem;
  }
  
  .seat-new.seat-sleeper {
    width: 70px;  /* Same as regular on mobile */
  }
  
  .seat-spacer {
    width: 70px;
    height: 90px;
  }
  
  .seat-aisle {
    width: 25px;
    height: 90px;
  }
  
  .driver-indicator {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .seat-row-7 {
    grid-template-columns: 60px 20px 60px 60px;
    gap: 0.25rem;
  }
  
  .seat-row-7-last {
    grid-template-columns: 60px 20px 125px; /* Last row with wide sleeper */
  }
  
  .seat-row-7-last .seat-new.zone-sleeper {
    width: 125px;
  }
  
  .seat-new {
    width: 60px;
    height: 80px;
    font-size: 0.75rem;
    padding: 0.375rem;
  }
  
  .seat-new.seat-sleeper {
    width: 60px;  /* Same as regular on small screens */
  }
  
  .seat-new .seat-number {
    font-size: 0.875rem;
  }
  
  .seat-new .seat-price {
    font-size: 0.6875rem;
  }
  
  .seat-spacer {
    width: 60px;
    height: 80px;
  }
  
  .seat-aisle {
    width: 20px;
    height: 80px;
  }
}