/**
 * NexBoard Dark Mode Tokens (html.dark)
 * Version: 1.0.0
 */

html.dark {
  color-scheme: dark;

  --nb-bg-page: #0B1120;
  --nb-bg-subtle: #111827;
  --nb-bg-card: #1E293B;
  --nb-bg-header: #1E293B;
  --nb-bg-input: #0F172A;
  --nb-bg-hover: #283548;

  --nb-primary: #3B82F6;
  --nb-primary-hover: #2563EB;
  --nb-primary-soft: rgba(59, 130, 246, 0.16);
  --nb-primary-ring: rgba(59, 130, 246, 0.28);

  --nb-dark-btn: #3B82F6;
  --nb-dark-btn-hover: #2563EB;

  --nb-text-primary: #F8FAFC;
  --nb-text-secondary: #94A3B8;
  --nb-text-muted: #64748B;
  --nb-text-on-primary: #FFFFFF;

  --nb-border: #334155;
  --nb-border-strong: #475569;

  --nb-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --nb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --nb-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --nb-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

html.dark body {
  background-color: #0B1120;
  background-image:
    radial-gradient(ellipse 80% 380px at 50% -60px, rgba(59, 130, 246, 0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23F8FAFC' fill-opacity='0.06'%3E%3Ccircle cx='18' cy='26' r='1.1'/%3E%3Ccircle cx='72' cy='14' r='0.8'/%3E%3Ccircle cx='134' cy='38' r='1.3'/%3E%3Ccircle cx='48' cy='76' r='0.9'/%3E%3Ccircle cx='112' cy='88' r='1.1'/%3E%3Ccircle cx='164' cy='68' r='0.8'/%3E%3Ccircle cx='28' cy='132' r='1.2'/%3E%3Ccircle cx='88' cy='146' r='0.9'/%3E%3Ccircle cx='150' cy='128' r='1.0'/%3E%3Ccircle cx='62' cy='168' r='0.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%, 180px 180px;
  background-position: 0 0, 0 0;
}

html.dark .nb-toast {
  background: rgba(30, 41, 59, 0.94);
  border-color: rgba(51, 65, 85, 0.9);
  color: #F8FAFC;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html.dark .nb-toast-close:hover {
  background: rgba(248, 250, 252, 0.08);
  color: #F8FAFC;
}

html.dark .nb-service-item:nth-child(1) .nb-service-icon {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

html.dark .nb-service-item:nth-child(2) .nb-service-icon {
  background-color: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
}

html.dark .nb-service-item:nth-child(3) .nb-service-icon {
  background-color: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}

html.dark .nb-service-item:nth-child(4) .nb-service-icon {
  background-color: rgba(139, 92, 246, 0.2);
  color: #A78BFA;
}

html.dark .nb-btn-soft:hover {
  background-color: rgba(59, 130, 246, 0.26);
}

html.dark .nb-modal-backdrop {
  background-color: rgba(2, 6, 23, 0.72);
}


html.dark .nb-fav-btn {
  background: rgba(30, 41, 59, 0.92);
  color: #CBD5E1;
}

html.dark .nb-fav-btn:hover,
html.dark .nb-fav-btn.is-active {
  color: #F87171;
}

html.dark .nb-promo-cta {
  background-color: #FFFFFF;
  color: #0F172A;
}

html.dark .nb-status-pill--active {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

html.dark .nb-status-pill--pending {
  background-color: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}

html.dark select option {
  background-color: #1E293B;
  color: #F8FAFC;
}


html.dark .nb-item-card.is-highlighted {
  background-color: rgba(59, 130, 246, 0.14);
  border-color: #3B82F6;
}

html.dark .nb-quick-chip:hover {
  border-color: #60A5FA;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.14);
}

html.dark .nb-quick-chip.is-active {
  border-color: #3B82F6;
  background: #0052FF;
  color: #FFFFFF;
}

html.dark .nb-inline-link {
  color: #60A5FA;
}

html.dark .nb-article-tag {
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
}

html.dark .nb-select-dropdown {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

html.dark .nb-select-option.is-selected {
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}

html.dark .nb-select-check {
  color: #60A5FA;
}

html.dark .nb-seg-pill.is-active {
  background: #1E293B;
  color: #60A5FA;
}

html.dark .nb-period-chip.is-active {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}

html.dark .nb-cookie-banner {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52);
}

html.dark .nb-cookie-icon {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
}

html.dark .nb-cookie-text a,
html.dark .nb-legal-content a,
html.dark .nb-legal-consent-text a {
  color: #60A5FA;
}

html.dark .nb-legal-nav-link.is-active {
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
}

html.dark .nb-legal-consent {
  background: rgba(30, 41, 59, 0.65);
  border-color: #334155;
}

html.dark .nb-legal-consent.is-invalid {
  border-color: #F87171;
  background: rgba(239, 68, 68, 0.14);
}

html.dark .nb-support-popover {
  background: #1E293B;
  border-color: #334155;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
}

html.dark .nb-support-channel:hover {
  background: rgba(51, 65, 85, 0.55);
}

html.dark .nb-support-ch-icon.is-site {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}
