aegida-console / app / globals.css
globals.css
Raw
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

@source "../node_modules/streamdown/dist/*.js";
@source "../node_modules/@streamdown/code/dist/*.js";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-sans);
  --font-mono: var(--font-geist-mono);
  --font-heading: var(--font-sans);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
}

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans;
  }
}

/* AI Control Center product layer. The preceding component tokens are kept
   intact so local shadcn components can continue to consume them. */
:root {
  --background: oklch(0.985 0.006 78);
  --foreground: oklch(0.205 0.012 65);
  --card: oklch(0.997 0.003 78);
  --card-foreground: oklch(0.205 0.012 65);
  --popover: oklch(0.997 0.003 78);
  --popover-foreground: oklch(0.205 0.012 65);
  --muted: oklch(0.955 0.008 76);
  --muted-foreground: oklch(0.49 0.016 65);
  --accent: oklch(0.94 0.012 78);
  --accent-foreground: oklch(0.205 0.012 65);
  --border: oklch(0.89 0.011 74);
  --input: oklch(0.89 0.011 74);
  --ring: oklch(0.55 0.035 150);
  --sidebar: oklch(0.962 0.008 76);
  --sidebar-foreground: oklch(0.235 0.012 65);
  --sidebar-accent: oklch(0.925 0.012 76);
  --sidebar-accent-foreground: oklch(0.205 0.012 65);
  --sidebar-border: oklch(0.875 0.011 74);
  --sidebar-ring: oklch(0.55 0.035 150);
  --chat-readable-width: 48rem;
  color-scheme: light;
}

.dark {
  --background: oklch(0.19 0.009 65);
  --foreground: oklch(0.94 0.007 78);
  --card: oklch(0.225 0.01 65);
  --card-foreground: oklch(0.94 0.007 78);
  --popover: oklch(0.225 0.01 65);
  --popover-foreground: oklch(0.94 0.007 78);
  --muted: oklch(0.275 0.012 65);
  --muted-foreground: oklch(0.72 0.012 75);
  --accent: oklch(0.3 0.014 68);
  --accent-foreground: oklch(0.94 0.007 78);
  --border: oklch(0.36 0.012 67);
  --input: oklch(0.36 0.012 67);
  --ring: oklch(0.69 0.03 150);
  --sidebar: oklch(0.165 0.009 65);
  --sidebar-foreground: oklch(0.94 0.007 78);
  --sidebar-accent: oklch(0.265 0.012 65);
  --sidebar-accent-foreground: oklch(0.94 0.007 78);
  --sidebar-border: oklch(0.32 0.012 67);
  --sidebar-ring: oklch(0.69 0.03 150);
  color-scheme: dark;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 70% -20%, oklch(1 0 0 / 70%), transparent 38rem),
    var(--background);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

.chat-readable {
  max-width: var(--chat-readable-width);
}

.chat-composer-surface {
  box-shadow:
    0 1px 2px oklch(0.2 0.01 65 / 8%),
    0 12px 32px oklch(0.2 0.01 65 / 8%);
}

.chat-overlay {
  animation: overlay-in 160ms ease-out both;
  backdrop-filter: blur(2px);
}

.assistant-markdown {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
  line-height: 1.75;
}

.assistant-markdown :where(h1, h2, h3, h4, h5, h6) {
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.assistant-markdown :where(h1, h2) {
  margin-block: 1.5rem 0.5rem;
}

.assistant-markdown h1 {
  font-size: 1.375rem;
}

.assistant-markdown h2 {
  font-size: 1.25rem;
}

.assistant-markdown :where(h3, h4, h5, h6) {
  margin-block: 1.25rem 0.375rem;
}

.assistant-markdown h3 {
  font-size: 1.125rem;
}

.assistant-markdown :where(h4, h5, h6) {
  font-size: 1rem;
}

.assistant-markdown > :first-child {
  margin-top: 0;
}

.assistant-markdown :where(p, ul, ol, blockquote, table, pre) {
  max-width: 100%;
}

.assistant-markdown :where(p, ul, ol) + :where(p, ul, ol) {
  margin-top: 0.75rem;
}

.assistant-markdown [data-streamdown="inline-code"] {
  border: 1px solid var(--border);
  background: var(--muted);
  font-family: var(--font-mono);
}

.assistant-markdown [data-streamdown="code-block"] {
  max-width: 100%;
  overflow: hidden;
  border-color: oklch(0.36 0.012 67);
  background: oklch(0.19 0.009 65);
  color: oklch(0.94 0.007 78);
}

.assistant-markdown [data-streamdown="code-block-body"],
.assistant-markdown [data-streamdown="table-wrapper"] {
  max-width: 100%;
  overflow-x: auto;
}

.assistant-markdown [data-streamdown="code-block-body"] {
  background: oklch(0.19 0.009 65);
  color: oklch(0.94 0.007 78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: normal;
  tab-size: 2;
}

.assistant-markdown [data-streamdown="code-block-body"] pre {
  background: transparent !important;
  color: inherit;
  font: inherit;
}

.assistant-markdown [data-streamdown="code-block-body"] code {
  white-space: pre;
}

.assistant-markdown [data-streamdown="code-block-body"] code > span {
  display: block;
  line-height: 1.6;
  min-height: 1.6em;
}

.assistant-markdown [data-streamdown="code-block-header"] {
  color: oklch(0.72 0.012 75);
}

.assistant-markdown [data-streamdown="blockquote"] {
  border-left-color: var(--border);
  color: var(--muted-foreground);
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  :root {
    --chat-readable-width: 100%;
  }

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

@media (min-width: 1280px) {
  :root {
    --chat-readable-width: 50rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}