| @tailwind base; |
| @tailwind components; |
| @tailwind utilities; |
|
|
| @layer base { |
| |
| :root { |
| --bg: #FAF9F7; |
| --surface: #FFFFFF; |
| --surface2: #F5F4F0; |
| --surface3: #ECEAE4; |
| --border: rgba(0,0,0,0.12); |
| --border-strong: rgba(0,0,0,0.22); |
| --text: #1A1A1A; |
| --text2: #666560; |
| --text3: #999791; |
| --accent: #D97449; |
| --accent-hover: #C4623D; |
| --accent-text: #FFFFFF; |
| --success: #2D7D52; |
| --success-bg: #F0FAF4; |
| --warning: #B5620A; |
| --warning-bg: #FFF8F0; |
| --error: #C0392B; |
| --error-bg: #FFF0EE; |
| --code-bg: #F0EDE8; |
| --shadow: 0 1px 3px rgba(0,0,0,0.08); |
| } |
|
|
| |
| [data-theme="dark"] { |
| --bg: #1A1917; |
| --surface: #242220; |
| --surface2: #2E2C29; |
| --surface3: #393733; |
| --border: rgba(255,255,255,0.10); |
| --border-strong: rgba(255,255,255,0.18); |
| --text: #E8E6E1; |
| --text2: #9B9891; |
| --text3: #6B6965; |
| --accent: #E8855A; |
| --accent-hover: #D9724A; |
| --accent-text: #FFFFFF; |
| --success: #4CAF80; |
| --success-bg: #0F2D1E; |
| --warning: #E8A030; |
| --warning-bg: #2A1F0A; |
| --error: #E05555; |
| --error-bg: #2A0F0F; |
| --code-bg: #161513; |
| --shadow: 0 1px 3px rgba(0,0,0,0.30); |
| } |
|
|
| * { |
| box-sizing: border-box; |
| } |
|
|
| html { |
| scroll-behavior: smooth; |
| } |
|
|
| body { |
| min-height: 100vh; |
| background-color: var(--bg); |
| color: var(--text); |
| font-family: 'Inter', system-ui, sans-serif; |
| transition: background-color 0.35s ease, color 0.35s ease; |
| } |
|
|
| |
| * { |
| transition: background-color 0.35s ease, color 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease; |
| } |
| |
| input, textarea, button, a, [class*="nav-"], [class*="btn-"], canvas { |
| transition: none; |
| } |
|
|
| ::-webkit-scrollbar { |
| width: 6px; |
| height: 6px; |
| } |
|
|
| ::-webkit-scrollbar-track { |
| background: var(--surface2); |
| } |
|
|
| ::-webkit-scrollbar-thumb { |
| background: var(--surface3); |
| border-radius: 3px; |
| } |
|
|
| ::-webkit-scrollbar-thumb:hover { |
| background: var(--accent); |
| } |
| } |
|
|
| |
| |
| |
| |
| .glitch { |
| position: relative; |
| display: inline-block; |
| font-family: 'Courier New', monospace; |
| font-weight: 900; |
| letter-spacing: 0.15em; |
| color: var(--text, var(--fg)); |
| } |
| .glitch::before, |
| .glitch::after { |
| content: attr(data-text); |
| position: absolute; |
| top: 0; |
| left: 0; |
| width: 100%; |
| height: 100%; |
| pointer-events: none; |
| } |
| .glitch::before { |
| color: var(--text, var(--fg)); |
| animation: glitch-1 3s infinite linear alternate-reverse; |
| clip-path: inset(0 0 65% 0); |
| text-shadow: -2px 0 rgba(255, 0, 0, 0.35); |
| } |
| .glitch::after { |
| color: var(--text, var(--fg)); |
| animation: glitch-2 2.5s infinite linear alternate-reverse; |
| clip-path: inset(65% 0 0 0); |
| text-shadow: 2px 0 rgba(0, 0, 255, 0.35); |
| } |
| @keyframes glitch-1 { |
| 0%, 100% { clip-path: inset(0 0 65% 0); transform: translate(0); } |
| 20% { clip-path: inset(10% 0 55% 0); transform: translate(-3px, 1px); } |
| 40% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); } |
| 60% { clip-path: inset(5% 0 70% 0); transform: translate(-1px, 2px); } |
| 80% { clip-path: inset(20% 0 50% 0); transform: translate(3px, 0); } |
| } |
| @keyframes glitch-2 { |
| 0%, 100% { clip-path: inset(65% 0 0 0); transform: translate(0); } |
| 25% { clip-path: inset(50% 0 10% 0); transform: translate(2px, -2px); } |
| 50% { clip-path: inset(70% 0 5% 0); transform: translate(-3px, 1px); } |
| 75% { clip-path: inset(60% 0 15% 0); transform: translate(1px, 2px); } |
| } |
|
|
| @layer components { |
| .btn-primary { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| padding: 8px 16px; |
| background: var(--accent); |
| color: var(--accent-text); |
| font-size: 14px; |
| font-weight: 600; |
| border-radius: 8px; |
| border: none; |
| cursor: pointer; |
| transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; |
| box-shadow: 0 1px 3px rgba(0,0,0,0.15); |
| text-decoration: none; |
| } |
|
|
| .btn-primary:hover:not(:disabled) { |
| background: var(--accent-hover); |
| box-shadow: 0 2px 6px rgba(0,0,0,0.2); |
| } |
|
|
| .btn-primary:active:not(:disabled) { |
| transform: scale(0.98); |
| } |
|
|
| .btn-primary:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| .btn-secondary { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| padding: 8px 16px; |
| background: var(--surface2); |
| color: var(--text); |
| font-size: 14px; |
| font-weight: 500; |
| border-radius: 8px; |
| border: 1px solid var(--border); |
| cursor: pointer; |
| transition: background 0.15s ease, border-color 0.15s ease; |
| text-decoration: none; |
| } |
|
|
| .btn-secondary:hover:not(:disabled) { |
| background: var(--surface3); |
| border-color: var(--border-strong); |
| } |
|
|
| .btn-secondary:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| .btn-danger { |
| display: inline-flex; |
| align-items: center; |
| justify-content: center; |
| gap: 6px; |
| padding: 8px 16px; |
| background: var(--error-bg); |
| color: var(--error); |
| font-size: 14px; |
| font-weight: 600; |
| border-radius: 8px; |
| border: 1px solid var(--error); |
| cursor: pointer; |
| transition: background 0.15s ease; |
| } |
|
|
| .btn-danger:hover:not(:disabled) { |
| background: var(--error); |
| color: #fff; |
| } |
|
|
| .card { |
| background: var(--surface); |
| border: 1px solid var(--border); |
| border-radius: 12px; |
| padding: 16px; |
| box-shadow: var(--shadow); |
| } |
|
|
| .card-glow { |
| background: var(--surface); |
| border: 1px solid var(--border-strong); |
| border-radius: 12px; |
| padding: 16px; |
| box-shadow: var(--shadow), 0 0 20px rgba(217,116,73,0.08); |
| } |
|
|
| .input-field { |
| width: 100%; |
| background: var(--surface2); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| padding: 8px 12px; |
| color: var(--text); |
| font-size: 14px; |
| outline: none; |
| transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| } |
|
|
| .input-field::placeholder { |
| color: var(--text3); |
| } |
|
|
| .input-field:focus { |
| border-color: var(--accent); |
| box-shadow: 0 0 0 3px rgba(217,116,73,0.15); |
| } |
|
|
| .label { |
| display: block; |
| font-size: 13px; |
| font-weight: 500; |
| color: var(--text2); |
| margin-bottom: 4px; |
| } |
|
|
| .badge { |
| display: inline-flex; |
| align-items: center; |
| padding: 2px 8px; |
| border-radius: 999px; |
| font-size: 11px; |
| font-weight: 600; |
| letter-spacing: 0.02em; |
| } |
|
|
| .badge-blue { |
| background: rgba(217,116,73,0.12); |
| color: var(--accent); |
| } |
|
|
| .badge-green { |
| background: var(--success-bg); |
| color: var(--success); |
| } |
|
|
| .badge-yellow { |
| background: var(--warning-bg); |
| color: var(--warning); |
| } |
|
|
| .badge-red { |
| background: var(--error-bg); |
| color: var(--error); |
| } |
|
|
| .badge-gray { |
| background: var(--surface3); |
| color: var(--text2); |
| } |
|
|
| .nav-link { |
| display: flex; |
| align-items: center; |
| gap: 10px; |
| padding: 7px 10px; |
| border-radius: 8px; |
| color: var(--text2); |
| font-size: 13px; |
| font-weight: 500; |
| text-decoration: none; |
| cursor: pointer; |
| background: none; |
| border: none; |
| transition: background 0.12s ease, color 0.12s ease; |
| white-space: nowrap; |
| } |
|
|
| .nav-link:hover { |
| background: var(--surface2); |
| color: var(--text); |
| } |
|
|
| .nav-link.active { |
| background: rgba(217,116,73,0.12); |
| color: var(--accent); |
| } |
|
|
| .stat-card { |
| background: var(--surface); |
| border: 1px solid var(--border); |
| border-radius: 12px; |
| padding: 16px; |
| display: flex; |
| flex-direction: column; |
| gap: 4px; |
| box-shadow: var(--shadow); |
| } |
|
|
| .typing-dot { |
| width: 6px; |
| height: 6px; |
| border-radius: 50%; |
| background: var(--accent); |
| animation: bounce 1s infinite; |
| } |
|
|
| .message-user { |
| background: rgba(217,116,73,0.10); |
| border: 1px solid rgba(217,116,73,0.20); |
| border-radius: 16px; |
| border-top-right-radius: 4px; |
| padding: 12px 16px; |
| max-width: 80%; |
| margin-left: auto; |
| color: var(--text); |
| } |
|
|
| .message-assistant { |
| background: var(--surface2); |
| border: 1px solid var(--border); |
| border-radius: 16px; |
| border-top-left-radius: 4px; |
| padding: 12px 16px; |
| max-width: 90%; |
| color: var(--text); |
| } |
|
|
| .code-block { |
| background: var(--code-bg); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| padding: 16px; |
| font-family: 'Fira Code', 'JetBrains Mono', monospace; |
| font-size: 13px; |
| overflow-x: auto; |
| color: var(--text); |
| } |
|
|
| pre code { |
| display: block; |
| background: var(--code-bg); |
| border: 1px solid var(--border); |
| border-radius: 8px; |
| padding: 16px; |
| font-family: 'Fira Code', 'JetBrains Mono', monospace; |
| font-size: 13px; |
| overflow-x: auto; |
| color: var(--text); |
| } |
| } |
|
|
| @layer utilities { |
| .text-gradient { |
| background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%); |
| -webkit-background-clip: text; |
| -webkit-text-fill-color: transparent; |
| background-clip: text; |
| } |
|
|
| .mac-glitch { |
| position: relative; |
| display: inline-block; |
| font-family: 'Fira Code', 'JetBrains Mono', monospace; |
| font-weight: 900; |
| letter-spacing: 0.12em; |
| color: var(--text); |
| } |
|
|
| .mac-glitch::before, |
| .mac-glitch::after { |
| content: attr(data-text); |
| position: absolute; |
| inset: 0; |
| pointer-events: none; |
| opacity: 0.65; |
| } |
|
|
| .mac-glitch::before { |
| color: var(--accent); |
| clip-path: inset(0 0 62% 0); |
| text-shadow: -2px 0 rgba(224, 85, 85, 0.42); |
| animation: macGlitchA 3.2s infinite linear alternate-reverse; |
| } |
|
|
| .mac-glitch::after { |
| color: var(--success); |
| clip-path: inset(58% 0 0 0); |
| text-shadow: 2px 0 rgba(58, 125, 68, 0.38); |
| animation: macGlitchB 2.7s infinite linear alternate-reverse; |
| } |
|
|
| @keyframes macGlitchA { |
| 0%, 100% { transform: translate(0); clip-path: inset(0 0 62% 0); } |
| 25% { transform: translate(-2px, 1px); clip-path: inset(12% 0 50% 0); } |
| 50% { transform: translate(2px, -1px); clip-path: inset(32% 0 38% 0); } |
| 75% { transform: translate(-1px, 2px); clip-path: inset(5% 0 70% 0); } |
| } |
|
|
| @keyframes macGlitchB { |
| 0%, 100% { transform: translate(0); clip-path: inset(58% 0 0 0); } |
| 30% { transform: translate(2px, -2px); clip-path: inset(48% 0 16% 0); } |
| 60% { transform: translate(-2px, 1px); clip-path: inset(68% 0 6% 0); } |
| } |
|
|
| .scrollbar-thin { |
| scrollbar-width: thin; |
| scrollbar-color: var(--surface3) var(--surface2); |
| } |
|
|
| .no-scrollbar { |
| scrollbar-width: none; |
| -ms-overflow-style: none; |
| } |
|
|
| .no-scrollbar::-webkit-scrollbar { |
| display: none; |
| } |
|
|
| .surface-raised { |
| background: var(--surface); |
| border: 1px solid var(--border); |
| box-shadow: var(--shadow); |
| } |
|
|
| .accent-ring:focus { |
| outline: none; |
| box-shadow: 0 0 0 3px rgba(217,116,73,0.25); |
| } |
| } |
|
|