/* ==========================================================================
   VOLANS RIDES DESIGN SYSTEM & THEME
   Brand Colors: Midnight Navy (#0A192F / #0B192C) & Metallic Gold (#D4AF37 / #C59B27)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Volans Rides Brand Tokens */
  --primary: #C59B27;
  --primary-gold: #D4AF37;
  --primary-dark: #A67808;
  --primary-light: #FDF8E4;
  --primary-hover: #B8860B;
  --primary-gradient: linear-gradient(135deg, #E5C158 0%, #C59B27 50%, #A67808 100%);
  
  --brand-navy: #0A192F;
  --brand-navy-light: #112240;
  --brand-navy-alt: #1E3E62;
  --brand-navy-gradient: linear-gradient(135deg, #0A192F 0%, #112240 100%);

  --background: #FFFFFF;
  --text: #0A192F;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --surface: #F8FAFC;
  --surface-alt: #F1F5F9;
  --surface-card: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --border-gold: rgba(197, 155, 39, 0.3);

  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(10, 25, 47, 0.05);
  --shadow-md: 0 4px 10px -1px rgba(10, 25, 47, 0.08), 0 2px 4px -1px rgba(10, 25, 47, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(10, 25, 47, 0.12), 0 4px 8px -2px rgba(10, 25, 47, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(10, 25, 47, 0.18), 0 10px 15px -5px rgba(10, 25, 47, 0.06);
  --shadow-gold: 0 4px 14px rgba(197, 155, 39, 0.35);
  --shadow-sheet: 0 -6px 24px rgba(10, 25, 47, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #0A192F;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(197, 155, 39, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F0D278 0%, #D4AF37 50%, #B8860B 100%);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(197, 155, 39, 0.45);
}

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

.btn-secondary {
  background-color: var(--surface-alt);
  color: var(--brand-navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  border-color: #CBD5E1;
}

.btn-dark {
  background-color: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.btn-dark:hover {
  background-color: var(--brand-navy-light);
  border-color: var(--primary-gold);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-dark);
  border-color: var(--primary);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--surface);
}

.btn-gold-glow {
  background: var(--primary-gradient);
  color: #0A192F;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Brand Logo Image Helpers */
.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-logo-img-sm {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-logo-img-lg {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.btn-danger {
  background-color: var(--error);
  color: #FFFFFF;
  border-color: var(--error);
}

.btn-danger:hover {
  background-color: #B91C1C;
}

.btn-success {
  background-color: var(--success);
  color: #FFFFFF;
  border-color: var(--success);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* Form Inputs */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-main);
  color: var(--text);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.35);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .form-control {
  padding-left: 42px;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Cards & Surfaces */
.card {
  background-color: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background-color: var(--primary-light);
  color: #785E00;
}

.badge-success {
  background-color: #DCFCE7;
  color: #15803D;
}

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

.badge-danger {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.badge-neutral {
  background-color: var(--surface);
  color: var(--text-secondary);
}

/* Pulse Animation for Online/Status */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse-ring 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 14px 18px;
  background-color: #111111;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}

.toast-item.success { border-left-color: var(--success); }
.toast-item.error { border-left-color: var(--error); }
.toast-item.warning { border-left-color: var(--warning); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modals & Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-smooth);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--surface);
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #EBEBEB 25%, #F5F5F5 37%, #EBEBEB 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface);
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}
