/*!
 * Nitron "Limitless" skin — layout and look modeled on Limitless (Bootstrap 5, layout 1):
 * dark top navbar, dark main sidebar with section headers, page header + breadcrumb,
 * flat cards with bordered headers. Loaded after admin.css; overrides tokens only.
 */
:root,
html[data-theme="light"] {
  --np-bg: #f1f4f9;
  --np-sidebar: #2c3446;
  --np-sidebar-text: #cdd3df;
  --np-accent: #2196f3;
  --np-top: #252b3b;
  --np-card: #fff;
  --np-border: #e1e6ee;
  --np-text: #5b6577;
  --np-dark: #2a3140;
  --np-table-head: #f7f9fc;
  --np-radius: .375rem;
  --np-navbar-text: #e8ebf2;
  --np-header-bg: #fff;
  --shadow-card: 0 .125rem .25rem rgba(31, 41, 55, .06);
}
html[data-theme="dark"] {
  --np-bg: #171b24;
  --np-sidebar: #1f2430;
  --np-top: #1b202b;
  --np-card: #222836;
  --np-border: #2f3646;
  --np-header-bg: #1f2430;
  --np-accent: #42a5f5;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --np-bg: #171b24;
    --np-sidebar: #1f2430;
    --np-top: #1b202b;
    --np-card: #222836;
    --np-border: #2f3646;
    --np-header-bg: #1f2430;
    --np-accent: #42a5f5;
  }
}
@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --np-bg: #f1f4f9;
    --np-sidebar: #2c3446;
    --np-top: #252b3b;
    --np-accent: #2196f3;
    --np-header-bg: #fff;
    --np-border: #e1e6ee;
  }
}
:root { --np-radius: .375rem; --np-navbar-text: #e8ebf2; }

body { background: var(--np-bg); }

/* Navbar (dark, always) */
.np-topnav {
  background: var(--np-top);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: 3.125rem;
  color: var(--np-navbar-text);
  position: sticky;
}
.np-topnav-title { color: var(--np-navbar-text); font-weight: 500; }
.np-topnav .np-menu-btn,
.np-topnav .np-theme-toggle,
.np-topnav .np-font-select {
  background: transparent;
  border-color: transparent;
  color: var(--np-navbar-text);
  border-radius: 999px;
}
.np-topnav .np-menu-btn:hover,
.np-topnav .np-theme-toggle:hover { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.np-topnav .np-font-select { border-color: rgba(255, 255, 255, .15); }
.np-topnav .np-font-select option { color: #222; }

/* Sidebar (dark, sectioned, rounded items) */
.np-sidebar { width: 16.875rem; background: var(--np-sidebar); border-inline-start: 0; }
.np-sidebar-head { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.np-sidebar .brand { font-size: 1.0625rem; display: flex; align-items: center; gap: .5rem; }
.np-sidebar .brand i { font-size: 1.375rem; color: var(--np-accent); }
.np-sidebar nav { padding: .5rem .75rem 1rem; }
.np-sidebar .nav-section {
  padding: 1rem .75rem .375rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .5;
}
.np-sidebar nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .125rem 0;
  padding: .5rem .75rem;
  border-radius: var(--np-radius);
  color: var(--np-sidebar-text);
  transition: background .15s, color .15s;
}
.np-sidebar nav a i { font-size: 1.125rem; opacity: .85; }
.np-sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.np-sidebar nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 500;
  box-shadow: inset -3px 0 0 var(--np-accent);
}
.np-sidebar-logout {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .5rem .75rem;
  border: 0;
  border-radius: var(--np-radius);
  background: transparent;
  color: var(--np-sidebar-text);
  cursor: pointer;
  font: inherit;
}
.np-sidebar-logout:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.np-sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: .5rem .75rem; }

/* Page header + breadcrumb */
.np-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: .875rem 1.25rem;
  background: var(--np-header-bg);
  border-bottom: 1px solid var(--np-border);
  box-shadow: 0 .125rem .25rem rgba(31, 41, 55, .04);
}
.np-page-header__title { margin: 0; font-size: 1.125rem; font-weight: 500; color: var(--np-dark); }
.np-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
  color: var(--np-text);
}
.np-breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .45; }
.np-breadcrumb a { color: var(--np-accent); text-decoration: none; }

/* Content + cards */
.np-content { padding: 1.25rem; }
.np-card {
  border-radius: var(--np-radius);
  border: 1px solid var(--np-border);
  box-shadow: var(--shadow-card);
}
.np-card > h2:first-child,
.np-card > h3:first-child {
  margin: -1rem -1rem 1rem;
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-weight: 500;
  border-bottom: 1px solid var(--np-border);
}
.np-stat { border-radius: var(--np-radius); box-shadow: var(--shadow-card); }

/* Tables, buttons, inputs */
table th { background: var(--np-table-head); font-weight: 600; font-size: .75rem; letter-spacing: .02em; }
.btn, .form-control, .form-select, .np-select-trigger { border-radius: var(--np-radius); }
.btn-primary { background: var(--np-accent); }
.form-control:focus, .form-select:focus, .np-select-trigger:focus {
  border-color: var(--np-accent);
  box-shadow: 0 0 0 .125rem rgba(33, 150, 243, .18);
}
.np-chip.is-active { background: var(--np-accent); box-shadow: none; }
.np-seg__item.is-active.is-success { background: #4caf50; }
.pagination li.active span { background: var(--np-accent); border-color: var(--np-accent); }

@media (max-width: 900px) {
  .np-page-header { padding: .625rem .875rem; }
  .np-sidebar { width: min(300px, 86vw); }
}

/* ---- Dashboard (Limitless "card + icon bubble" widgets; replaces the orange palette) ---- */
.dash__hero {
  border-radius: var(--np-radius);
  border: 1px solid var(--np-border);
  background: var(--np-card);
  box-shadow: var(--shadow-card);
  border-inline-start: 4px solid var(--np-accent);
}
.dash__kicker { color: var(--np-accent); }
.dash__pill {
  border-radius: 999px;
  border-color: var(--np-border);
  background: transparent;
}
.dash__pill:hover { background: rgba(33, 150, 243, .1); border-color: var(--np-accent); }
.dash-stat,
.dash-stat--orange,
.dash-stat--warn {
  border-radius: var(--np-radius);
  border: 1px solid var(--np-border);
  background: var(--np-card);
  box-shadow: var(--shadow-card);
}
.dash-stat::before { width: 3px; background: var(--np-accent); }
.dash-stat--orange::before { background: var(--np-accent); }
.dash-stat--warn::before { background: #ff9800; }
.dash-stat__label i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(33, 150, 243, .12);
  color: var(--np-accent);
}
.dash-stat--warn .dash-stat__label i { background: rgba(255, 152, 0, .15); color: #ff9800; }
.dash-alerts { border-radius: var(--np-radius); border-color: rgba(255, 152, 0, .45); background: rgba(255, 152, 0, .08); }

/* ---- Auth pages ---- */
.login-wrap,
html[data-theme="dark"] .login-wrap,
html[data-theme="system"] .login-wrap {
  background: var(--np-bg);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .login-wrap { background: var(--np-bg); }
}
.login-card {
  max-width: 24rem;
  border-radius: var(--np-radius);
  box-shadow: 0 .5rem 1.5rem rgba(31, 41, 55, .1);
  border-top: 3px solid var(--np-accent);
}
.login-brand-ico { color: var(--np-dark); }
.login-brand-ico i { color: var(--np-accent); }
