/* --- START OF FINAL style.css CODE --- */
body { font-family: sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: #f0f2f5; margin: 0; padding: 10px; box-sizing: border-box; }
#chat-container { display: flex; flex-direction: column; width: 100%; max-width: 700px; height: 85vh; max-height: 800px; background-color: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); overflow: hidden; }
h1 { text-align: center; color: #333; margin: 0; padding: 15px 20px; background-color: #eee; border-bottom: 1px solid #ddd; font-size: 1.2em; }
#chat-output { flex-grow: 1; overflow-y: auto; padding: 15px; background-color: #fff; display: flex; flex-direction: column; gap: 10px; }
#chat-output p { margin: 0; padding: 10px 15px; border-radius: 18px; max-width: 80%; line-height: 1.4; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.user-message { background-color: #dcf8c6; align-self: flex-end; text-align: left; border-bottom-right-radius: 5px; }
.bot-message { background-color: #e5e5ea; align-self: flex-start; text-align: left; border-bottom-left-radius: 5px; }
.error-message { background-color: #f8d7da; color: #721c24; align-self: center; text-align: center; font-weight: bold; width: 90%; max-width: initial; }
#input-area { display: flex; border-top: 1px solid #ddd; padding: 10px 15px; background-color: #f8f8f8; align-items: center; }
#user-input { flex-grow: 1; padding: 12px 15px; border: 1px solid #ccc; border-radius: 20px; margin-right: 10px; font-size: 1em; resize: none; }
#send-button { padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 20px; cursor: pointer; font-size: 1em; transition: background-color 0.2s; flex-shrink: 0; }
#send-button:hover { background-color: #0056b3; }
#send-button:disabled { background-color: #cccccc; cursor: not-allowed; }
#status-area { font-size: 0.9em; color: #666; min-height: 1.2em; padding: 0 15px 5px; text-align: center; background-color: #f8f8f8; }
#chat-output::-webkit-scrollbar { width: 6px; }
#chat-output::-webkit-scrollbar-track { background: #f1f1f1; }
#chat-output::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px;}
#chat-output::-webkit-scrollbar-thumb:hover { background: #aaa; }
/* --- END OF FINAL style.css CODE --- */