@import "tailwindcss"; @import "tw-animate-css"; @custom-variant dark (&:is(.dark *)); @custom-variant hc (&:is([data-high-contrast=true] *)); @theme inline { --color-background: var(--background); --color-foreground: var(--foreground); --font-sans: var(--font-geist-sans); --font-mono: var(--font-geist-mono); --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); --color-message-user: var(--message-user); --color-message-assistant: var(--message-assistant); --color-message-highlight: var(--message-highlight); --color-message-selected: var(--message-selected); --color-message-high-contrast: var(--message-high-contrast); --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 40px; --space-6: 48px; --space-7: 56px; --space-8: 64px; } :root { --radius: 0.625rem; --background: oklch(1 0 0); --foreground: oklch(0.141 0.005 285.823); --card: oklch(1 0 0); --card-foreground: oklch(0.141 0.005 285.823); --popover: oklch(1 0 0); --popover-foreground: oklch(0.141 0.005 285.823); --primary: oklch(0.21 0.006 285.885); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.967 0.001 286.375); --secondary-foreground: oklch(0.21 0.006 285.885); --muted: oklch(0.967 0.001 286.375); --muted-foreground: oklch(0.552 0.016 285.938); --accent: oklch(0.967 0.001 286.375); --accent-foreground: oklch(0.21 0.006 285.885); --destructive: oklch(0.577 0.245 27.325); --border: oklch(0.92 0.004 286.32); --input: oklch(0.92 0.004 286.32); --ring: oklch(0.705 0.015 286.067); --chart-1: oklch(0.646 0.222 41.116); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); --chart-5: oklch(0.769 0.188 70.08); --sidebar: oklch(0.985 0 0); --sidebar-foreground: oklch(0.141 0.005 285.823); --sidebar-primary: oklch(0.21 0.006 285.885); --sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.967 0.001 286.375); --sidebar-accent-foreground: oklch(0.21 0.006 285.885); --sidebar-border: oklch(0.92 0.004 286.32); --sidebar-ring: oklch(0.705 0.015 286.067); --message-user: oklch(0.965 0.02 245); --message-assistant: oklch(0.972 0.012 300); --message-highlight: oklch(0.94 0.02 250); --message-selected: oklch(0.92 0.02 285); --message-high-contrast: oklch(0.99 0 0); } .dark { --background: oklch(0.141 0.005 285.823); --foreground: oklch(0.985 0 0); --card: oklch(0.21 0.006 285.885); --card-foreground: oklch(0.985 0 0); --popover: oklch(0.21 0.006 285.885); --popover-foreground: oklch(0.985 0 0); --primary: oklch(0.92 0.004 286.32); --primary-foreground: oklch(0.21 0.006 285.885); --secondary: oklch(0.274 0.006 286.033); --secondary-foreground: oklch(0.985 0 0); --muted: oklch(0.274 0.006 286.033); --muted-foreground: oklch(0.705 0.015 286.067); --accent: oklch(0.274 0.006 286.033); --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.552 0.016 285.938); --chart-1: oklch(0.488 0.243 264.376); --chart-2: oklch(0.696 0.17 162.48); --chart-3: oklch(0.769 0.188 70.08); --chart-4: oklch(0.627 0.265 303.9); --chart-5: oklch(0.645 0.246 16.439); --sidebar: oklch(0.21 0.006 285.885); --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.274 0.006 286.033); --sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-border: oklch(1 0 0 / 10%); --sidebar-ring: oklch(0.552 0.016 285.938); --message-user: oklch(0.23 0.02 245); --message-assistant: oklch(0.24 0.015 300); --message-highlight: oklch(0.34 0.02 250); --message-selected: oklch(0.25 0.02 285); --message-high-contrast: oklch(0.18 0.005 286); } :root[data-high-contrast="true"] { --message-user: oklch(0.9 0 0); --message-assistant: oklch(0.9 0 0); --message-highlight: oklch(0.8 0 0); --message-selected: oklch(0.7 0 0); --message-high-contrast: oklch(0.99 0 0); } @layer base { *, *::before, *::after { @apply border-border outline-ring/50; box-sizing: border-box; } html { overflow-x: hidden; } body { @apply bg-background text-foreground; overflow-x: hidden; width: 100%; max-width: 100vw; } } /* Custom Scrollbar Styles - Padronizado para toda interface */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: hsl(var(--muted)); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: hsl(var(--primary)); border-radius: 4px; transition: background 0.2s ease; } ::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.8); } /* Firefox scrollbar */ * { scrollbar-width: thin; scrollbar-color: hsl(var(--primary)) hsl(var(--muted)); } /* Responsive adjustments */ @media (max-width: 640px) { ::-webkit-scrollbar { width: 6px; height: 6px; } } /* Responsive layout adjustments */ @media (max-width: 650px) { /* Sidebar compact mode - hide labels, show only icons */ .sidebar-compact .sidebar-label { display: none; } .sidebar-compact .sidebar-icon { font-size: 24px; } } /* Ensure proper spacing and padding at all resolutions */ @media (min-width: 320px) and (max-width: 2560px) { /* Prevent layout breaking at extreme sizes */ .chat-container { min-width: 320px; max-width: 100vw; } .message-container { padding-left: clamp(12px, 4vw, 24px); padding-right: clamp(12px, 4vw, 24px); } } /* Prevent text overflow in cards and messages */ .truncate-with-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Ensure cards never stick to edges */ .card-container { padding: clamp(8px, 2vw, 16px); } /* Sidebar chat item - prevent overflow and ensure proper truncation */ .sidebar-chat-item { width: 100%; min-width: 0; overflow: hidden; } .sidebar-chat-item-content { display: flex; align-items: flex-start; gap: 0.625rem; width: 100%; min-width: 0; } .sidebar-chat-item-text { flex: 1; min-width: 0; overflow: hidden; } .sidebar-chat-item-title { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .sidebar-chat-item-date { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } /* Responsive font sizes */ @media (max-width: 640px) { .responsive-text { font-size: clamp(14px, 4vw, 16px); } } /* Model name truncation - ensure long model names don't break layout */ .model-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; display: inline-block; vertical-align: middle; } @media (max-width: 600px) { .model-name { max-width: 54vw; font-size: 15px; } } /* Select value truncation */ [data-radix-select-trigger] span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: block; } /* Ensure SelectItems also truncate properly */ [data-radix-select-item] { min-width: 0; } [data-radix-select-item] span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; display: block; } /* Scrollbar específico para lista de chats - mais fino e discreto */ .sidebar-chat-list::-webkit-scrollbar { width: 6px; } .sidebar-chat-list::-webkit-scrollbar-track { background: transparent; border-radius: 3px; } .sidebar-chat-list::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); border-radius: 3px; transition: background 0.2s ease; } .sidebar-chat-list::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.6); } /* Firefox scrollbar para lista de chats */ .sidebar-chat-list { scrollbar-width: thin; scrollbar-color: hsl(var(--muted-foreground) / 0.3) transparent; } /* Minimalista scrollbar para sources */ .sources-scrollbar { scrollbar-width: thin; scrollbar-color: hsl(var(--muted-foreground) / 0.2) transparent; } .sources-scrollbar::-webkit-scrollbar { height: 4px; } .sources-scrollbar::-webkit-scrollbar-track { background: transparent; border-radius: 2px; } .sources-scrollbar::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.2); border-radius: 2px; transition: background 0.2s ease; } .sources-scrollbar::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.35); } /* Ocultar scrollbar quando não há overflow */ .sources-scrollbar:not(:hover)::-webkit-scrollbar-thumb { background: transparent; } /* Utility class para ocultar scrollbar */ .scrollbar-hide { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ } .scrollbar-hide::-webkit-scrollbar { display: none; /* Chrome, Safari and Opera */ } /* Reasoning Chain animations */ @keyframes reasoning-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } .reasoning-step { animation: reasoning-fade-in 0.3s ease-out forwards; opacity: 0; } /* Staggered reveal para steps */ .reasoning-step:nth-child(1) { animation-delay: 0ms; } .reasoning-step:nth-child(2) { animation-delay: 100ms; } .reasoning-step:nth-child(3) { animation-delay: 200ms; } .reasoning-step:nth-child(4) { animation-delay: 300ms; } .reasoning-step:nth-child(5) { animation-delay: 400ms; } .reasoning-step:nth-child(6) { animation-delay: 500ms; } .reasoning-step:nth-child(7) { animation-delay: 600ms; } .reasoning-step:nth-child(8) { animation-delay: 700ms; } .reasoning-step:nth-child(n+9) { animation-delay: 800ms; }