@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)); /* Hezarfen Figma semantic aliases. Keep page code semantic while matching the shared design vocabulary across light and dark modes. */ --color-brand: hsl(var(--brand)); --color-brand-accent: hsl(var(--brand-accent)); --color-brand-hover: hsl(var(--brand-hover)); --color-brand-ink: hsl(var(--brand-ink)); --color-brand-wash: hsl(var(--brand-wash)); --color-surface-base: hsl(var(--surface-base)); --color-surface-overlay: hsl(var(--surface-overlay)); --color-surface-tint: hsl(var(--surface-tint)); --color-surface-fill: hsl(var(--surface-fill)); --color-text-strong: hsl(var(--text-strong)); --color-text-default: hsl(var(--text-default)); --color-text-subtle: hsl(var(--text-subtle)); --color-text-placeholder: hsl(var(--text-placeholder)); --color-border-line: hsl(var(--border-line)); --color-border-hairline: hsl(var(--border-hairline)); /* 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 { button:not(:disabled), [role='button']:not([aria-disabled='true']) { cursor: pointer; } *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: var(--color-gray-200, currentcolor); } } @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 uses the landing-page brand blue. */ @utility topbar-ai-control { @apply border border-brand/20 bg-brand/10 text-brand transition-colors hover:bg-brand/16 hover:text-brand; } @utility data-shell { @apply rounded-xl border border-border-line bg-surface-base; } @utility data-table-wrap { @apply isolate max-h-[65vh] overflow-auto rounded-xl border border-border-line bg-surface-base; } @utility data-table { @apply w-full caption-bottom text-sm; & thead { @apply sticky top-0 z-20 border-b border-border-hairline text-text-subtle; 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-text-subtle 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-hairline 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 { /* Height of the area the user can actually see: the display minus the status bar / camera cutout at the top. Full-height layouts measure this instead of the viewport, which on mobile is taller than the page. */ --app-viewport: calc(100dvh - env(safe-area-inset-top)); /* The UA paints the caret, the text-selection handles, the keyboard and the overscroll canvas from this — and `light dark` in the meta tag makes it follow the OS, not the app. A dark app on a light phone then drew a black caret on a black field, and the strip revealed by overscrolling came back white. Pinning it per theme keeps that chrome in the theme. */ color-scheme: light; /* --accent-light / --accent-light-fg are set inline by preferences-context when the user picks an accent color. Figma brand blue is only the default; a saved user palette continues to win. */ --brand: 191.94 100% 42.35%; --brand-accent: 191.94 100% 42.35%; --brand-hover: 192.06 100% 37.06%; --brand-ink: 192.46 94.2% 27.06%; --brand-wash: 193.33 75% 95.29%; --surface-base: 0 0% 100%; --surface-overlay: 0 0% 97%; --surface-tint: 0 0% 96%; --surface-fill: 0 0% 90%; --text-strong: 0 0% 4%; --text-default: 240 6% 10%; --text-subtle: 0 0% 45%; --text-placeholder: 0 0% 63%; --border-line: 0 0% 4% / 0.1; --border-hairline: 0 0% 91%; --ui-accent: var(--accent-light, var(--brand)); --background: var(--surface-overlay); --foreground: var(--text-default); --card: 0 0% 100%; --card-foreground: 0 0% 8%; --popover: 0 0% 100%; --popover-foreground: 0 0% 8%; --primary: var(--ui-accent); --primary-foreground: var(--accent-light-fg, 0 0% 4%); --secondary: var(--surface-fill); --secondary-foreground: 0 0% 16%; --muted: var(--surface-tint); --muted-foreground: var(--text-subtle); --accent: var(--surface-fill); --accent-foreground: 0 0% 13%; --destructive: 356 82% 51%; --destructive-foreground: 0 0% 100%; --border: var(--border-hairline); --input: var(--border-line); --ring: var(--accent-light, var(--brand-ink)); --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%; /* unDraw illustration palette (src/lib/illustrations.ts). */ --illu-accent: hsl(var(--primary)); --illu-accent-2: hsl(349 100% 70%); --illu-ink: hsl(240 12% 22%); --illu-line: hsl(0 0% 82%); --illu-soft: hsl(0 0% 92%); --illu-paper: hsl(0 0% 100%); } [data-kb-theme="dark"] { /* --accent-dark / --accent-dark-fg are set inline by preferences-context — a separate, lighter-lightness variant of the same picked hue so it stays legible against this theme's near-black background. */ color-scheme: dark; --surface-base: 0 0% 6%; --surface-overlay: 0 0% 6%; --surface-tint: 0 0% 15%; --surface-fill: 0 0% 15%; --text-strong: 0 0% 98%; --text-default: 0 0% 96%; --text-subtle: 0 0% 63%; --text-placeholder: 0 0% 63%; --border-line: 0 0% 20%; --border-hairline: 0 0% 20%; --ui-accent: var(--accent-dark, var(--brand)); --background: var(--surface-overlay); --foreground: var(--text-strong); --card: var(--surface-base); --card-foreground: var(--text-strong); --popover: var(--surface-base); --popover-foreground: var(--text-strong); --primary: var(--ui-accent); --primary-foreground: var(--accent-dark-fg, 0 0% 4%); --secondary: var(--surface-fill); --secondary-foreground: 0 0% 98%; --muted: var(--surface-tint); --muted-foreground: var(--text-subtle); --accent: var(--surface-fill); --accent-foreground: 0 0% 98%; --destructive: 357 94% 64%; --destructive-foreground: 0 0% 100%; --border: var(--border-hairline); --input: var(--border-line); --ring: var(--accent-dark, var(--brand)); --success: 137 58% 58%; --warning: 38 92% 54%; --info: 219 98% 60%; --illu-ink: hsl(240 6% 72%); --illu-line: hsl(0 0% 30%); --illu-soft: hsl(0 0% 19%); --illu-paper: hsl(0 0% 11%); --surface-elevated: var(--surface-fill); --sidebar: var(--surface-base); --sidebar-foreground: 0 0% 98%; } * { @apply border-border; } html { @apply scroll-smooth bg-background; /* The canvas behind the page — what an overscroll bounce or a keyboard teardown reveals below the last element — is painted from `html`, not from `body`. Without this it falls back to the UA's white. */ overscroll-behavior-y: none; 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; /* The mobile shells (Tauri on Android/iOS) draw the page edge to edge, so the status bar and the camera cutout sit on top of it. This padding is what starts the page below them; border-box keeps the min-height from counting it, so the page does not grow a scrollbar's worth of overflow. Every inset is 0 in a desktop browser, so the web build is unchanged. */ box-sizing: border-box; min-height: 100dvh; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } /* The padding above scrolls away with the page, which would let content slide up under the status bar and the camera. This band does not move: it paints the theme background over that strip at every scroll position, so the cutout area always matches the page instead of showing what is behind it. It sits above every overlay (modals z-70, toasts/date-picker z-80) because the strip must stay clean even while a drawer or dialog is open. */ body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: hsl(var(--background)); z-index: 90; pointer-events: none; } /* Form controls inherit `color` from Tailwind's preflight, but the caret and the selection highlight do not follow it, and a field that overrides its own background (the Çelebi composer is transparent on a card) could end up with a caret the same color as what is behind it. Naming all three keeps a focused field readable in either theme. */ input, textarea, select { color: hsl(var(--foreground)); caret-color: hsl(var(--primary)); -webkit-text-fill-color: currentColor; } /* `-webkit-text-fill-color` inherits as a resolved color, so without this the field's own fill would repaint the placeholder in the text color. */ input::placeholder, textarea::placeholder { -webkit-text-fill-color: currentColor; } input::selection, textarea::selection { background: hsl(var(--primary) / 0.3); color: hsl(var(--foreground)); } /* 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)); } } } /* Profile cover: brand tint under an 8px pixel grid. */ .profile-cover { background-color: hsl(var(--primary) / 0.12); background-image: linear-gradient(hsl(var(--primary) / 0.1) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--primary) / 0.1) 1px, transparent 1px), linear-gradient(120deg, hsl(var(--primary) / 0.28), transparent 65%); background-size: 8px 8px, 8px 8px, 100% 100%; }