/* ===== Ambient Dark Theme Override ===== */
:root, .dark, html {
  color-scheme: dark !important;
  --background: oklch(0.145 0 0) !important;
  --foreground: oklch(0.92 0 0) !important;
  --card: oklch(0.17 0 0) !important;
  --card-foreground: oklch(0.92 0 0) !important;
  --popover: oklch(0.17 0 0) !important;
  --popover-foreground: oklch(0.92 0 0) !important;
  --primary: oklch(0.7 0.15 250) !important;
  --primary-foreground: oklch(0.98 0 0) !important;
  --secondary: oklch(0.22 0 0) !important;
  --secondary-foreground: oklch(0.92 0 0) !important;
  --muted: oklch(0.22 0 0) !important;
  --muted-foreground: oklch(0.6 0 0) !important;
  --accent: oklch(0.7 0.15 250) !important;
  --accent-foreground: oklch(0.98 0 0) !important;
  --destructive: oklch(0.55 0.2 25) !important;
  --border: oklch(0.25 0 0) !important;
  --input: oklch(0.25 0 0) !important;
  --ring: oklch(0.7 0.15 250) !important;
  --sidebar-background: oklch(0.12 0 0) !important;
  --sidebar-foreground: oklch(0.85 0 0) !important;
  --sidebar-border: oklch(0.2 0 0) !important;
  --sidebar-accent: oklch(0.18 0 0) !important;
  --sidebar-accent-foreground: oklch(0.92 0 0) !important;
  --sidebar-ring: oklch(0.7 0.15 250) !important;
  --builder-background: oklch(0.13 0 0) !important;
}

html, body {
  background: oklch(0.145 0 0) !important;
  color: oklch(0.92 0 0) !important;
}

/* ===== Replace AP Logo with Ambient Branding ===== */

/* Hide original logo image */
[data-sidebar] img[src*="activepieces"],
[data-sidebar] img[src*="cdn.activepieces"],
[data-sidebar] [class*="FullLogo"],
[data-sidebar] [class*="fullLogo"],
[data-sidebar] a[href="/"] img {
  display: none !important;
}

/* Insert Ambient brand text in logo area */
[data-sidebar] a[href="/"] {
  position: relative !important;
}

[data-sidebar] a[href="/"]::after {
  content: "🪐 Ambient" !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: oklch(0.92 0 0) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* ===== Hide AP External Links ===== */
[data-sidebar] a[href*="activepieces.com"],
[data-sidebar] a[href*="community.activepieces"],
[data-sidebar] a[href*="discord.gg"],
a[href*="activepieces.com/docs"] {
  display: none !important;
}

[class*="powered"], [class*="Powered"],
footer a[href*="activepieces"] {
  display: none !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.3 0 0); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.4 0 0); }
