:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #f5f6fb;
  color: #1d2132;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px clamp(20px, 6vw, 80px) 80px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
}

a {
  color: inherit;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.hero > div {
  flex: 1 1 320px;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #5a5f73;
}

.subhead {
  font-size: 18px;
  line-height: 1.5;
  color: #4b5065;
}

.price-card {
  background: #111827;
  color: #f9fafb;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 16px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price-label {
  font-size: 14px;
  opacity: 0.7;
}

.price-value {
  font-size: 32px;
  font-weight: 700;
}

.inline-input {
  display: flex;
  gap: 12px;
}

.inline-input input {
  flex: 1;
}

.helper {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
}

.helper-block {
  margin-top: 12px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
 }
 
+.highlighted-card {
+  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+  color: white;
+  box-shadow: 0 18px 45px rgba(102, 126, 234, 0.4);
+  border: 2px solid #667eea;
+}
+
+.last-fuel-display {
+  display: flex;
+  align-items: baseline;
+  justify-content: center;
+  gap: 8px;
+  margin: 20px 0;
+}
+
+.last-fuel-amount {
+  font-size: 4rem;
+  font-weight: 800;
+  line-height: 1;
+  color: #ffffff;
+  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
+}
+
+.last-fuel-unit {
+  font-size: 1.5rem;
+  font-weight: 600;
+  opacity: 0.9;
+}
+
+.report-section {
+  text-align: center;
+  margin-top: 16px;
+}
+
+.highlight-card {
+  background: #3f5efb;
+  color: #ffffff;
+}
+
+.highlight-card .muted {
+  color: rgba(255, 255, 255, 0.8);
+}
+
 .card-header {
   display: flex;
   align-items: center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
  font-size: 14px;
  color: #2d3142;
}

input,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7dbea;
  background: #f8f9ff;
}

button,
.link-button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #3f5efb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.link-button:hover {
  background: #2f4be5;
}

.link-button.danger,
button.danger {
  background: #dc2626;
}

.link-button.danger:hover,
button.danger:hover {
  background: #b91c1c;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.muted {
  color: #6b7280;
}

.error {
  color: #b91c1c;
  font-weight: 600;
}

.pill {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.user-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.summary-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 18px;
  font-weight: 600;
}

.user-actions {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.button-danger {
  background: #dc2626;
}

.button-danger:hover {
  background: #b91c1c;
}

.user-history {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d7dbea;
  background: #fff;
  color: #4b5065;
  font-size: 13px;
  cursor: pointer;
}

.filter-btn:hover {
  background: #f3f4f9;
}

.filter-btn.active {
  background: #3f5efb;
  color: #fff;
  border-color: #3f5efb;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.history-item {
  background: #f3f4f9;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.history-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

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

.driver-card {
  display: grid;
  gap: 16px;
}

.admin-panel {
  display: grid;
  gap: 24px;
}

.driver-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.driver-full {
  grid-column: 1 / -1;
}

.hidden {
  display: none;
}

/* Hamburger menu - hidden by default on desktop */
.hamburger-menu {
  display: none;
}

@media (max-width: 1024px), screen and (max-device-width: 430px) {
  body {
    padding: 24px 20px 60px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .driver-layout {
    grid-template-columns: 1fr;
  }

  /* Hide desktop header actions */
  .header-actions {
    display: none !important;
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: #1d2132;
    border-radius: 1px;
    transition: all 0.3s ease;
  }
}

/* Mobile menu styles */
.mobile-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 12px;
  min-width: 150px;
  z-index: 1000;
}

.mobile-menu.active {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu .link-button,
.mobile-menu button {
  text-align: left;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  color: #1d2132;
}

.mobile-menu .link-button:hover,
.mobile-menu button:hover {
  background: #f1f5f9;
}

.page-header {
  position: relative;
}

/* Latest liters display */
#recent-fuel-all {
  background: #2563eb;
  color: white;
  padding: 12px 16px;
}

.card-header-centered {
  text-align: center;
  justify-content: center;
}

#recent-fuel-all .card-header {
  border-bottom: none;
}

#recent-fuel-all h3 {
  color: white;
}

.latest-liters {
  text-align: center;
  padding: 2px 0;
}

.latest-liters-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.liters-value {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.liters-label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #dbeafe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

#recent-fuel-all {
  position: relative;
}

@media (max-width: 768px) {
  .liters-value {
    font-size: 2.5rem;
  }
  
  .liters-label {
    font-size: 1rem;
  }
}

/* Fix mobile header layout */
@media (max-width: 720px) {
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .page-header > div:first-child {
    flex: 1;
  }

  .page-header > div:nth-child(2) {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
  }
}

.vehicles-list {
  display: grid;
  gap: 16px;
}

.vehicle-card {
  background: #f3f4f9;
  border-radius: 12px;
  padding: 16px;
}

.vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vehicle-header h4 {
  margin: 0;
  font-size: 16px;
}

.vehicle-actions {
  display: flex;
  gap: 8px;
}

.vehicle-actions .link-button,
.vehicle-actions button {
  padding: 6px 12px;
  font-size: 12px;
}

.vehicle-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.vehicle-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
}
