@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: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 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)); /* bdash radius scale: base 0.5rem, sm=r-4px, md=r-2px, lg=r, xl=r+4px */ --radius-3xl: calc(var(--radius) + 12px); --radius-2xl: calc(var(--radius) + 8px); --radius-xl: calc(var(--radius) + 4px); --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 2px); --radius-sm: calc(var(--radius) - 4px); --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 focus-ring { @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background; } @utility topbar-control { @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground; } /* AI action button: violet→indigo gradient + indigo glow. */ @utility topbar-ai-control { color: #fff; background-image: linear-gradient(to right, #7c3aed, #4f46e5, #7c3aed); border: 1px solid rgb(129 140 248 / 0.5); box-shadow: 0 0 20px rgb(99 102 241 / 0.35); @apply transition-[filter,box-shadow,transform] hover:brightness-110 hover:shadow-[0_0_24px_rgb(99_102_241_/_0.5)]; } @utility data-shell { @apply rounded-lg border border-border bg-card shadow-sm; } @utility data-table-wrap { @apply isolate max-h-[65vh] overflow-auto rounded-lg border border-border bg-card; } @utility data-table { @apply w-full caption-bottom text-sm; & thead { @apply sticky top-0 z-20 border-b border-border/80 text-muted-foreground; background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); } & th { /* No text-align here: `.data-table th` would out-specify the per-column * text-right/center utility on TableHead and force every header left. The * TableHead base class provides the left default; alignment stays utility-driven. * Title Case (no uppercase transform), light weight, muted. */ @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap px-3 text-xs font-medium tracking-normal text-muted-foreground first:pl-4 last:pr-4; background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); } & td { /* tabular-nums: vertically aligned digits without a mono font. */ @apply whitespace-nowrap px-3 py-3 align-middle text-sm font-normal text-foreground tabular-nums first:pl-4 last:pr-4; } & tbody tr { @apply border-b border-border/60 transition-colors data-[state=selected]:bg-muted; background-color: hsl(var(--card)); } & tbody tr:hover { background-color: color-mix(in oklab, hsl(var(--muted)) 40%, hsl(var(--card))); } & tbody tr[data-state='selected'] { background-color: hsl(var(--muted)); } } /* * Yatay kaydırmada sabit kalan (dondurulmuş) kolonlar. Altındaki içerik görünmesin * diye opak olmalı ama zebra/hover satır tonuyla da eşleşmeli: gövde hücresi satır * tonunu `inherit` ile alır, başlık hücresi başlık tonunu kullanır. Kayan içerikle * arasında görsel dikiş için kenara ince çizgi + yumuşak gölge eklenir. */ @utility table-sticky-left { background-color: inherit; border-right: 1px solid hsl(var(--border)); box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } @utility table-sticky-right { background-color: inherit; border-left: 1px solid hsl(var(--border)); box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } /* Dondurulmuş başlık hücreleri gövde hücrelerinin üstünde opak kalmalı. */ @utility table-sticky-head-left { background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); border-right: 1px solid hsl(var(--border)); box-shadow: 4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } @utility table-sticky-head-right { background-color: color-mix(in srgb, hsl(var(--muted)) 55%, hsl(var(--card))); border-left: 1px solid hsl(var(--border)); box-shadow: -4px 0 6px -6px color-mix(in srgb, hsl(var(--foreground)) 12%, transparent); } /* İşlemler sütunu: sabit 110x45. */ .data-table td.table-action-cell, .data-table th.table-action-cell { width: 110px; min-width: 110px; max-width: 110px; height: 45px; padding-top: 0; padding-bottom: 0; } @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-lg border border-border/80 bg-card p-1.5 shadow-sm 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-lg border border-border/60 bg-muted/20 px-3 py-2; } @utility tab-panel-note { @apply rounded-lg border border-border/60 bg-muted/20 px-3 py-2 text-sm text-muted-foreground; } @utility detail-metric-card { @apply rounded-lg border border-border bg-card px-4 py-4 shadow-sm; } @utility side-panel-body { & form { @apply space-y-4 pb-4; } & form > .space-y-3 { @apply rounded-lg border border-border bg-card p-4; } & form > .space-y-4 { @apply rounded-lg border border-border bg-card p-4; } & form > .space-y-1\.5 { @apply rounded-lg border border-border bg-card p-4; } & form > .grid { @apply rounded-lg border border-border bg-card p-4; } & label { @apply text-xs font-semibold text-muted-foreground/90 tracking-tight; } & input { @apply h-9 rounded-md; } & textarea { @apply rounded-md; } & select { @apply h-9 rounded-md; } & form > .flex:last-child { @apply sticky bottom-0 -mx-5 justify-end border-t border-border bg-background px-5 py-3; } & form > .flex.flex-wrap:last-child { @apply sticky bottom-0 -mx-5 justify-end border-t border-border bg-background px-5 py-3; } & form > .flex:last-child button { @apply h-9 rounded-md px-4 font-medium; } & form > .flex.flex-wrap:last-child button { @apply h-9 rounded-md px-4 font-medium; } } @utility tactile-press { @apply active:scale-[0.97] transition-transform duration-150; } @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 { /* Hue-neutral gray scale + Carbon-style semantic colors. */ :root { --ui-accent: 0 0% 13%; --background: 0 0% 98%; --foreground: 0 0% 8%; --card: 0 0% 100%; --card-foreground: 0 0% 8%; --popover: 0 0% 100%; --popover-foreground: 0 0% 8%; --primary: var(--ui-accent); --primary-foreground: 0 0% 98%; --secondary: 0 0% 94%; --secondary-foreground: 0 0% 16%; --muted: 0 0% 96%; --muted-foreground: 0 0% 40%; --accent: 0 0% 92%; --accent-foreground: 0 0% 13%; --destructive: 356 82% 51%; --destructive-foreground: 0 0% 100%; --border: 0 0% 89%; --input: 0 0% 82%; --ring: 0 0% 45%; --radius: 0.5rem; --success: 137 63% 39%; --warning: 38 92% 50%; --info: 219 98% 53%; --surface-elevated: 0 0% 100%; --sidebar: 0 0% 98%; --sidebar-foreground: 0 0% 8%; } [data-kb-theme="dark"] { --ui-accent: 0 0% 92%; --background: 0 0% 4%; --foreground: 0 0% 98%; --card: 0 0% 8%; --card-foreground: 0 0% 98%; --popover: 0 0% 8%; --popover-foreground: 0 0% 98%; --primary: var(--ui-accent); --primary-foreground: 0 0% 6%; --secondary: 0 0% 16%; --secondary-foreground: 0 0% 98%; --muted: 0 0% 13%; --muted-foreground: 0 0% 62%; --accent: 0 0% 18%; --accent-foreground: 0 0% 98%; --destructive: 357 94% 64%; --destructive-foreground: 0 0% 100%; --border: 0 0% 17%; --input: 0 0% 24%; --ring: 0 0% 45%; --success: 137 58% 58%; --warning: 38 92% 54%; --info: 219 98% 60%; --surface-elevated: 0 0% 10%; --sidebar: 0 0% 4%; --sidebar-foreground: 0 0% 98%; } * { @apply border-border; } html { @apply scroll-smooth; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 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; } /* Keep scrolling available while removing native scrollbar chrome globally. */ * { -ms-overflow-style: none; scrollbar-width: none; } ::-webkit-scrollbar { display: 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)); } } }