:root {
  --brand-primary: #0d6efd;
  --brand-dark: #084298;
  --bg-soft: #f4f7fb;
}

body {
  background-color: var(--bg-soft);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Layout ---------- */
#appWrapper { min-height: 100vh; }

.sidebar {
  width: 250px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-dark));
  transition: transform .25s ease;
}

.sidebar .nav-link {
  color: rgba(255,255,255,.85);
  border-radius: .5rem;
  padding: .6rem .8rem;
  transition: background-color .15s ease, color .15s ease;
}
.sidebar .nav-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidebar .nav-link.active { background: #fff; color: var(--brand-primary); font-weight: 600; }

.main-content { min-width: 0; flex: 1; }

.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* ---------- Cards ---------- */
.stat-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(13,110,253,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(13,110,253,.14); }
.stat-icon {
  width: 48px; height: 48px; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

.card { border: none; border-radius: 1rem; box-shadow: 0 2px 10px rgba(13,110,253,.06); }

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
}
.login-card { border-radius: 1.25rem; max-width: 420px; width: 100%; }

/* ---------- Responsive sidebar ---------- */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    z-index: 1040;
    transform: translateX(-100%);
  }
  .sidebar.show { transform: translateX(0); }
  .topbar { padding-left: 3.5rem !important; }
}

.badge-soft-success   { background: #d1f5e0; color: #0f8a45; }
.badge-soft-warning   { background: #fff3cd; color: #8a6d00; }
.badge-soft-danger    { background: #fde2e2; color: #b02a2a; }
.badge-soft-info      { background: #d6ecff; color: #0b5ed7; }
.badge-soft-primary   { background: #dce7ff; color: #2851c9; }
.badge-soft-secondary { background: #e6e8eb; color: #495057; }

table.table thead { background: #eef4ff; }

/* ---------- Botones de tipo de entrega (NORMAL / PROPIA) ---------- */
.btn-check:checked + .btn-outline-primary { color: #fff; }
.btn-group .btn small,
.btn-group .btn .small { opacity: .85; font-weight: 400; }

/* ---------- Encabezados de sección del menú lateral ---------- */
.nav-section-title { letter-spacing: .04em; font-size: .68rem; opacity: .75; }
