/**
 * Project250 Frontend Stylesheet
 * Description: Main stylesheet for bus booking system
 * Author: Project250 Team
 * Last Modified: November 2, 2025
 */

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. Reset & Base Styles
   2. CSS Variables
   3. Layout Components
      - Header
      - Navigation
      - Footer
   4. UI Components
      - Buttons
      - Forms
      - Cards
   5. Page-Specific Styles
      - Authentication
      - Search & Booking
      - Seat Selection
      - Ticket Display
   6. Utilities
   7. Media Queries
   ============================================ */

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

html,
body {
  scroll-behavior: smooth;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background: #eaebec;
  color: #222;
}

/* ============================================
   2. CSS VARIABLES
   ============================================ */
:root {
  /* Color Palette */
  --primary-color: #22b55d;
  --secondary-color: #0da477;
  --accent-color: #ffcc00;
  --danger-color: #e60000;
  --success-color: #2ecc71;
  --warning-color: #f39c12;

  /* Text Colors */
  --text-light: #ffffff;
  --text-dark: #222222;
  --text-muted: #666666;
  --text-placeholder: #999999;

  /* Background Colors */
  --background-light: #f4faff;
  --background-white: #ffffff;
  --background-gray: #eaebec;

  /* Border & Shadow */
  --border-color: #cccccc;
  --border-light: #dddddd;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ============================================
   3. LAYOUT COMPONENTS
   ============================================ */

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-color);
  box-sizing: border-box;
  position: relative;
  left: 0;
  right: 0;
}

header img {
  height: 40px;
  background: var(--background-white);
  border-radius: 5px;
}

/* --- Navigation --- */
nav a {
  margin: 0 4px;
  padding-left: 12px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color var(--transition-normal);
}

nav a:hover {
  color: var(--accent-color);
}

/* --- User Section --- */
#userSection {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* --- Footer --- */
footer {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  background: var(--primary-color);
  color: var(--text-light);
  box-sizing: border-box;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-col {
  margin: 15px 0 10px 60px;
  min-width: 200px;
  line-height: 1.8;
}

.footer-col strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-color);
}

/* ============================================
   4. UI COMPONENTS
   ============================================ */

/* --- Buttons --- */
.btn-login {
  background: var(--accent-color);
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition-normal);
}

.btn-login:hover {
  background: #e6b800;
}

.btn-logout {
  background: var(--danger-color);
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-normal), transform var(--transition-fast);
}

.btn-logout:hover {
  background: #c20000;
  transform: translateY(-1px);
}

.btn-logout:active {
  transform: translateY(0);
}

.btn-next,
.search-btn {
  background: var(--secondary-color);
  margin: 24px auto;
  display: block;
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 4cap;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition-normal);
}

.btn-next:hover,
.search-btn:hover {
  background-color: var(--danger-color);
}

.details-box .card .btn-pay,
.payment-section .btn-pay {
  display: inline-block;
  background-color: #ef1a1a;
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.details-box .card .btn-pay:hover,
.payment-section .btn-pay:hover {
  background-color: #a12e17;
  transform: translateY(-2px);
}

.ticket-card .btn-pay {
  display: inline-block;
  background-color: #0ed33f;
  color: var(--text-light);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

/* --- Progress Steps --- */
.steps {
  display: flex;
  justify-content: center;
  margin: 25px auto;
  flex-wrap: wrap;
  width: 100%;
}

.step {
  background: #c97b42;
  padding: 10px 35px 10px 25px;
  color: var(--text-light);
  font-weight: bold;
  position: relative;
  margin-right: 2px;
  clip-path: polygon(0 0,
      calc(100% - 15px) 0,
      100% 50%,
      calc(100% - 15px) 100%,
      0 100%,
      15px 50%);
  transition: background var(--transition-normal);
}

.step:first-child {
  clip-path: polygon(0 0,
      calc(100% - 15px) 0,
      100% 50%,
      calc(100% - 15px) 100%,
      0 100%);
  padding-left: 20px;
}

.step.active {
  background: var(--danger-color);
}

.step:last-child::after {
  display: none;
}

/* --- Cards --- */
.search-box,
.schedule,
.seat-section,
.ticket-card,
.details-box .card {
  background: var(--background-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* --- Table Styles --- */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th,
td {
  padding: 10px;
  border: 1px solid var(--border-light);
}

th {
  background: var(--primary-color);
  color: var(--text-light);
}

td button {
  padding: 5px 10px;
  border: none;
  background: #e74c3c;
  color: var(--text-light);
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition-normal);
}

td button:hover {
  background: #c0392b;
}

/* ============================================
   5. PAGE-SPECIFIC STYLES
   ============================================ */

/* --- Authentication Pages --- */
#signinBox,
#registerBox {
  max-width: 600px;
  height: auto;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
}

#signinBox input,
#registerBox input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

#signinBox input:focus,
#registerBox input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(34, 181, 93, 0.3);
}

#signinBox input::placeholder,
#registerBox input::placeholder {
  color: var(--text-placeholder);
}

#signinBox button,
#registerBox button {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-normal), transform var(--transition-fast);
  margin-top: 10px;
}

#signinBox button:hover,
#registerBox button:hover {
  background: var(--danger-color);
  transform: translateY(-2px);
}

#signinBox button:active,
#registerBox button:active {
  transform: translateY(0);
}

#signinBox p,
#registerBox p {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

#signinBox p a,
#registerBox p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-normal);
}

#signinBox p a:hover,
#registerBox p a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- Search & Booking Section --- */
.search-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 4cap;
  margin-top: 3cap;
  margin-bottom: 3cap;
}

.search-box {
  background: var(--background-white);
  width: 100%;
  height: 250px;
  max-width: 950px;
  margin: 20px;
  padding: 8px;
}

.search-box h3 {
  background: var(--primary-color);
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-light);
}

.form-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.form-column div {
  width: 100%;
  max-width: 300px;
  margin: 10px;
}

.form-column label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
}

.form-column select,
.form-column input[type="date"] {
  width: 100%;
  padding: 10px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: #eaf4ff;
  color: var(--primary-color);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-normal);
}

.form-column select:focus,
.form-column input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* --- Schedule Display --- */
.schedule {
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
  box-shadow: var(--shadow-sm);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.schedule-header h2 {
  margin: 0;
  color: var(--text-dark);
}

/* --- Seat Selection --- */
.seat-section {
  max-width: 900px;
  margin: 20px auto;
  background: var(--background-white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.seat-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  margin-top: 20px;
}

.bus-frame,
.summary {
  flex: 1;
  max-width: 100%;
}

.bus-frame {
  flex: 1;
  max-width: 320px;
  border: 3px solid #d4a373;
  border-radius: 12px;
  padding: 12px;
  margin-right: 20px;
  background: #fff8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.seats {
  display: grid;
  grid-template-columns: 60px 40px 60px 60px;
  /* left seat, aisle, right 2 seats */
  gap: 12px;
  justify-content: center;
  margin: 12px 0;
}

.seat {
  width: 60px;
  height: 40px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: 2px solid #004400;
  font-weight: bold;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.seat:hover:not(.booked) {
  transform: scale(1.05);
}

.aisle {
  width: 40px;
}

.engine {
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: #e3c1b7;
  color: #5a2c2c;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid #a0522d;
}

.available {
  background: var(--success-color);
  color: var(--text-light);
}

.booked {
  background: #e74c3c;
  color: var(--text-light);
  cursor: not-allowed;
}

.selected {
  background: var(--warning-color);
  color: var(--text-light);
}

.summary {
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: #f9f9f9;
}

.summary h4 {
  margin: 0 0 10px 0;
  color: var(--text-dark);
}

.summary ul {
  list-style: none;
  padding: 0;
}

.summary ul li {
  margin-bottom: 5px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text-dark);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: bold;
  color: var(--text-dark);
}

.summary hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 4px 0;
}

/* --- Passenger Details --- */
.pass-container {
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 20px;
}

.pass-container h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.details-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.details-box .card {
  flex: 1 1 30%;
  background-color: var(--background-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  min-width: 250px;
}

.details-box .card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  color: var(--text-dark);
}

.details-box .card p {
  margin: 8px 0;
  font-size: 16px;
  color: var(--text-dark);
}

.details-box .card .fare-total {
  font-weight: 700;
  font-size: 18px;
  margin-top: 10px;
  color: var(--danger-color);
}

.details-box .card .note {
  font-size: 14px;
  color: #888;
  margin-top: 10px;
}

.details-box .card input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.details-box .card input[type="text"]:focus {
  border-color: var(--primary-color);
}

/* Admin Dashboard Specific Styles */
.admin-container {
  display: flex;
  min-height: calc(100vh - 65px);
}

.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #1a7a4a 0%, #22b55d 100%);
  color: white;
  padding: 20px 0;
  position: fixed;
  height: calc(100vh - 65px);
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
  font-size: 22px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  font-weight: 500;
}

.sidebar ul li a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #ffcc00;
  padding-left: 30px;
}

.sidebar ul li a.active {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #ffcc00;
  font-weight: 600;
}

.sidebar ul li a .icon {
  font-size: 20px;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 30px;
  background: #eaebec;
}

.dashboard-header {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.dashboard-header h1 {
  margin: 0;
  color: #22b55d;
  font-size: 28px;
}

.dashboard-header p {
  margin: 5px 0 0 0;
  color: #666;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #22b55d;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .number {
  font-size: 36px;
  font-weight: 700;
  color: #22b55d;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-container h2 {
  margin: 0 0 20px 0;
  color: #22b55d;
  border-bottom: 2px solid #22b55d;
  padding-bottom: 10px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #22b55d;
  box-shadow: 0 0 5px rgba(34, 181, 93, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.btn-submit {
  background: #22b55d;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #1a8f4a;
}

.table-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.table-container h2 {
  margin: 0 0 20px 0;
  color: #22b55d;
}

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

th {
  background: #22b55d;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tbody tr:hover {
  background: #f5f5f5;
}

.btn-action {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-right: 5px;
  transition: opacity 0.3s ease;
}

.btn-edit {
  background: #3498db;
  color: white;
}

.btn-delete {
  background: #e74c3c;
  color: white;
}

.btn-action:hover {
  opacity: 0.8;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 15px;
}

/* --- Payment Section --- */
.payment-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--background-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.payment-section h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  display: inline-block;
  padding-bottom: 8px;
  color: var(--text-dark);
}

.payment-section p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.payment-section .payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.payment-section .payment-logos img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.payment-section .payment-logos img:hover {
  transform: scale(1.1);
}

/* --- Ticket Display --- */
.ticket-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 2px;
}

.ticket-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.ticket-card {
  background-color: var(--background-white);
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  line-height: 1.6;
  font-size: 16px;
  color: var(--text-dark);
}

.ticket-card h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  color: var(--text-dark);
}

.ticket-card p {
  margin: 8px 0;
  color: var(--text-dark);
}

/* Ticket Print Styles */
.ticket-print-wrapper {
  background: var(--background-white);
  border-radius: 12px;
  overflow: hidden;
}

.ticket-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 20px;
  text-align: center;
}

.ticket-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.ticket-header .company-name {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
}

.ticket-body {
  padding: 10px 30px 30px 30px;
}

.ticket-section {
  margin-bottom: 25px;
}

.ticket-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
  margin-top: 15px;
}

.ticket-info-item {
  display: flex;
  flex-direction: column;
}

.ticket-info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}

.ticket-info-value {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
}

.ticket-route {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid var(--primary-color);
}

.route-display {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.ticket-fare-box {
  background: #fff8e6;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin: 20px 0;
}

.ticket-fare-box .fare-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.ticket-fare-box .fare-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--danger-color);
}

.ticket-footer {
  background: #f8f9fa;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 2px dashed var(--border-color);
}

.payment-id-box {
  background: #e8f5e9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  text-align: center;
}

.payment-id-box .payment-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.payment-id-box .payment-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: 'Courier New', monospace;
}

.barcode-placeholder {
  margin: 20px auto;
  text-align: center;
}

.barcode-placeholder svg {
  max-width: 300px;
  height: 80px;
}

/* ============================================
   6. UTILITIES
   ============================================ */

.hidden {
  display: none;
}

/* --- Toast Notifications --- */
.toast {
  visibility: hidden;
  min-width: 300px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  border-radius: 8px;
  padding: 16px 24px;
  position: fixed;
  z-index: 9999;
  top: 30px;
  right: 30px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  visibility: visible;
  animation: slideInRight 0.5s, slideOutRight 0.5s 2.5s;
}

.toast.error {
  background-color: #e74c3c;
}

.toast.success {
  background-color: var(--primary-color);
}

.toast-icon {
  font-size: 24px;
}

.toast-content {
  flex: 1;
  text-align: left;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.95;
}

/* ============================================
   7. ANIMATIONS
   ============================================ */

@keyframes slideInRight {
  from {
    right: -350px;
    opacity: 0;
  }

  to {
    right: 30px;
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    right: 30px;
    opacity: 1;
  }

  to {
    right: -350px;
    opacity: 0;
  }
}

/* ============================================
   8. MEDIA QUERIES
   ============================================ */

/* Print Styles */
@media print {
  body * {
    visibility: hidden;
  }

  #ticketDiv,
  #ticketDiv * {
    visibility: visible;
  }

  #ticketDiv {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
  }

  .ticket-print-wrapper {
    max-width: 800px;
    margin: 0 auto;
  }

  #printBtn {
    display: none !important;
  }

  .ticket-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  .ticket-body {
    page-break-inside: avoid;
  }

  .ticket-footer {
    border-top: 2px dashed var(--border-color);
    margin-top: 30px;
    padding-top: 15px;
  }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  header {
    padding: 12px 15px;
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    display: inline-block;
    margin: 5px;
  }

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

  .ticket-info-grid {
    grid-template-columns: 1fr;
  }

  .details-box .card {
    flex: 1 1 100%;
  }

  .footer-col {
    margin: 15px 0;
  }
}

@media screen and (max-width: 480px) {
  .search-box {
    margin: 10px;
  }

  .bus-frame {
    max-width: 100%;
    margin-right: 0;
  }

  .seat-container {
    flex-direction: column;
  }
}