/* ============================================================
   OSCISA Solutions — Design System v2
   Minimalista · Profesional · SaaS moderno
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --primary:        #2563eb;
  --primary-hover:  #1e40af;
  --primary-light:  #eff6ff;
  --primary-rgb:    37, 99, 235;

  --bg:             #f7f7f8;
  --surface:        #ffffff;
  --border:         #e5e7eb;
  --border-light:   #f3f4f6;

  --text:           #111827;
  --text-muted:     #6b7280;
  --text-subtle:    #9ca3af;

  --green:          #059669;
  --green-bg:       #ecfdf5;
  --green-border:   #a7f3d0;
  --red:            #dc2626;
  --red-bg:         #fef2f2;
  --red-border:     #fecaca;
  --yellow:         #d97706;
  --yellow-bg:      #fffbeb;
  --yellow-border:  #fde68a;
  --blue:           #2563eb;
  --blue-bg:        #eff6ff;
  --blue-border:    #bfdbfe;

  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);

  --transition: 150ms ease;

  --bs-primary:     #2563eb;
  --bs-primary-rgb: 37, 99, 235;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  background-color: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
  padding: 0 1.5rem !important;
  min-height: 60px;
}

.navbar .navbar-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text) !important;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.navbar .nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.navbar .nav-link:hover { color: var(--text) !important; background: var(--border-light); }
.navbar .nav-link.active { color: var(--primary) !important; font-weight: 600; }

.navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  margin-top: 6px;
  min-width: 190px;
}
.navbar .dropdown-item {
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  padding: 7px 12px;
  color: var(--text);
  transition: background var(--transition);
}
.navbar .dropdown-item:hover { background: var(--border-light); color: var(--text); }
.navbar .dropdown-item.text-danger { color: var(--red) !important; }
.navbar .dropdown-item.text-danger:hover { background: var(--red-bg); }
.navbar .dropdown-divider { border-color: var(--border); margin: 4px 0; }
.navbar .dropdown-item-text { font-size: 12px; padding: 4px 12px; color: var(--text-muted); }

/* Caret hide */
.navbar .dropdown-toggle::after { margin-left: 4px; opacity: .5; }

/* User button */
.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-user-trigger:hover {
  border-color: var(--text-subtle) !important;
  box-shadow: var(--shadow-xs);
}
.nav-user-avatar {
  width: 26px;
  height: 26px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.navbar-toggler {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 10px !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

/* ── Main layout ─────────────────────────────────────────── */
main.container-fluid {
  max-width: 1280px;
  padding: 2rem 1.5rem;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow var(--transition);
}

.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 20px !important;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.card-body { padding: 20px !important; }

.card-footer {
  background: transparent !important;
  border-top: 1px solid var(--border) !important;
  padding: 12px 20px !important;
}

/* KPI cards */
.kpi-card .card-body { padding: 22px 24px !important; }
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.kpi-icon.red    { background: var(--primary-light); color: var(--primary); }
.kpi-icon.green  { background: var(--green-bg);      color: var(--green); }
.kpi-icon.blue   { background: var(--blue-bg);       color: var(--blue); }
.kpi-icon.yellow { background: var(--yellow-bg);     color: var(--yellow); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm) !important;
  padding: 7px 14px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.btn-sm { font-size: 12.5px !important; padding: 5px 10px !important; }
.btn-lg { font-size: 15px; padding: 10px 20px; }

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(var(--primary-rgb), .2);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(var(--primary-rgb), .3) !important;
}

.btn-success {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}
.btn-success:hover, .btn-success:focus {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
.btn-outline-primary:hover {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline-secondary {
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
.btn-outline-secondary:hover {
  background: var(--border-light) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.btn-outline-success {
  color: var(--green) !important;
  border-color: var(--green-border) !important;
  background: transparent !important;
}
.btn-outline-success:hover { background: var(--green-bg) !important; }

/* ── Form controls ───────────────────────────────────────── */
.form-control,
.form-select {
  font-size: 13.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px;
  color: var(--text);
  background-color: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: none !important;
}
.form-control::placeholder { color: var(--text-subtle); }
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1) !important;
  background: var(--surface);
}
.form-control.is-invalid { border-color: var(--red) !important; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important; }
.form-control-sm, .form-select-sm { font-size: 13px !important; padding: 6px 10px !important; }

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.invalid-feedback { font-size: 12px; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

/* ── Tables ──────────────────────────────────────────────── */
.table {
  font-size: 13.5px;
  color: var(--text);
  --bs-table-hover-bg: #fafafa;
}
.table thead th {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border) !important;
  padding: 10px 16px !important;
  background: var(--border-light) !important;
  white-space: nowrap;
  border-top: none !important;
}
.table tbody td {
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--border-light) !important;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table tbody tr { transition: background var(--transition); }
.table-hover tbody tr:hover { background-color: #fafafa; }
.table-light th { background: var(--border-light) !important; color: var(--text-muted) !important; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 999px !important;
  padding: 3px 10px;
}
.bg-success  { background: var(--green-bg)     !important; color: var(--green)    !important; }
.bg-danger   { background: var(--red-bg)       !important; color: var(--red)      !important; }
.bg-warning  { background: var(--yellow-bg)    !important; color: var(--yellow)   !important; }
.bg-info     { background: var(--blue-bg)      !important; color: var(--blue)     !important; }
.bg-primary  { background: var(--primary-light)!important; color: var(--primary)  !important; }
.bg-secondary{ background: var(--border-light) !important; color: var(--text-muted)!important; }
.bg-light.text-secondary { background: var(--border-light)!important; color: var(--text-muted)!important; }
.text-success { color: var(--green)  !important; }
.text-danger  { color: var(--red)    !important; }
.text-warning { color: var(--yellow) !important; }
.text-info    { color: var(--blue)   !important; }
.text-primary { color: var(--primary)!important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: #fff !important; }

/* Custom hex badges (estados comerciales) keep white text */
[style*="background:#"], [style*="background: #"] { color: #fff !important; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius) !important;
  font-size: 13.5px;
  padding: 12px 16px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.alert-danger  { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red);   }
.alert-warning { background: var(--yellow-bg);border-color: var(--yellow-border);color: var(--yellow);}
.alert-info    { background: var(--blue-bg);  border-color: var(--blue-border);  color: var(--blue);  }
.alert .btn-close { opacity: 0.4; }
.alert .btn-close:hover { opacity: 0.7; }

/* ── List group ──────────────────────────────────────────── */
.list-group-item {
  border-color: var(--border-light) !important;
  padding: 13px 20px !important;
  font-size: 13.5px;
  background: transparent;
  transition: background var(--transition);
}
.list-group-flush .list-group-item { border-left: none !important; border-right: none !important; }
.list-group-flush .list-group-item:first-child { border-top: none !important; }
.list-group-flush .list-group-item:last-child  { border-bottom: none !important; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { gap: 3px; }
.page-item .page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 11px;
  transition: all var(--transition);
  box-shadow: none !important;
}
.page-item .page-link:hover { background: var(--border-light); border-color: var(--border); color: var(--text); }
.page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.page-item.disabled .page-link { background: transparent; color: var(--text-subtle); }

/* ── Progress bars ───────────────────────────────────────── */
.progress { height: 6px; border-radius: 999px; background: var(--border-light); overflow: hidden; }
.progress-bar { border-radius: 999px; }

/* ── Dropzone ────────────────────────────────────────────── */
#dropzone, .dropzone {
  border: 2px dashed var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}
#dropzone:hover, .dropzone:hover,
#dropzone.dragover, .dropzone.dragover {
  border-color: var(--primary) !important;
  background: var(--primary-light) !important;
}
#dropzone.dragover, .dropzone.dragover {
  transform: scale(1.01);
}

/* ── Empty states ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon {
  width: 60px;
  height: 60px;
  background: var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--text-subtle);
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; }
.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-body {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.timeline-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: var(--border-light);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 4px;
  text-transform: capitalize;
}

/* ── Offer cards (estudios) ──────────────────────────────── */
.offer-best { border-color: var(--green) !important; box-shadow: 0 0 0 2px rgba(5,150,105,.15), var(--shadow-sm) !important; }
.offer-best-banner {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 0;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

/* ── Stat items ──────────────────────────────────────────── */
.stat-block { text-align: center; padding: 8px; }
.stat-block .stat-value { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.stat-block .stat-label { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Login ───────────────────────────────────────────────── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.login-card-inner {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
}
.login-logo-box {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin: 0 auto 20px;
}

/* ── Utilities ───────────────────────────────────────────── */
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.fw-medium { font-weight: 500 !important; }
hr { border-color: var(--border); opacity: 1; margin: 16px 0; }
.rounded-pill { border-radius: 999px !important; }
.spinner-border-sm { width: 14px; height: 14px; border-width: 2px; }

/* ── Dashboard Hero ──────────────────────────────────── */
.dashboard-hero {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.03) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 231, 235, 0.5);
  margin-bottom: 2.5rem;
}

.dashboard-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.8px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* ── KPI Cards Enhanced ──────────────────────────────── */
.kpi-card {
  position: relative;
  overflow: hidden;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  border: none !important;
  box-shadow: var(--shadow) !important;
  height: 100%;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, currentColor 0%, transparent 100%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.kpi-card:hover {
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-4px);
}

.kpi-card:hover::before {
  opacity: 1;
}

/* Gradient overlays for each KPI icon type */
.kpi-icon.red {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(196, 30, 58, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.kpi-icon.green {
  background: linear-gradient(135deg, var(--green-bg) 0%, rgba(5, 150, 105, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.kpi-icon.blue {
  background: linear-gradient(135deg, var(--blue-bg) 0%, rgba(37, 99, 235, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.kpi-icon.yellow {
  background: linear-gradient(135deg, var(--yellow-bg) 0%, rgba(217, 119, 6, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--text);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Enhanced Cards ──────────────────────────────────– */
.card {
  position: relative;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
  background: linear-gradient(90deg, var(--surface) 0%, rgba(196, 30, 58, 0.02) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.card-header i {
  color: var(--primary);
  font-size: 16px;
}

/* ── Progress Bars Enhanced ──────────────────────────– */
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
  border-radius: 999px;
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  border-radius: 999px;
}

/* ── Estado de Estudios Section ──────────────────────– */
.estado-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 200ms ease;
}

.estado-item:hover {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  margin: 0 -8px;
  padding-left: 8px;
}

.estado-item:last-child {
  border-bottom: none;
}

/* ── Activity Timeline Enhanced ──────────────────────– */
.activity-item {
  padding: 16px;
  border-left: 3px solid var(--border-light);
  transition: all 200ms ease;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.activity-item:hover {
  border-left-color: var(--primary);
  background: var(--border-light);
}

.activity-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  display: inline-block;
  padding: 3px 8px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.activity-time {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 6px;
}

/* ── Animations ──────────────────────────────────────– */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.kpi-card {
  animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.kpi-card:nth-child(1) { animation-delay: 100ms; }
.kpi-card:nth-child(2) { animation-delay: 150ms; }
.kpi-card:nth-child(3) { animation-delay: 200ms; }
.kpi-card:nth-child(4) { animation-delay: 250ms; }

.card {
  animation: fadeInUp 600ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  main.container-fluid { padding: 1rem; }
  .login-card-inner { padding: 28px 20px; }
  .kpi-value { font-size: 22px; }
  .navbar { padding: 0 1rem !important; }

  .dashboard-hero {
    padding: 1.5rem;
    margin-bottom: 2rem !important;
  }

  .dashboard-title {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .dashboard-subtitle {
    font-size: 12px;
  }

  .kpi-card .card-body {
    flex-direction: column;
    gap: 12px !important;
  }

  .kpi-icon {
    width: 40px !important;
    height: 40px !important;
  }
}
