:root { --primary: #ff2d75; --primary-dark: #d4004e; --secondary: #000000; --text: #f8f8f8; --bg: #121212; --card-bg: #1e1e1e; --input-bg: #2a2a2a; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--bg); color: var(--text); height: 100vh; overflow: hidden; display: flex; flex-direction: column; } .container { display: flex; flex-direction: column; height: 100vh; position: relative; z-index: 1; } .particles { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; } .particle { position: absolute; background: var(--primary); border-radius: 50%; opacity: 0.15; filter: blur(20px); animation: float 30s linear infinite; } header { flex-shrink: 0; display: flex; align-items: center; padding: 5px; border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary); background: black; z-index: 2; } .logo-container { display: flex; align-items: center; gap: 11px; } .logo { height: 40px; filter: drop-shadow(0 0 5px rgba(255, 45, 117, 0.5)); } .title { font-size: 25px; font-weight: bold; background: linear-gradient(45deg, var(--primary), #ff6b9d); -webkit-background-clip: text; color: transparent; } .chat-container { flex: 1; display: flex; flex-direction: column; background-color: black; overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; } .message { max-width: 80%; padding: 10px; border-radius: 15px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); animation: fadeInUp 0.3s ease-out; position: relative; width: fit-content; } .user-message { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 5px; margin-left: auto; } .ai-message { align-self: flex-start; background: black; color: white; border-bottom-left-radius: 5px; border: 1px solid var(--primary); padding-right: 35px; margin-right: auto; } .ai-message:first-child .copy-btn { display: none; } .message-time { font-size: 10px; text-align: right; opacity: 0.7; margin-top: 1px; } .typing-loading-wrap { display: flex; flex-direction: column; padding: 5px 15px; gap: 6px; background-color: #00000022; } .typing-indicator { display: none; align-self: flex-start; background: black; box-shadow: 0 3px 10px rgba(255, 45, 117, 0.2); border-radius: 15px; padding: 8px 15px; font-size: 15px; color: var(--text); font-weight: 500; border: 1px solid var(--primary); } .typing-indicator span { display: inline-block; width: 10px; height: 10px; margin-left: 5px; background-color: var(--primary); border-radius: 50%; animation: pulse 1s infinite ease-in-out; } .typing-indicator span:nth-child(2) { animation-delay: 0.2s; } .typing-indicator span:nth-child(3) { animation-delay: 0.4s; } .loading-container { display: none; justify-content: flex-start; padding: 2px; } .loading-dots .dot { width: 10px; height: 10px; background-color: var(--primary); border-radius: 50%; margin: 0 3px; animation: bounce 1.4s infinite ease-in-out; } .loading-dots .dot:nth-child(2) { animation-delay: -0.2s; } .loading-dots .dot:nth-child(3) { animation-delay: -0.4s; } .chat-input-container { flex-shrink: 0; display: flex; padding: 10px; gap: 10px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.1); } .chat-input { flex: 1; padding: 12px; border-radius: 50px; background: black; color: var(--text); border: 1px solid var(--primary); font-size: 16px; outline: none; } .send-button { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(45deg, var(--primary), var(--primary-dark)); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; } .send-button:hover { transform: scale(1.05); } .copy-btn { position: absolute; right: 8px; top: 8px; background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: pointer; font-size: 14px; opacity: 0.7; transition: all 0.2s; z-index: 2; } .copy-btn:hover { opacity: 1; background: rgba(255, 45, 117, 0.5); color: white; } .code-block-container { position: relative; margin: 8px 0; border-radius: 6px; overflow: hidden; } .code-copy-btn { position: absolute; right: 8px; top: 8px; background: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: pointer; font-size: 14px; opacity: 0; transition: all 0.2s; z-index: 2; } .code-block-container:hover .code-copy-btn { opacity: 0.7; } .code-copy-btn:hover { opacity: 1 !important; background: rgba(255, 45, 117, 0.5); color: white; } .message-content { line-height: 1.5; word-break: break-word; white-space: pre-wrap; padding-right: 10px; position: relative; z-index: 1; color: var(--text); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; } .message-content p:empty { display: none; height: 0; margin: 0; padding: 0; } .message-content p { margin: 6px 0; line-height: 1.5; min-height: 0; } .message-content h1, .message-content h2, .message-content h3, .message-content h4 { color: var(--primary); margin: 8px 0 4px; font-weight: bold; line-height: 1.3; page-break-after: avoid; } .message-content h1 { font-size: 1.5em; } .message-content h2 { font-size: 1.3em; } .message-content h3 { font-size: 1.1em; } .message-content h4 { font-size: 1em; } .message-content ul, .message-content ol { margin: 6px 0; padding-left: 20px; } .message-content li { margin-bottom: 4px; line-height: 1.4; } .message-content blockquote { border-left: 3px solid var(--primary); padding-left: 12px; color: #ccc; margin: 8px 0; font-style: italic; } .message-content pre { background: #1e1e1e; border-radius: 6px; overflow-x: auto; margin: 8px 0; padding: 12px; position: relative; } .message-content code { background: transparent; padding: 0; border-radius: 0; font-family: 'Fira Code', 'Courier New', Courier, monospace; font-size: 0.9em; color: #00f0ff; } .message-content pre code { color: #00f0ff; display: block; overflow-x: auto; line-height: 1.5; } .message-content :not(pre)>code { padding: 2px 4px; background: rgba(255, 45, 117, 0.15); border-radius: 3px; } .message-content em { font-style: italic; } .message-content strong { font-weight: bold; color: var(--primary); } .typing-cursor { display: inline-block; width: 8px; height: 16px; background-color: var(--primary); animation: blink-caret 0.75s step-end infinite; vertical-align: middle; margin-left: 2px; } @keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } @keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes float { 0% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(50px, 50px) rotate(90deg); } 50% { transform: translate(100px, 0) rotate(180deg); } 75% { transform: translate(50px, -50px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } } @keyframes blink-caret { from, to { opacity: 0; } 50% { opacity: 1; } }