<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport"…
- User
/* Outer container block (static) */ .outer-container { width: 320px; padding: 20px; background-color: #fff; border: 1px solid #ddd; border-radius: 12px; box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; gap: 15px; }
/* Chat input area */ .chat-input { width: 100%; display: flex; align-items: center; background-color: #f0f0f0; border-radius: 8px; padding: 10px; box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.1); }
.chat-input input { width: 100%; border: none; outline: none; background: transparent; font-size: 1em; color: #333; }
/* Submit button (expandable block) */ .submit-button { width: 100%; height: 50px; background-color: #4CAF50; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: white; font-size: 1em; cursor: pointer; transition: all 0.3s ease; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden; }
.submit-button.expanded { height: 80px; box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); }
/* Hide text when expanded */ .submit-button.expanded .button-text { display: none; }
/* Loading bar container / .loading-bar-container { width: 80%; height: 8px; background-color: #ddd; border-radius: 10px; overflow: hidden; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; / Hidden by default */ }
/* Loading bar / .loading-bar { width: 0; height: 100%; background-color: #ffffff; transition: width 2s ease; / Animation duration */ }
/* Show loading bar when expanded */ .submit-button.expanded .loading-bar-container { display: block; }
Make it beautiful
- Assistant