:root {
  --font-body: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-heading: "Avenir Next", "Optima", "Trebuchet MS", sans-serif;
  --bg-body: linear-gradient(180deg, #f7fafc 0%, #eef5f7 100%);
  --text-main: #1f2937;
  --text-muted: #5f6b7a;
  --heading-color: #0f172a;
  --link-color: #0f766e;
  --link-hover-color: #0d9488;
  --surface: #ffffff;
  --surface-alt: #f3f7fb;
  --surface-border: #d7e1ea;
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --primary: #0f766e;
  --primary-strong: #0d5f58;
  --primary-contrast: #ffffff;
  --success: #15803d;
  --danger: #b91c1c;
  --info: #0369a1;
  --warning: #b45309;
  --navbar-bg: linear-gradient(90deg, #0f766e, #0ea5e9);
  --navbar-link: rgba(255, 255, 255, 0.88);
  --navbar-link-active: #ffffff;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}

a {
  color: var(--link-color);
  text-decoration-color: color-mix(in srgb, var(--link-color) 45%, transparent);
}

a:hover {
  color: var(--link-hover-color);
}

.navbar {
  background: var(--navbar-bg) !important;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
}

.navbar .nav-link {
  color: var(--navbar-link) !important;
  font-weight: 500;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--navbar-link-active) !important;
}

.btn {
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-outline-primary:hover {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-strong);
  --bs-btn-hover-border-color: var(--primary-strong);
  --bs-btn-active-bg: var(--primary-strong);
  --bs-btn-active-border-color: var(--primary-strong);
  --bs-btn-color: var(--primary-contrast);
  --bs-btn-hover-color: var(--primary-contrast);
  --bs-btn-active-color: var(--primary-contrast);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: color-mix(in srgb, var(--primary) 65%, white);
  --bs-btn-hover-color: var(--primary-contrast);
}

.btn-success {
  --bs-btn-bg: var(--success);
  --bs-btn-border-color: var(--success);
  --bs-btn-hover-bg: color-mix(in srgb, var(--success) 86%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--success) 86%, black);
}

.card,
.table,
.dashboard-kpi,
.chart-box,
.chart-container {
  background: color-mix(in srgb, var(--surface) 94%, white);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.dashboard-kpi {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-kpi-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dashboard-kpi-value {
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  font-weight: 600;
}

.dashboard-kpi-success {
  border-left: 5px solid var(--success);
}

.dashboard-kpi-danger {
  border-left: 5px solid var(--danger);
}

.dashboard-kpi-info {
  border-left: 5px solid var(--info);
}

.table {
  overflow: hidden;
}

.table thead {
  background: var(--surface-alt);
}

.table thead th {
  color: color-mix(in srgb, var(--heading-color) 82%, white);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.price-low {
  color: var(--success);
}

.price-high {
  color: var(--danger);
}

.station-title {
  font-weight: 600;
}

.station-address,
.text-muted,
small.text-muted,
.small.text-muted {
  color: var(--text-muted) !important;
}

.table tbody tr.nearby-cheapest-row > * {
  box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--success) 12%, white);
}

.table tbody tr.nearby-cheapest-row > *:first-child {
  box-shadow: inset 3px 0 0 var(--success), inset 0 0 0 9999px color-mix(in srgb, var(--success) 12%, white);
}
