/* Modern Custom Styles for Pro Mileage Tracker */
:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: rgba(13, 148, 136, 0.15);
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
  --border-dark: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-card-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Modal Transitions */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
}

/* Badge Glows */
.badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-mixed {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-poor {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Mobile Bottom Navigation padding */
@media (max-width: 768px) {
  body {
    padding-bottom: 5.5rem;
  }
}

/* Touch Friendly Buttons */
button, input, select, textarea {
  touch-action: manipulation;
}

/* Number display animations */
.kpi-value {
  letter-spacing: -0.03em;
}

/* Table Responsive Mobile Card Styles */
@media (max-width: 640px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 0.75rem 1rem;
  }
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .responsive-table td:last-child {
    border-bottom: none;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 500;
    font-size: 0.825rem;
    color: #94a3b8;
  }
}

/* Advanced Automotive Cockpit & Fuel Gauge Styling */
.hud-glow-teal {
  box-shadow: 0 0 25px -5px rgba(13, 148, 136, 0.35);
}

.hud-glow-amber {
  box-shadow: 0 0 25px -5px rgba(245, 158, 11, 0.35);
}

.fuel-gauge-track {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.fuel-gauge-fill {
  background: linear-gradient(90deg, #10b981 0%, #14b8a6 60%, #38bdf8 100%);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.6);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fuel-gauge-fill.low-reserve {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
}

/* User Dropdown */
#userDropdownMenu {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Pulsing Live Dot */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-pulse {
  animation: pulse-ring 2s infinite ease-in-out;
}

