body.dark { background: #1c1c1c !important; color: white !important; } body.dark .chat-container { background: #2b2b2b; color: white; } body.dark .chat-box { background: #333; border-color: #444; } body.dark .message.user { background: #4c6ef5; color: white; } body.dark .message.bot { background: #555; color: white; } body.dark #sendBtn { background: #4c6ef5; } body.dark #themeToggle { color: white; border-color: white; } /* Loading Animation */ .loading { display: flex; justify-content: center; margin: 10px 0; } .spinner { width: 30px; height: 30px; border: 4px solid #ccc; border-top: 4px solid #007bff; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Doctor Avatar + Bottom Bar */ .bottom-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .doctor-avatar { width: 40px; height: 40px; border-radius: 50%; } body { background: linear-gradient(135deg, #5a8dee, #6ed3cf); font-family: 'Poppins', sans-serif; margin: 0; padding: 20px; display: flex; justify-content: center; align-items: center; height: 100vh; } .chat-container { background: #ffffff; width: 420px; border-radius: 20px; padding: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); animation: fadeIn 0.7s ease-in-out; } .header { text-align: center; margin-bottom: 20px; } .header .logo { width: 70px; margin-bottom: 10px; } .header h2 { margin: 0; font-weight: 600; color: #333; } .header p { font-size: 14px; color: #666; } .chat-box { height: 360px; overflow-y: auto; border-radius: 10px; padding: 10px; background: #f7f9fc; margin-bottom: 15px; border: 1px solid #e5e5e5; } .message { padding: 10px; margin-bottom: 10px; border-radius: 10px; max-width: 85%; animation: slideIn 0.4s ease-in-out; } .message.user { background: #d1e8ff; align-self: flex-end; text-align: right; } .message.bot { background: #e6e6e6; text-align: left; } .input-area textarea { border-radius: 10px; resize: none; border: 1px solid #bcd; } #sendBtn { border-radius: 10px; font-weight: 600; padding: 10px; background: #0066ff; } #sendBtn:hover { background: #004ecc; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } to { opacity: 1; transform: translateX(0); }