
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  min-height: 100vh;
}

/* Make all "dark" layout classes behave like light theme */
.bg-dark {
  background-color: #f3f4f6 !important;
}
.bg-black {
  background-color: #ffffff !important;
}
.text-light {
  color: #111827 !important;
}

/* Links */
a {
  text-decoration: none;
  color: #6366f1;
}
a:hover {
  color: #4f46e5;
}

/* Muted text tuned for light background */
.text-muted,
.small.text-muted,
.form-text {
  color: #6b7280 !important;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(14px);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
  color: #4b5563;
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active {
  color: #111827;
  font-weight: 600;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
  color: #111827;
}
.navbar-brand {
  color: #111827 !important;
}
.navbar-brand span.text-primary {
  background: linear-gradient(135deg,#6366f1,#22c55e,#ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Cards */
.card {
  border-radius: 1.1rem;
  border: 1px solid rgba(209,213,219,0.9) !important;
  background: #ffffff;
  box-shadow:
    0 18px 40px rgba(15,23,42,0.06),
    0 0 0 1px rgba(243,244,246,0.9);
}
.card.bg-black {
  background: #ffffff;
}
.card-header {
  border-bottom-color: #e5e7eb;
}
.card-footer {
  border-top-color: #e5e7eb;
}

.badge {
  border-radius: 999px;
}

/* Code textarea */
textarea.code-snippet {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 12px;
  background-color: #f9fafb;
  color: #111827;
  border-radius: .75rem;
  border: 1px solid #e5e7eb;
}

/* Stat card subtle accent border */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(99,102,241,0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(236,72,153,0.18), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}
.stat-card .card-body {
  position: relative;
  z-index: 1;
}

/* Hero header on landing page */
.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #020617;
}
.hero-subtitle {
  color: #4b5563;
  max-width: 40rem;
}
.hero-chip {
  font-size: 11px;
  border-radius: 999px;
  padding: .25rem .6rem;
  border: 1px solid rgba(209,213,219,0.9);
  background: #f9fafb;
  color: #4b5563;
}

/* Tiny glow dot (online indicator, etc.) */
.glow-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #22c55e 40%, transparent 70%);
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
}

/* Forms */
.form-control,
.form-select {
  border-radius: .75rem;
  border-color: #e5e7eb;
  background-color: #ffffff;
  color: #111827;
}
.form-control:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.15);
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 500;
}
.btn-sm {
  border-radius: 999px;
}
.btn-primary {
  background: linear-gradient(135deg,#6366f1,#22c55e);
  border: none;
}
.btn-primary:hover {
  filter: brightness(1.07);
}
.btn-outline-light {
  border-color: #9ca3af;
  color: #374151;
}
.btn-outline-light:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Tables */
.table-responsive {
  border-radius: .9rem;
}
.table {
  --bs-table-bg: transparent;
}
.table thead th {
  border-bottom-color: #e5e7eb;
}
.table tbody td,
.table tbody th {
  border-top-color: #f3f4f6;
}
.table-dark td,
.table-dark th {
  color: #111827 !important;
}

/* Publisher dashboard chips */
.badge.bg-success-soft {
  background-color: rgba(16,185,129,0.08);
  color: #15803d;
}
.badge.bg-warning-soft {
  background-color: rgba(234,179,8,0.08);
  color: #92400e;
}

/* Misc spacing tweaks */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .card-body {
    padding: 1rem 1.1rem;
  }
}
