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

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

body { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav-link {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link:hover { color: #E2E8F0; }

.nav-link-active {
  color: #A5B4FC !important;
  font-weight: 500;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7C3AED, #6366F1);
  border-radius: 1px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  box-shadow: 0 1px 3px rgba(99,102,241,0.3);
  transition: opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366F1;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: #E0E7FF; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7C3AED, #6366F1);
  border-radius: 0.75rem 0 0 0.75rem;
}
.stat-card-danger::before { background: linear-gradient(180deg, #EF4444, #DC2626); }
.stat-card-success::before { background: linear-gradient(180deg, #10B981, #059669); }

/* ── Table ────────────────────────────────────────────────── */
.data-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
}
.badge-red   { background: #FEE2E2; color: #DC2626; }
.badge-green { background: #DCFCE7; color: #16A34A; }
.badge-yellow{ background: #FEF9C3; color: #CA8A04; }
.badge-indigo{ background: #EEF2FF; color: #4338CA; }

/* ── Section header ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}
.section-header h2 { font-size: 0.9375rem; font-weight: 600; color: #0F172A; }

/* ── Coming-soon placeholder ──────────────────────────────── */
.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
}
.coming-soon-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
