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

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: rgba(17, 24, 39, 0.7);
  --bg-card: rgba(30, 41, 59, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.2);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-teal: #06b6d4;
  --accent-teal-glow: rgba(6, 182, 212, 0.4);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --sidebar-width: 260px;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 2rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.nav-link i {
  font-size: 1.25rem;
  transition: transform var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover i {
  transform: translateX(3px);
}

.nav-link.active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

/* Main Content Layout */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 15, 25, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-title p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 38px;
  height: 38px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--bg-primary);
}

.content {
  padding: 2.5rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all var(--transition-speed) ease;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Dashboard Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px 0 0 4px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-icon.teal {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.stat-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Dashboard Two-Column Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* SVG Line Chart styling */
.chart-container {
  width: 100%;
  height: 250px;
  position: relative;
  margin-top: 1rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-path {
  fill: none;
  stroke: url(#chart-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0px 8px 16px rgba(139, 92, 246, 0.3));
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.chart-point {
  fill: var(--bg-primary);
  stroke: var(--accent-teal);
  stroke-width: 3;
  cursor: pointer;
  transition: r var(--transition-speed) ease;
}

.chart-point:hover {
  r: 7;
}

.chart-label-x {
  fill: var(--text-secondary);
  font-size: 10px;
  text-anchor: middle;
}

.chart-label-y {
  fill: var(--text-secondary);
  font-size: 10px;
  text-anchor: end;
}

/* Active Vehicles List */
.active-vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.active-vehicle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
}

.active-vehicle-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.3);
}

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

.v-plate {
  font-family: monospace;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--accent-teal);
}

.v-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.v-type-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.v-timer {
  text-align: right;
}

.v-time-left {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--warning);
}

.v-student {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Tabs */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1px;
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--accent-teal);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-teal);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 10px var(--accent-teal-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  font-size: 0.95rem;
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
  background: rgba(255, 255, 255, 0.05);
}

/* Custom Vehicle Type Select Buttons (cards) */
.type-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.type-option {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.type-option:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.03);
}

.type-option.selected {
  border-color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 4px 15px var(--accent-teal-glow);
}

.type-option i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  display: block;
}

.type-option.selected i {
  color: var(--accent-teal);
}

.type-option-title {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Ticket Info Panel */
.ticket-summary-box {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.summary-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.25rem;
}

.summary-val.highlight {
  color: var(--accent-teal);
  font-size: 1.3rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform var(--transition-speed) ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* Receipt/Print View */
.print-container {
  max-width: 420px;
  margin: 3rem auto;
  background: #fff;
  color: #000;
  padding: 2.5rem 2rem;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-family: 'Courier New', Courier, monospace;
}

.print-header {
  text-align: center;
  border-bottom: 2px dashed #000;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.print-title {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
}

.print-subtitle {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.print-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.print-row.total {
  border-top: 2px dashed #000;
  padding-top: 1rem;
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.print-footer {
  text-align: center;
  border-top: 2px dashed #000;
  padding-top: 1.5rem;
  margin-top: 2rem;
  font-size: 0.8rem;
}

.print-btn-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .print-btn-bar, .sidebar, .header {
    display: none !important;
  }
  .print-container {
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}

/* Sidebar Toggle Button (Hidden on Desktop) */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 0.75rem;
  border-radius: 8px;
  transition: background var(--transition-speed);
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    width: 280px;
    max-width: 85%;
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    background-color: #0b0f19; /* Opaque sidebar on mobile */
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0 !important;
    width: 100%;
  }

  .header {
    padding: 1rem 1.25rem;
    justify-content: flex-start;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .header-title h1 {
    font-size: 1.25rem;
  }

  .header-title p {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .user-profile {
    margin-left: auto;
  }

  /* Only show avatar, hide name to save space */
  .user-profile div[style*="font-size"] {
    display: none !important;
  }

  .content {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    border-radius: 12px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .dashboard-layout {
    gap: 1.5rem;
  }

  .modal-container {
    max-width: 90%;
    padding: 1.5rem;
  }

  /* Fix custom style attributes from tickets/create.ejs */
  .type-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Force inline styled 2-col grids to stack */
  .main-wrapper form#ticket-creation-form div[style*="grid-template-columns: 1fr 1fr"],
  .main-wrapper form#ticket-creation-form div[style*="grid-template-columns: 1fr 1fr"] + div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Make preset duration buttons fit */
  .form-group div[style*="display: flex; gap: 0.5rem"] {
    gap: 0.35rem !important;
  }

  .ticket-summary-box {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .summary-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
  }

  .summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Segmented Control styling for Tabs on Mobile instead of scrollbar */
  .tabs-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px 16px 0 0;
    overflow-x: visible; /* disable scrolling */
  }

  .tab-btn {
    padding: 0.85rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color) !important;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: auto;
    font-weight: 600;
  }

  .tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .tab-btn.active {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: var(--accent-teal) !important;
    color: var(--accent-teal) !important;
    box-shadow: 0 4px 12px var(--accent-teal-glow);
  }

  .tab-btn.active::after {
    display: none !important; /* Hide standard underline */
  }
}

@media (max-width: 576px) {
  /* Keep grid table clean */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Responsive Table to Card layout */
  .table-responsive {
    border: none;
  }

  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  .table-responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table-responsive tr {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .table-responsive td {
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    position: relative;
    padding: 0.75rem 0 0.75rem 40%;
    text-align: left;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
  }

  .table-responsive td:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0.5rem;
  }

  .table-responsive td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 35%;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .table-responsive td[style*="text-align: right"],
  .table-responsive td:last-child {
    padding-left: 0;
    justify-content: flex-start;
  }

  .table-responsive td[style*="text-align: right"]::before,
  .table-responsive td:last-child::before {
    display: none;
  }

  .table-responsive td div[style*="justify-content: flex-end"] {
    justify-content: flex-start !important;
    width: 100%;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .active-vehicle-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .active-vehicle-item .v-timer {
    text-align: left;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
  }
}

