Spaces:
Sleeping
Sleeping
| @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap'); | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --primary: #7c3aed; | |
| --primary-light: #a78bfa; | |
| --primary-dark: #5b21b6; | |
| --secondary: #f59e0b; | |
| --bg-deep: #0f0a1e; | |
| --bg-card: rgba(26, 17, 52, 0.85); | |
| --bg-message: rgba(49, 32, 95, 0.7); | |
| --border: rgba(167, 139, 250, 0.15); | |
| --text-primary: #f5f3ff; | |
| --text-muted: #a78bfa; | |
| --user-gradient: linear-gradient(135deg, #7c3aed, #a855f7); | |
| --accent-glow: rgba(124, 58, 237, 0.4); | |
| } | |
| body, html { | |
| height: 100%; | |
| font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; | |
| background: var(--bg-deep); | |
| color: var(--text-primary); | |
| overflow: hidden; | |
| } | |
| /* Animated background */ | |
| body::before { | |
| content: ''; | |
| position: fixed; | |
| top: -50%; | |
| left: -50%; | |
| width: 200%; | |
| height: 200%; | |
| background: | |
| radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%), | |
| radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%), | |
| radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%); | |
| z-index: -1; | |
| animation: bgPulse 8s ease-in-out infinite alternate; | |
| } | |
| @keyframes bgPulse { | |
| 0% { transform: scale(1) rotate(0deg); } | |
| 100% { transform: scale(1.05) rotate(2deg); } | |
| } | |
| /* Floating particles */ | |
| body::after { | |
| content: 'π π βοΈ π« π'; | |
| position: fixed; | |
| top: 5%; | |
| right: 3%; | |
| font-size: 1.2rem; | |
| opacity: 0.08; | |
| letter-spacing: 8px; | |
| writing-mode: vertical-rl; | |
| z-index: -1; | |
| } | |
| .chat-container { | |
| display: flex; | |
| flex-direction: column; | |
| max-width: 820px; | |
| height: 92vh; | |
| margin: 4vh auto; | |
| background: var(--bg-card); | |
| border-radius: 24px; | |
| box-shadow: | |
| 0 32px 64px -12px rgba(0, 0, 0, 0.6), | |
| 0 0 0 1px var(--border), | |
| inset 0 1px 0 rgba(167, 139, 250, 0.1); | |
| backdrop-filter: blur(20px); | |
| overflow: hidden; | |
| } | |
| /* βββ HEADER βββββββββββββββββββββββββββββββ */ | |
| .chat-header { | |
| padding: 18px 28px; | |
| background: linear-gradient(135deg, rgba(91, 33, 182, 0.6), rgba(124, 58, 237, 0.4)); | |
| border-bottom: 1px solid var(--border); | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .chat-header::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; left: 0; right: 0; bottom: 0; | |
| background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a78bfa' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); | |
| opacity: 0.5; | |
| } | |
| .bot-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| position: relative; | |
| } | |
| .avatar-container { | |
| position: relative; | |
| } | |
| .bot-avatar { | |
| width: 52px; | |
| height: 52px; | |
| border-radius: 16px; | |
| object-fit: cover; | |
| background: linear-gradient(135deg, #7c3aed, #a855f7); | |
| padding: 6px; | |
| box-shadow: 0 0 20px var(--accent-glow), 0 0 0 2px rgba(167, 139, 250, 0.3); | |
| } | |
| .avatar { | |
| width: 38px; | |
| height: 38px; | |
| border-radius: 12px; | |
| object-fit: cover; | |
| background: linear-gradient(135deg, #7c3aed, #a855f7); | |
| padding: 4px; | |
| flex-shrink: 0; | |
| } | |
| .user-message .avatar { | |
| background: linear-gradient(135deg, #f59e0b, #fbbf24); | |
| padding: 3px; | |
| } | |
| .status-indicator { | |
| position: absolute; | |
| bottom: -2px; | |
| right: -2px; | |
| width: 14px; | |
| height: 14px; | |
| background: #10b981; | |
| border-radius: 50%; | |
| border: 2px solid #0f0a1e; | |
| box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); | |
| animation: pulse-status 2s ease-in-out infinite; | |
| } | |
| @keyframes pulse-status { | |
| 0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); } | |
| 50% { box-shadow: 0 0 16px rgba(16, 185, 129, 1); } | |
| } | |
| .text-info h1 { | |
| font-size: 1.2rem; | |
| font-weight: 700; | |
| color: #f5f3ff; | |
| letter-spacing: 0.3px; | |
| margin-bottom: 3px; | |
| } | |
| .text-info p { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| font-weight: 500; | |
| } | |
| /* Header badge */ | |
| .header-badge { | |
| background: rgba(245, 158, 11, 0.15); | |
| border: 1px solid rgba(245, 158, 11, 0.3); | |
| color: #fbbf24; | |
| font-size: 0.72rem; | |
| font-weight: 600; | |
| padding: 5px 12px; | |
| border-radius: 20px; | |
| letter-spacing: 0.5px; | |
| text-transform: uppercase; | |
| } | |
| /* βββ CHAT BOX βββββββββββββββββββββββββββββββ */ | |
| .chat-box { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 28px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 18px; | |
| scroll-behavior: smooth; | |
| } | |
| .chat-box::-webkit-scrollbar { width: 6px; } | |
| .chat-box::-webkit-scrollbar-track { background: transparent; } | |
| .chat-box::-webkit-scrollbar-thumb { | |
| background: rgba(167, 139, 250, 0.2); | |
| border-radius: 4px; | |
| } | |
| .chat-box::-webkit-scrollbar-thumb:hover { | |
| background: rgba(167, 139, 250, 0.4); | |
| } | |
| /* βββ MESSAGES βββββββββββββββββββββββββββββββ */ | |
| .message { | |
| display: flex; | |
| gap: 12px; | |
| max-width: 82%; | |
| align-items: flex-end; | |
| } | |
| .user-message { align-self: flex-end; } | |
| .bot-message { align-self: flex-start; } | |
| .message-content { | |
| padding: 14px 18px; | |
| border-radius: 18px; | |
| font-size: 0.93rem; | |
| line-height: 1.6; | |
| position: relative; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); | |
| } | |
| .bot-message .message-content { | |
| background: var(--bg-message); | |
| color: #ede9fe; | |
| border-bottom-left-radius: 4px; | |
| border: 1px solid var(--border); | |
| } | |
| .user-message .message-content { | |
| background: var(--user-gradient); | |
| color: #ffffff; | |
| border-bottom-right-radius: 4px; | |
| box-shadow: 0 4px 20px var(--accent-glow); | |
| } | |
| .error-message .message-content { | |
| background: rgba(239, 68, 68, 0.15); | |
| border: 1px solid rgba(239, 68, 68, 0.35); | |
| color: #fca5a5; | |
| } | |
| .time { | |
| display: block; | |
| font-size: 0.68rem; | |
| margin-top: 7px; | |
| opacity: 0.6; | |
| text-align: right; | |
| font-weight: 500; | |
| } | |
| /* βββ FOOTER / INPUT βββββββββββββββββββββββββββ */ | |
| .chat-footer { | |
| padding: 18px 28px 22px; | |
| background: rgba(91, 33, 182, 0.12); | |
| border-top: 1px solid var(--border); | |
| } | |
| .input-form { | |
| display: flex; | |
| gap: 12px; | |
| background: rgba(167, 139, 250, 0.07); | |
| border: 1.5px solid rgba(167, 139, 250, 0.2); | |
| border-radius: 32px; | |
| padding: 8px 8px 8px 22px; | |
| transition: all 0.3s ease; | |
| } | |
| .input-form:focus-within { | |
| border-color: rgba(167, 139, 250, 0.6); | |
| background: rgba(167, 139, 250, 0.1); | |
| box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12); | |
| } | |
| .input-form input { | |
| flex: 1; | |
| background: transparent; | |
| border: none; | |
| color: #f5f3ff; | |
| font-size: 0.95rem; | |
| outline: none; | |
| font-family: inherit; | |
| font-weight: 500; | |
| } | |
| .input-form input::placeholder { color: #6d5cae; } | |
| .input-form button { | |
| background: var(--user-gradient); | |
| border: none; | |
| border-radius: 50%; | |
| width: 46px; | |
| height: 46px; | |
| color: white; | |
| font-size: 1rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: transform 0.2s ease, box-shadow 0.2s ease; | |
| flex-shrink: 0; | |
| box-shadow: 0 4px 12px var(--accent-glow); | |
| } | |
| .input-form button:hover { | |
| transform: scale(1.08); | |
| box-shadow: 0 6px 20px var(--accent-glow); | |
| } | |
| .input-form button:active { transform: scale(0.94); } | |
| /* βββ ANIMATIONS βββββββββββββββββββββββββββββββ */ | |
| @keyframes slideIn { | |
| from { opacity: 0; transform: translateY(16px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .slide-in { animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; } | |
| .intro-animation { | |
| animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; | |
| animation-delay: 0.2s; | |
| } | |
| /* βββ TYPING INDICATOR βββββββββββββββββββββββββββ */ | |
| .typing-dots { | |
| display: flex; | |
| gap: 5px; | |
| padding: 4px 6px; | |
| } | |
| .typing-dots span { | |
| width: 8px; | |
| height: 8px; | |
| background: var(--primary-light); | |
| border-radius: 50%; | |
| animation: blink 1.4s infinite both; | |
| } | |
| .typing-dots span:nth-child(1) { animation-delay: 0.2s; } | |
| .typing-dots span:nth-child(2) { animation-delay: 0.4s; } | |
| .typing-dots span:nth-child(3) { animation-delay: 0.6s; } | |
| @keyframes blink { | |
| 0% { opacity: 0.2; transform: scale(0.8) translateY(0); } | |
| 40% { opacity: 1; transform: scale(1.1) translateY(-3px); } | |
| 100% { opacity: 0.2; transform: scale(0.8) translateY(0); } | |
| } | |
| /* βββ RESPONSIVE βββββββββββββββββββββββββββββββ */ | |
| @media (max-width: 768px) { | |
| .chat-container { | |
| margin: 0; | |
| height: 100vh; | |
| border-radius: 0; | |
| max-width: 100%; | |
| } | |
| .header-badge { display: none; } | |
| } |