2025-03-19 06:04:06 +00:00
|
|
|
@import "tailwindcss";
|
|
|
|
|
|
|
|
|
|
@plugin "tailwindcss-animate";
|
2025-12-05 22:42:39 +09:00
|
|
|
@plugin "@tailwindcss/typography";
|
2025-03-19 06:04:06 +00:00
|
|
|
|
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
|
|
|
|
|
|
@theme inline {
|
2025-12-06 12:46:40 +09:00
|
|
|
--color-background: var(--background);
|
|
|
|
|
--color-foreground: var(--foreground);
|
|
|
|
|
--font-sans: var(--font-sans);
|
|
|
|
|
--font-mono: var(--font-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);
|
|
|
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
|
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
|
|
|
--radius-lg: var(--radius);
|
|
|
|
|
--radius-xl: calc(var(--radius) + 4px);
|
2025-03-19 06:04:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root {
|
2025-12-06 12:46:40 +09:00
|
|
|
--radius: 0.75rem;
|
|
|
|
|
|
|
|
|
|
/* Clean Light Modern Palette */
|
|
|
|
|
--background: oklch(0.985 0.002 240);
|
|
|
|
|
--foreground: oklch(0.23 0.02 260);
|
|
|
|
|
|
|
|
|
|
--card: oklch(1 0 0);
|
|
|
|
|
--card-foreground: oklch(0.23 0.02 260);
|
|
|
|
|
|
|
|
|
|
--popover: oklch(1 0 0);
|
|
|
|
|
--popover-foreground: oklch(0.23 0.02 260);
|
|
|
|
|
|
|
|
|
|
/* Dark primary - slightly lighter */
|
|
|
|
|
--primary: oklch(0.35 0.01 260);
|
|
|
|
|
--primary-foreground: oklch(0.99 0 0);
|
|
|
|
|
|
|
|
|
|
/* Warm gray secondary */
|
|
|
|
|
--secondary: oklch(0.96 0.005 260);
|
|
|
|
|
--secondary-foreground: oklch(0.35 0.02 260);
|
|
|
|
|
|
|
|
|
|
/* Light muted tones */
|
|
|
|
|
--muted: oklch(0.965 0.005 260);
|
|
|
|
|
--muted-foreground: oklch(0.5 0.02 260);
|
|
|
|
|
|
|
|
|
|
/* Soft lavender accent */
|
|
|
|
|
--accent: oklch(0.94 0.03 280);
|
|
|
|
|
--accent-foreground: oklch(0.35 0.08 270);
|
|
|
|
|
|
feat: add chat session history with IndexedDB persistence (#500)
* feat(session): add chat session history with IndexedDB storage
- Add session-storage.ts with IndexedDB wrapper using idb library
- Add use-session-manager.ts hook for session state management
- Add session-history-dropdown.tsx for session selection UI
- Integrate session system into chat-panel.tsx
- Auto-generate session titles from first user message
- Auto-save sessions on message completion
- Support session switching, deletion, and creation
- Migrate existing localStorage data to IndexedDB
- Add i18n translations for session history UI
* feat(session): improve history dropdown and persist diagram history
- Add time-based grouping (Today, Yesterday, This Week, Earlier)
- Add thumbnail previews using Next.js Image component
- Add staggered entrance animations with fade-in effects
- Improve active session indicator with left border accent
- Fix scrolling by using native overflow instead of ScrollArea
- Persist diagram version history to IndexedDB sessions
- Remove redundant diagram XML from localStorage
- Add i18n strings for time group labels (en, ja, zh)
* fix(session): prevent data loss on theme change and tab close
- Add isDrawioReady effect to restore diagram after DrawIO remount
- Add visibilitychange handler to save session when page becomes hidden
- Fix missing currentSessionId in saveCurrentSession dependency array
- Remove unused sanitizeMessages import from use-session-manager
* fix(session): fix diagram save and migration data loss bugs
- Add diagramHistory to save effect dependency array so diagram-only
edits trigger saves (previously only message changes did)
- Destructure stable sessionManager values to prevent unnecessary
effect re-runs on every render
- Add try-catch wrapper around debounced async save operation
- Make saveSession() return boolean to indicate success/failure
- Verify IndexedDB write succeeded before deleting localStorage data
during migration (prevents data loss if write silently fails)
- Keep localStorage data for retry if migration fails instead of
marking as complete anyway
* refactor(session): extract helpers to reduce code duplication
- Add syncUIWithSession helper to consolidate 4 duplicate UI sync blocks
- Add buildSessionData helper to consolidate 4 duplicate save logic blocks
- Remove unused saveTimeoutRef and its cleanup effect
- Net reduction of ~80 lines of duplicate code
* style(ui): improve history dropdown and delete dialog styling
- Change destructive color from coral to muted rose for refined look
- Make session history panel taller (400px fixed height)
- Fix popover alignment to prevent truncation
- Style delete button with soft red outline instead of solid fill
- Make delete dialog more compact (max-w-sm)
* fix(session): reset refs on new chat and show recent sessions
- Fix cached example diagrams not displaying after creating new session
- Reset previousXML, lastProcessedXmlRef and processedToolCalls when
messages become empty (new chat or session switch)
- Add recent chats section in empty chat state with collapsible examples
- Pass sessions and onSelectSession to ChatMessageDisplay
- Add loadedMessageIdsRef to skip animations on session restore
- Add debug console.log for diagram processing flow
* feat(session): add search bar and improve history UI
- Remove session history dropdown, use main panel instead
- Add search bar to filter history chats by title
- Show minutes (Xm ago) instead of "Just now" for recent sessions
- Scroll to top when switching to new/empty chat
- Remove title truncation limit for better searchability
- Remove debug console.log statements
* refactor: remove redundant code and fix nested button hydration error
- Remove unused 'sessions' from deleteSession dependency array
- Remove unused 'switchedTo' variable and simplify return type
- Remove unused 'restoredMessageIdsRef' (always empty)
- Fix nested button hydration error by using div with role=button
- Simplify handleDeleteSession callback
* fix(session): fix migration bug, improve metadata perf, truncate titles
- Fix migration retry loop when localStorage has empty array
- Use cursor-based iteration for getAllSessionMetadata
- Truncate session titles to 100 chars with ellipsis
* refactor: remove dead code and extract diagram length constant
- Remove unused exports: getAllSessions, createNewSession, updateSessionTitle
- Remove write-only CURRENT_SESSION_KEY and all localStorage calls
- Remove dead messagesEndRef and unused scroll effect
- Extract magic number 300 to MIN_REAL_DIAGRAM_LENGTH constant
- Add isRealDiagram() helper function for semantic clarity
2026-01-04 10:25:19 +09:00
|
|
|
/* Muted rose destructive */
|
|
|
|
|
--destructive: oklch(0.45 0.12 10);
|
2025-12-06 12:46:40 +09:00
|
|
|
|
|
|
|
|
/* Subtle borders */
|
|
|
|
|
--border: oklch(0.92 0.01 260);
|
|
|
|
|
--input: oklch(0.94 0.01 260);
|
|
|
|
|
--ring: oklch(0.25 0.01 260);
|
|
|
|
|
|
|
|
|
|
/* Chart colors - harmonious palette */
|
|
|
|
|
--chart-1: oklch(0.55 0.18 265);
|
|
|
|
|
--chart-2: oklch(0.65 0.15 170);
|
|
|
|
|
--chart-3: oklch(0.7 0.18 45);
|
|
|
|
|
--chart-4: oklch(0.6 0.2 330);
|
|
|
|
|
--chart-5: oklch(0.5 0.15 200);
|
|
|
|
|
|
|
|
|
|
/* Sidebar */
|
|
|
|
|
--sidebar: oklch(0.99 0.002 260);
|
|
|
|
|
--sidebar-foreground: oklch(0.23 0.02 260);
|
|
|
|
|
--sidebar-primary: oklch(0.55 0.18 265);
|
|
|
|
|
--sidebar-primary-foreground: oklch(0.99 0 0);
|
|
|
|
|
--sidebar-accent: oklch(0.96 0.02 270);
|
|
|
|
|
--sidebar-accent-foreground: oklch(0.35 0.05 265);
|
|
|
|
|
--sidebar-border: oklch(0.93 0.01 260);
|
|
|
|
|
--sidebar-ring: oklch(0.55 0.18 265);
|
2025-03-19 06:04:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark {
|
2025-12-06 12:46:40 +09:00
|
|
|
--background: oklch(0.15 0.015 260);
|
|
|
|
|
--foreground: oklch(0.95 0.01 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--card: oklch(0.2 0.015 260);
|
|
|
|
|
--card-foreground: oklch(0.95 0.01 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--popover: oklch(0.2 0.015 260);
|
|
|
|
|
--popover-foreground: oklch(0.95 0.01 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--primary: oklch(0.7 0.16 265);
|
|
|
|
|
--primary-foreground: oklch(0.15 0.02 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--secondary: oklch(0.25 0.015 260);
|
|
|
|
|
--secondary-foreground: oklch(0.9 0.01 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--muted: oklch(0.25 0.015 260);
|
|
|
|
|
--muted-foreground: oklch(0.65 0.02 260);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--accent: oklch(0.3 0.04 280);
|
|
|
|
|
--accent-foreground: oklch(0.9 0.03 270);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
feat: add chat session history with IndexedDB persistence (#500)
* feat(session): add chat session history with IndexedDB storage
- Add session-storage.ts with IndexedDB wrapper using idb library
- Add use-session-manager.ts hook for session state management
- Add session-history-dropdown.tsx for session selection UI
- Integrate session system into chat-panel.tsx
- Auto-generate session titles from first user message
- Auto-save sessions on message completion
- Support session switching, deletion, and creation
- Migrate existing localStorage data to IndexedDB
- Add i18n translations for session history UI
* feat(session): improve history dropdown and persist diagram history
- Add time-based grouping (Today, Yesterday, This Week, Earlier)
- Add thumbnail previews using Next.js Image component
- Add staggered entrance animations with fade-in effects
- Improve active session indicator with left border accent
- Fix scrolling by using native overflow instead of ScrollArea
- Persist diagram version history to IndexedDB sessions
- Remove redundant diagram XML from localStorage
- Add i18n strings for time group labels (en, ja, zh)
* fix(session): prevent data loss on theme change and tab close
- Add isDrawioReady effect to restore diagram after DrawIO remount
- Add visibilitychange handler to save session when page becomes hidden
- Fix missing currentSessionId in saveCurrentSession dependency array
- Remove unused sanitizeMessages import from use-session-manager
* fix(session): fix diagram save and migration data loss bugs
- Add diagramHistory to save effect dependency array so diagram-only
edits trigger saves (previously only message changes did)
- Destructure stable sessionManager values to prevent unnecessary
effect re-runs on every render
- Add try-catch wrapper around debounced async save operation
- Make saveSession() return boolean to indicate success/failure
- Verify IndexedDB write succeeded before deleting localStorage data
during migration (prevents data loss if write silently fails)
- Keep localStorage data for retry if migration fails instead of
marking as complete anyway
* refactor(session): extract helpers to reduce code duplication
- Add syncUIWithSession helper to consolidate 4 duplicate UI sync blocks
- Add buildSessionData helper to consolidate 4 duplicate save logic blocks
- Remove unused saveTimeoutRef and its cleanup effect
- Net reduction of ~80 lines of duplicate code
* style(ui): improve history dropdown and delete dialog styling
- Change destructive color from coral to muted rose for refined look
- Make session history panel taller (400px fixed height)
- Fix popover alignment to prevent truncation
- Style delete button with soft red outline instead of solid fill
- Make delete dialog more compact (max-w-sm)
* fix(session): reset refs on new chat and show recent sessions
- Fix cached example diagrams not displaying after creating new session
- Reset previousXML, lastProcessedXmlRef and processedToolCalls when
messages become empty (new chat or session switch)
- Add recent chats section in empty chat state with collapsible examples
- Pass sessions and onSelectSession to ChatMessageDisplay
- Add loadedMessageIdsRef to skip animations on session restore
- Add debug console.log for diagram processing flow
* feat(session): add search bar and improve history UI
- Remove session history dropdown, use main panel instead
- Add search bar to filter history chats by title
- Show minutes (Xm ago) instead of "Just now" for recent sessions
- Scroll to top when switching to new/empty chat
- Remove title truncation limit for better searchability
- Remove debug console.log statements
* refactor: remove redundant code and fix nested button hydration error
- Remove unused 'sessions' from deleteSession dependency array
- Remove unused 'switchedTo' variable and simplify return type
- Remove unused 'restoredMessageIdsRef' (always empty)
- Fix nested button hydration error by using div with role=button
- Simplify handleDeleteSession callback
* fix(session): fix migration bug, improve metadata perf, truncate titles
- Fix migration retry loop when localStorage has empty array
- Use cursor-based iteration for getAllSessionMetadata
- Truncate session titles to 100 chars with ellipsis
* refactor: remove dead code and extract diagram length constant
- Remove unused exports: getAllSessions, createNewSession, updateSessionTitle
- Remove write-only CURRENT_SESSION_KEY and all localStorage calls
- Remove dead messagesEndRef and unused scroll effect
- Extract magic number 300 to MIN_REAL_DIAGRAM_LENGTH constant
- Add isRealDiagram() helper function for semantic clarity
2026-01-04 10:25:19 +09:00
|
|
|
--destructive: oklch(0.55 0.12 10);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--border: oklch(0.28 0.015 260);
|
|
|
|
|
--input: oklch(0.25 0.015 260);
|
|
|
|
|
--ring: oklch(0.7 0.16 265);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--chart-1: oklch(0.7 0.16 265);
|
|
|
|
|
--chart-2: oklch(0.7 0.13 170);
|
|
|
|
|
--chart-3: oklch(0.75 0.16 45);
|
|
|
|
|
--chart-4: oklch(0.7 0.18 330);
|
|
|
|
|
--chart-5: oklch(0.6 0.13 200);
|
2025-12-03 21:49:34 +09:00
|
|
|
|
2025-12-06 12:46:40 +09:00
|
|
|
--sidebar: oklch(0.18 0.015 260);
|
|
|
|
|
--sidebar-foreground: oklch(0.95 0.01 260);
|
|
|
|
|
--sidebar-primary: oklch(0.7 0.16 265);
|
|
|
|
|
--sidebar-primary-foreground: oklch(0.15 0.02 260);
|
|
|
|
|
--sidebar-accent: oklch(0.25 0.03 270);
|
|
|
|
|
--sidebar-accent-foreground: oklch(0.9 0.02 265);
|
|
|
|
|
--sidebar-border: oklch(0.28 0.015 260);
|
|
|
|
|
--sidebar-ring: oklch(0.7 0.16 265);
|
2025-03-19 06:04:06 +00:00
|
|
|
}
|
|
|
|
|
|
2025-12-23 21:52:04 +09:00
|
|
|
/* ============================================
|
|
|
|
|
REFINED MINIMAL DESIGN SYSTEM
|
|
|
|
|
============================================ */
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
/* Surface layers for depth */
|
|
|
|
|
--surface-0: oklch(1 0 0);
|
|
|
|
|
--surface-1: oklch(0.985 0.002 240);
|
|
|
|
|
--surface-2: oklch(0.97 0.004 240);
|
|
|
|
|
--surface-elevated: oklch(1 0 0);
|
|
|
|
|
|
|
|
|
|
/* Subtle borders */
|
|
|
|
|
--border-subtle: oklch(0.94 0.008 260);
|
|
|
|
|
--border-default: oklch(0.91 0.012 260);
|
|
|
|
|
|
|
|
|
|
/* Interactive states */
|
|
|
|
|
--interactive-hover: oklch(0.96 0.015 260);
|
|
|
|
|
--interactive-active: oklch(0.93 0.02 265);
|
|
|
|
|
|
|
|
|
|
/* Success state */
|
|
|
|
|
--success: oklch(0.65 0.18 145);
|
|
|
|
|
--success-muted: oklch(0.95 0.03 145);
|
|
|
|
|
|
|
|
|
|
/* Animation timing */
|
|
|
|
|
--duration-fast: 120ms;
|
|
|
|
|
--duration-normal: 200ms;
|
|
|
|
|
--duration-slow: 300ms;
|
|
|
|
|
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
|
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark {
|
|
|
|
|
--surface-0: oklch(0.15 0.015 260);
|
|
|
|
|
--surface-1: oklch(0.18 0.015 260);
|
|
|
|
|
--surface-2: oklch(0.22 0.015 260);
|
|
|
|
|
--surface-elevated: oklch(0.25 0.015 260);
|
|
|
|
|
|
|
|
|
|
--border-subtle: oklch(0.25 0.012 260);
|
|
|
|
|
--border-default: oklch(0.3 0.015 260);
|
|
|
|
|
|
|
|
|
|
--interactive-hover: oklch(0.25 0.02 265);
|
|
|
|
|
--interactive-active: oklch(0.3 0.025 270);
|
|
|
|
|
|
|
|
|
|
--success: oklch(0.7 0.16 145);
|
|
|
|
|
--success-muted: oklch(0.25 0.04 145);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Expose surface colors to Tailwind */
|
|
|
|
|
@theme inline {
|
|
|
|
|
--color-surface-0: var(--surface-0);
|
|
|
|
|
--color-surface-1: var(--surface-1);
|
|
|
|
|
--color-surface-2: var(--surface-2);
|
|
|
|
|
--color-surface-elevated: var(--surface-elevated);
|
|
|
|
|
--color-border-subtle: var(--border-subtle);
|
|
|
|
|
--color-border-default: var(--border-default);
|
|
|
|
|
--color-interactive-hover: var(--interactive-hover);
|
|
|
|
|
--color-interactive-active: var(--interactive-active);
|
|
|
|
|
--color-success: var(--success);
|
|
|
|
|
--color-success-muted: var(--success-muted);
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-19 06:04:06 +00:00
|
|
|
@layer base {
|
2025-12-06 12:46:40 +09:00
|
|
|
* {
|
|
|
|
|
@apply border-border outline-ring/50;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
@apply bg-background text-foreground font-sans;
|
|
|
|
|
}
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
2025-12-05 22:42:39 +09:00
|
|
|
/* Fix for Radix ScrollArea viewport horizontal overflow */
|
|
|
|
|
[data-slot="scroll-area-viewport"] > div {
|
2025-12-06 12:46:40 +09:00
|
|
|
display: block !important;
|
|
|
|
|
width: 100% !important;
|
2025-12-05 22:42:39 +09:00
|
|
|
}
|
|
|
|
|
|
2025-12-03 21:49:34 +09:00
|
|
|
/* Custom scrollbar */
|
|
|
|
|
@layer utilities {
|
2025-12-06 12:46:40 +09:00
|
|
|
.scrollbar-thin {
|
|
|
|
|
scrollbar-width: thin;
|
|
|
|
|
scrollbar-color: oklch(0.85 0.01 260) transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scrollbar-thin::-webkit-scrollbar {
|
|
|
|
|
width: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scrollbar-thin::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scrollbar-thin::-webkit-scrollbar-thumb {
|
|
|
|
|
background-color: oklch(0.85 0.01 260);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
|
|
|
|
|
background-color: oklch(0.75 0.01 260);
|
|
|
|
|
}
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Smooth page transitions */
|
|
|
|
|
@keyframes fadeIn {
|
2025-12-06 12:46:40 +09:00
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(8px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes slideInRight {
|
2025-12-06 12:46:40 +09:00
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateX(16px);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
}
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-fade-in {
|
2025-12-06 12:46:40 +09:00
|
|
|
animation: fadeIn 0.3s ease-out forwards;
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-slide-in-right {
|
2025-12-06 12:46:40 +09:00
|
|
|
animation: slideInRight 0.3s ease-out forwards;
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Message bubble animations */
|
|
|
|
|
@keyframes messageIn {
|
2025-12-06 12:46:40 +09:00
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translateY(12px) scale(0.98);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translateY(0) scale(1);
|
|
|
|
|
}
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-message-in {
|
2025-12-06 12:46:40 +09:00
|
|
|
animation: messageIn 0.25s ease-out forwards;
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Subtle floating shadow for cards */
|
|
|
|
|
.shadow-soft {
|
2025-12-06 12:46:40 +09:00
|
|
|
box-shadow:
|
|
|
|
|
0 1px 2px oklch(0.23 0.02 260 / 0.04),
|
|
|
|
|
0 4px 12px oklch(0.23 0.02 260 / 0.06),
|
|
|
|
|
0 8px 24px oklch(0.23 0.02 260 / 0.04);
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shadow-soft-lg {
|
2025-12-06 12:46:40 +09:00
|
|
|
box-shadow:
|
|
|
|
|
0 2px 4px oklch(0.23 0.02 260 / 0.04),
|
|
|
|
|
0 8px 20px oklch(0.23 0.02 260 / 0.08),
|
|
|
|
|
0 16px 40px oklch(0.23 0.02 260 / 0.06);
|
2025-12-03 21:49:34 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Gradient text utility */
|
|
|
|
|
.text-gradient-primary {
|
2025-12-06 12:46:40 +09:00
|
|
|
background: linear-gradient(
|
|
|
|
|
135deg,
|
|
|
|
|
oklch(0.55 0.18 265),
|
|
|
|
|
oklch(0.6 0.2 290)
|
|
|
|
|
);
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
|
background-clip: text;
|
2025-03-19 06:04:06 +00:00
|
|
|
}
|
2025-12-23 21:52:04 +09:00
|
|
|
|
|
|
|
|
/* ============================================
|
|
|
|
|
REFINED DIALOG STYLES
|
|
|
|
|
============================================ */
|
|
|
|
|
|
|
|
|
|
/* Refined dialog shadow - multi-layer soft shadow */
|
|
|
|
|
.shadow-dialog {
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 0 0 1px oklch(0 0 0 / 0.03),
|
|
|
|
|
0 2px 4px oklch(0 0 0 / 0.02),
|
|
|
|
|
0 12px 24px oklch(0 0 0 / 0.06),
|
|
|
|
|
0 24px 48px oklch(0 0 0 / 0.04);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dark .shadow-dialog {
|
|
|
|
|
box-shadow:
|
|
|
|
|
0 0 0 1px oklch(1 0 0 / 0.05),
|
|
|
|
|
0 2px 4px oklch(0 0 0 / 0.2),
|
|
|
|
|
0 12px 24px oklch(0 0 0 / 0.3),
|
|
|
|
|
0 24px 48px oklch(0 0 0 / 0.2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dialog animations */
|
|
|
|
|
@keyframes dialog-in {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translate(-50%, -48%) scale(0.96);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translate(-50%, -50%) scale(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes dialog-out {
|
|
|
|
|
from {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
transform: translate(-50%, -50%) scale(1);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transform: translate(-50%, -48%) scale(0.96);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-dialog-in {
|
|
|
|
|
animation: dialog-in var(--duration-normal) var(--ease-out) forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-dialog-out {
|
|
|
|
|
animation: dialog-out 150ms var(--ease-out) forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Check pop animation for validation success */
|
|
|
|
|
@keyframes check-pop {
|
|
|
|
|
0% {
|
|
|
|
|
transform: scale(0.8);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
50% {
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
transform: scale(1);
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.animate-check-pop {
|
|
|
|
|
animation: check-pop 0.25s var(--ease-spring) forwards;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Reduced motion support */
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
.animate-dialog-in,
|
|
|
|
|
.animate-dialog-out,
|
|
|
|
|
.animate-check-pop {
|
|
|
|
|
animation: none;
|
|
|
|
|
}
|
|
|
|
|
}
|