:root {
  --navy: #1a3a5c;
  --brand: #2a8fd4;
  --brand-light: #e8f4fc;
  --surface: #f4f7fb;
}

body.bg-surface {
  background-color: var(--surface);
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 11rem;
}

@media (min-width: 640px) {
  .logo-img {
    height: 3.75rem;
    max-width: 13rem;
  }
}

.text-navy {
  color: var(--navy);
}

/* Nawigacja */
.nav-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand);
  background: #f8fafc;
}

.nav-link-active {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}

/* Przyciski */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #1e6fad;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Karty */
.card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 58, 92, 0.04);
}

.feature-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(26, 58, 92, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: #b8d9f0;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.08);
}

.hero {
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border-radius: 1rem;
}

.input-field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(42, 143, 212, 0.15);
}

.pax-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
}

.pax-btn-on {
  background-color: var(--brand);
  color: #fff;
}

.pax-btn-off {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}

.pax-btn-off:hover {
  border-color: var(--brand);
}

.tab-on {
  background-color: var(--brand);
  color: #fff;
}

.tab-off {
  color: #475569;
}

.tab-off:hover {
  background-color: #f1f5f9;
}

/* Zakładki wyjazdu — na telefonie siatka 3×2, bez poziomego scrolla */
.trip-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
}

.trip-tab {
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  min-height: 2.5rem;
}

@media (min-width: 640px) {
  .trip-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .trip-tab {
    white-space: nowrap;
    min-height: 0;
    flex: 1 1 auto;
  }
}

.toll-paid-off select {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes settlement-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.settlement-blink {
  animation: settlement-blink 1.2s ease-in-out infinite;
}

.settlement-summary-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
  border: 0;
}

.trip-status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.trip-status-settled {
  background: #dcfce7;
  color: #166534;
}

.trip-status-pending {
  background: #fee2e2;
  color: #b91c1c;
}

.trip-status-incomplete {
  background: #fef3c7;
  color: #b45309;
}

.trip-status-muted {
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
}
