:root {
  --brand: #0d6efd;
  --brand-dark: #0b5ed7;
}

body {
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Login ─────────────────────────────────────────── */
.bg-login {
  background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 50%, #084298 100%);
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border-radius: 1.25rem;
}

.brand-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0d6efd, #084298);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(13,110,253,.35);
}

/* ─── Cards ─────────────────────────────────────────── */
.card {
  border-radius: 1rem;
}

.card-body {
  padding: 1.25rem;
}

.stat-box {
  transition: transform .15s;
}

.stat-box:hover {
  transform: translateY(-2px);
}

/* ─── KPI cards ──────────────────────────────────────── */
.kpi-card {
  border-radius: 1rem;
  transition: transform .15s, box-shadow .15s;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

.kpi-icon {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ─── Forms ───────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: .6rem;
  border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

.input-group-text {
  border-radius: .6rem 0 0 .6rem;
  border-color: #dee2e6;
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  border-radius: .6rem;
  font-size: .9rem;
}

.btn-lg {
  border-radius: .8rem;
  padding: .75rem 1.5rem;
}

/* ─── Trip items ──────────────────────────────────────── */
.trip-item {
  animation: fadeIn .3s ease;
}

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

/* ─── Tables ──────────────────────────────────────────── */
.table > :not(caption) > * > * {
  padding: .5rem .75rem;
}

/* ─── Print ───────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  .navbar   { display: none !important; }
  body      { background: white; }
  .card     {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
  .card-body { padding: .75rem; }
}

/* ─── Mobile tweaks ───────────────────────────────────── */
@media (max-width: 576px) {
  .card-body { padding: 1rem; }
  .fs-2 { font-size: 1.5rem !important; }
  .fs-3 { font-size: 1.25rem !important; }
}
