/* Основные стили (как у вас были) */ body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #1e1e2f, #2a2a40); height: 100vh; display: flex; justify-content: center; align-items: center; color: #fff; } .chat-container { width: 500px; background: #2a2a40; border-radius: 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; } .chat-title { text-align: center; font-size: 1.5rem; color: #fff; padding: 16px; background: linear-gradient(90deg, #4a4ae8, #3b3b98); margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .chat-box { flex: 1; padding: 16px; overflow-y: auto; background: #1e1e2f; display: flex; flex-direction: column; gap: 12px; max-height: 400px; } .message { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; animation: fadeIn 0.3s ease-in-out; } .user-message { background: linear-gradient(90deg, #4a4ae8, #3b3b98); color: white; align-self: flex-end; border-bottom-right-radius: 0; } .bot-message { background: #333; color: #fff; align-self: flex-start; border-bottom-left-radius: 0; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .input-container { padding: 12px; background: #2a2a40; border-top: 1px solid rgba(255, 255, 255, 0.1); } .input-group { display: flex; gap: 8px; } .chat-input { flex: 1; padding: 12px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px; font-size: 0.9rem; background: #1e1e2f; color: #fff; } .chat-input:focus { border-color: #4a4ae8; outline: none; } .send-btn { padding: 12px 20px; background: linear-gradient(90deg, #4a4ae8, #3b3b98); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 0.9rem; } /* Стили для аудио элементов */ .audio-controls { display: flex; align-items: center; gap: 10px; padding: 12px; background: #2a2a40; border-top: 1px solid rgba(255, 255, 255, 0.1); } .audio-btn { padding: 10px 15px; background: linear-gradient(90deg, #4a4ae8, #3b3b98); color: white; border: none; border-radius: 8px; cursor: pointer; } .audio-btn:disabled { background: #555; cursor: not-allowed; } #waveform { flex-grow: 1; height: 60px; background: #1e1e2f; border-radius: 8px; } .file-upload { display: flex; gap: 10px; align-items: center; margin-top: 10px; } .file-upload input[type="file"] { flex: 1; }