@import 'tailwindcss'; @plugin 'tailwindcss-animate'; @custom-variant dark (&:is([data-kb-theme="dark"] *)); @utility container { margin-inline: auto; padding-inline: 1.25rem; @media (width >= --theme(--breakpoint-sm)) { max-width: none; } @media (width >= 1280px) { max-width: 1280px; } } @theme { --font-sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif; --font-display: 'Space Grotesk Variable', 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif; --color-border: hsl(var(--border)); --color-input: hsl(var(--input)); --color-ring: hsl(var(--ring)); --color-background: hsl(var(--background)); --color-foreground: hsl(var(--foreground)); --color-primary: hsl(var(--primary)); --color-primary-foreground: hsl(var(--primary-foreground)); --color-secondary: hsl(var(--secondary)); --color-secondary-foreground: hsl(var(--secondary-foreground)); --color-destructive: hsl(var(--destructive)); --color-destructive-foreground: hsl(var(--destructive-foreground)); --color-muted: hsl(var(--muted)); --color-muted-foreground: hsl(var(--muted-foreground)); --color-accent: hsl(var(--accent)); --color-accent-foreground: hsl(var(--accent-foreground)); --color-popover: hsl(var(--popover)); --color-popover-foreground: hsl(var(--popover-foreground)); --color-card: hsl(var(--card)); --color-card-foreground: hsl(var(--card-foreground)); --color-success: hsl(var(--success)); --color-warning: hsl(var(--warning)); --color-info: hsl(var(--info)); --color-sidebar: hsl(var(--sidebar)); --color-sidebar-foreground: hsl(var(--sidebar-foreground)); --radius-3xl: 1.5rem; --radius-2xl: 1.25rem; --radius-xl: 1rem; --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 8px); --shadow-soft: 0 1px 2px rgba(33, 37, 41, 0.05), 0 10px 30px -16px rgba(33, 37, 41, 0.16); --shadow-apple: 0 1px 2px rgba(33, 37, 41, 0.06), 0 10px 28px -14px rgba(33, 37, 41, 0.18); --shadow-apple-hover: 0 2px 4px rgba(33, 37, 41, 0.07), 0 16px 40px -16px rgba(33, 37, 41, 0.22); --animate-fade-up: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; --animate-accordion-down: accordion-down 0.25s cubic-bezier(0.16, 1, 0.3, 1); --animate-accordion-up: accordion-up 0.25s cubic-bezier(0.16, 1, 0.3, 1); @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes accordion-down { from { height: 0; } to { height: var(--kb-collapsible-content-height); } } @keyframes accordion-up { from { height: var(--kb-collapsible-content-height); } to { height: 0; } } } /* The default border color has changed to `currentcolor` in Tailwind CSS v4, so we've added these compatibility styles to make sure everything still looks the same as it did with Tailwind CSS v3. If we ever want to remove these styles, we need to add an explicit border color utility to any element that depends on these defaults. */ @layer base { *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: var(--color-gray-200, currentcolor); } } @utility font-display { font-family: 'Space Grotesk Variable', 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif; letter-spacing: -0.02em; } @utility glass-header { @apply sticky top-0 z-20 border-b border-border/80 bg-background/85 shadow-xs backdrop-blur-xl; } @utility glass-panel { @apply border border-border/80 bg-card/90 shadow-apple backdrop-blur-xl; } @utility apple-card { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-apple transition-[border-color,box-shadow] duration-200 hover:border-border; } @utility surface-card { @apply rounded-2xl border border-border/80 bg-card text-card-foreground shadow-xs transition-[border-color,box-shadow] duration-200; } @utility stat-tile { @apply surface-card relative overflow-hidden p-5 hover:border-border hover:shadow-apple-hover active:scale-[0.985]; } @utility focus-ring { @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background; } @utility topbar-control { @apply border border-border/90 bg-card/90 text-muted-foreground shadow-xs transition-colors hover:border-border hover:bg-muted hover:text-foreground; } @utility topbar-ai-control { @apply border border-primary bg-primary text-primary-foreground shadow-sm transition-[background-color,box-shadow,transform] hover:bg-primary/90 hover:shadow-md; } @utility data-shell { @apply rounded-2xl border border-border/80 bg-card shadow-xs; } @utility data-table-wrap { @apply max-h-[65vh] overflow-auto rounded-xl border border-border/80 bg-card shadow-none; } @utility data-table { @apply w-full caption-bottom text-sm; & thead { @apply sticky top-0 z-10 border-b border-border/80 bg-muted/55 text-muted-foreground; } & th { @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/70 px-4 text-left text-xs font-semibold tracking-wide text-muted-foreground last:border-r-0 dark:border-white/10 dark:text-white/65; } & td { @apply h-[3.2rem] whitespace-nowrap border-r border-border/60 px-4 py-2.5 align-middle text-sm font-normal text-foreground last:border-r-0 dark:border-white/8 dark:text-white/90; } & tbody tr { @apply border-b border-border/70 transition-colors hover:bg-muted/70 active:bg-muted dark:border-white/8 dark:hover:bg-white/6 dark:active:bg-white/8; } & tbody tr:nth-child(even) { background-color: hsl(var(--muted) / 0.18); } & tbody tr:hover:nth-child(even) { background-color: hsl(var(--muted) / 0.7); } [data-kb-theme='dark'] & tbody tr:nth-child(even) { background-color: hsl(var(--muted) / 0.35); } [data-kb-theme='dark'] & tbody tr:hover:nth-child(even) { background-color: hsl(var(--muted) / 0.65); } } @utility detail-breadcrumb { @apply flex flex-wrap items-center gap-1.5 text-xs text-muted-foreground font-medium; & a { @apply transition-colors hover:text-foreground; } } @utility detail-action-group { @apply flex w-full flex-wrap items-center gap-1.5 rounded-xl border border-border/80 bg-card p-1.5 shadow-xs sm:w-auto; } @utility detail-action-divider { @apply flex flex-1 items-center gap-1.5 border-t border-border pt-1.5 sm:ml-1 sm:flex-none sm:border-l sm:border-t-0 sm:pl-1.5 sm:pt-0; } @utility tab-panel-header { @apply flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-border/60 bg-muted/20 px-3 py-2; } @utility tab-panel-note { @apply rounded-xl border border-border/60 bg-muted/20 px-3 py-2 text-sm text-muted-foreground; } @utility detail-metric-card { @apply rounded-xl border border-black/5 bg-transparent px-4 py-4 shadow-xs dark:border-white/6; } @utility side-panel-body { & form { @apply space-y-6 pb-6; } & form > .space-y-3 { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } & form > .space-y-4 { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } & form > .space-y-1\.5 { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } & form > .grid { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } & label { @apply text-xs font-semibold text-muted-foreground/90 tracking-tight; } & input { @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; } & textarea { @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; } & select { @apply rounded-xl bg-muted/30 border border-border/80 h-11 px-3.5 transition-colors focus:bg-background; } & form > .flex:last-child { @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; } & form > .flex.flex-wrap:last-child { @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; } & form > .flex:last-child button { @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; } & form > .flex.flex-wrap:last-child button { @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; } } @utility space-y-3 { .side-panel-body form > & { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } } @utility space-y-4 { .side-panel-body form > & { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } } @utility space-y-1.5 { .side-panel-body form > & { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } } @utility grid { .side-panel-body form > & { @apply rounded-2xl border border-border/80 bg-card p-5 shadow-xs; } } @utility flex { .side-panel-body form > &:last-child { @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; } .side-panel-body form > &.flex-wrap:last-child { @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; } .side-panel-body form > &:last-child button { @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; } .side-panel-body form > &.flex-wrap:last-child button { @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; } } @utility flex-wrap { .side-panel-body form > &.flex:last-child { @apply sticky bottom-0 -mx-6 justify-end border-t border-border/80 bg-background/90 backdrop-blur-md px-6 py-4 shadow-[0_-16px_32px_hsl(var(--background)/0.8)]; } .side-panel-body form > &.flex:last-child button { @apply rounded-xl h-11 px-5 font-medium active:scale-[0.97] transition-transform duration-150; } } @utility tactile-press { @apply active:scale-[0.97] transition-transform duration-150; } @utility card-lift { @apply transition-shadow duration-200 ease-out hover:shadow-apple-hover; } @utility hig-grouped-card { @apply rounded-2xl border border-border/80 bg-card p-4 shadow-xs transition-[border-color,box-shadow] sm:p-5; } @utility hig-translucent-bar { @apply border-b border-border/80 bg-background/85 backdrop-blur-xl backdrop-saturate-150; } @utility hig-popover-panel { @apply backdrop-blur-xl backdrop-saturate-150 bg-popover/95 border border-black/8 dark:border-white/12 rounded-2xl shadow-apple p-1.5; } @utility animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; @media (prefers-reduced-motion: reduce) { animation: none; } } @utility num { font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; } @utility mono { font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-numeric: tabular-nums; } @layer base { :root { /* Coolors light steel: #F8F9FA → #212529 */ --ui-bg: 210 15.8% 92.5%; --ui-surface-1: 210 16.7% 97.6%; --ui-surface-2: 210 13.8% 88.6%; --ui-surface-3: 210 14% 83.1%; --ui-border-1: 210 14% 83.1%; --ui-border-2: 210 10.8% 71%; --ui-text-1: 210 10.8% 14.5%; --ui-text-2: 210 8.8% 31.4%; --ui-text-3: 208.2 7.3% 45.7%; --ui-accent: 210 10.3% 22.7%; --ui-accent-muted: 210 13.8% 88.6%; /* Apple System Status Colors */ --ui-success: 142 71% 45%; --ui-success-muted: 142 60% 94%; --ui-warning: 38 92% 50%; --ui-warning-muted: 38 85% 93%; --ui-danger: 354 84% 57%; --ui-danger-muted: 354 80% 94%; --ui-info: 199 89% 48%; --ui-info-muted: 199 80% 94%; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --background: var(--ui-bg); --foreground: var(--ui-text-1); --card: var(--ui-surface-1); --card-foreground: var(--ui-text-1); --popover: var(--ui-surface-1); --popover-foreground: var(--ui-text-1); --primary: var(--ui-accent); --primary-foreground: 210 16.7% 97.6%; --secondary: var(--ui-surface-2); --secondary-foreground: var(--ui-text-1); --muted: var(--ui-surface-2); --muted-foreground: var(--ui-text-2); --accent: var(--ui-accent-muted); --accent-foreground: 210 10.3% 22.7%; --destructive: var(--ui-danger); --destructive-foreground: 0 0% 100%; --border: var(--ui-border-1); --input: var(--ui-border-1); --ring: var(--ui-accent); --radius: 1rem; --success: var(--ui-success); --warning: var(--ui-warning); --info: var(--ui-info); --surface-elevated: var(--ui-surface-1); --sidebar: var(--ui-surface-1); --sidebar-foreground: var(--ui-text-2); } [data-kb-theme="dark"] { --ui-bg: 210 10.8% 14.5%; --ui-surface-1: 210 10.3% 22.7%; --ui-surface-2: 210 8.8% 31.4%; --ui-surface-3: 208.2 7.3% 45.7%; --ui-border-1: 210 8.8% 31.4%; --ui-border-2: 208.2 7.3% 45.7%; --ui-text-1: 210 16.7% 97.6%; --ui-text-2: 210 13.8% 88.6%; --ui-text-3: 210 10.8% 71%; --ui-accent: 210 14% 83.1%; --ui-accent-muted: 210 8.8% 31.4%; --ui-success: 142 71% 52%; --ui-success-muted: 142 40% 14%; --ui-warning: 38 92% 54%; --ui-warning-muted: 38 50% 14%; --ui-danger: 354 84% 62%; --ui-danger-muted: 354 50% 15%; --ui-info: 199 89% 60%; --ui-info-muted: 199 50% 14%; --primary-foreground: 210 10.8% 14.5%; --accent-foreground: 210 16.7% 97.6%; --destructive-foreground: 0 0% 100%; --sidebar: var(--ui-bg); } * { @apply border-border; } html { @apply scroll-smooth; font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { @apply min-h-screen bg-background font-sans text-foreground antialiased selection:bg-primary/20 selection:text-primary; } /* Invisible scrollbars globally (scrolling works, visual track hidden) */ * { -ms-overflow-style: none; scrollbar-width: none; } ::-webkit-scrollbar { display: none; width: 0; height: 0; } .no-scrollbar::-webkit-scrollbar { display: none; } .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } } @layer components { @keyframes pulse-glow { 0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 10px hsl(var(--primary) / 0.25)); } 50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 20px hsl(var(--primary) / 0.45)); } } }