/* Design tokens, the Tailwind theme bridge, the reset, and base element plus scrollbar styling. First in the cascade because every later file resolves its colours, radii and spacing from the custom properties declared here. */

/* Kiro-Go admin stylesheet. Keep selector order stable. */

/* Geist is self-hosted from vendor/geist/geist.css, linked in index.html. An
   @import here would serialize a third-party round trip ahead of first paint. */

/* Design tokens */
:root {
  --background: #fcfcfc;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #fcfcfc;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #ebebeb;
  --secondary-foreground: #000000;
  --muted: #f5f5f5;
  --muted-foreground: #525252;
  --accent: #ebebeb;
  --accent-foreground: #000000;
  --destructive: #e54b4f;
  --destructive-foreground: #ffffff;
  --border: #e4e4e4;
  --border-focus: #a3a3a3;
  --input: #ebebeb;
  --ring: #a3a3a3;
  --success: #0f766e;
  --success-foreground: #ffffff;
  --warning: #ffae04;
  --warning-foreground: #000000;
  --info: #2d62ef;
  --info-foreground: #ffffff;
  --brand-purple: #9148ff;
  --brand-purple-foreground: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.42);
  --sidebar: #fcfcfc;
  --sidebar-foreground: #000000;
  --sidebar-border: #ebebeb;
  /* Shadows stay disabled for the flat UI. */
  --shadow-2xs: none;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;
  /* Radius scale */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --kiro-icon-filter: none;
  color-scheme: light;
}

.dark {
  --background: #000000;
  --foreground: #ffffff;
  --card: #090909;
  --card-foreground: #ffffff;
  --popover: #121212;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #000000;
  --secondary: #222222;
  --secondary-foreground: #ffffff;
  --muted: #1d1d1d;
  --muted-foreground: #a4a4a4;
  --accent: #333333;
  --accent-foreground: #ffffff;
  --destructive: #ff5b5b;
  --destructive-foreground: #ffffff;
  --border: #242424;
  --border-focus: #525252;
  --input: #333333;
  --ring: #525252;
  --success: #2dd4bf;
  --success-foreground: #001f1d;
  --warning: #ffae04;
  --warning-foreground: #000000;
  --info: #2671f4;
  --info-foreground: #ffffff;
  --brand-purple: #b582ff;
  --brand-purple-foreground: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.76);
  --sidebar: #121212;
  --sidebar-foreground: #ffffff;
  --sidebar-border: #333333;
  --kiro-icon-filter: invert(1);
  color-scheme: dark;
}

/* Tailwind theme bridge */
@theme {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-info: var(--info);
  --color-info-foreground: var(--info-foreground);
  --radius-sm: var(--radius-sm);
  --radius-md: var(--radius-md);
  --radius-lg: var(--radius-lg);
  --radius-xl: var(--radius-xl);
  --font-sans: var(--font-sans);
  --font-mono: var(--font-mono);
}

/* Flat reset */
*,
*::before,
*::after {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  text-shadow: none !important;
}

/* Base */
html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
}
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

code,
pre,
.font-mono {
  font-family: var(--font-mono);
}

.clipboard-proxy {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.muted-text {
  color: var(--muted-foreground);
}

.success-text {
  color: var(--success);
}

.danger-text {
  color: var(--destructive);
}

.field-hint-offset {
  margin-left: 2.75rem;
}

.file-input-hidden {
  display: none;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

