* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #1a1a2e; height: 100vh; display: flex; align-items: center; justify-content: center; }
.chat-container { width: 100%; max-width: 900px; height: 95vh; background: #16213e; border-radius: 16px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.chat-header { background: #0f3460; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1a4080; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left i { font-size: 24px; color: #4fc3f7; }
.header-left h1 { font-size: 18px; color: #fff; font-weight: 600; }
.header-right { color: #81c784; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: #81c784; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: #2a4a7f; border-radius: 3px; }
.message { display: flex; gap: 10px; max-width: 85%; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.message.bot { align-self: flex-start; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-content { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.message.bot .message-content { background: #1e3a5f; color: #e0e0e0; border-bottom-left-radius: 4px; }
.message.user .message-content { background: #4fc3f7; color: #0a1628; border-bottom-right-radius: 4px; }
.message-content p { margin-bottom: 8px; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul { padding-left: 20px; margin: 8px 0; }
.message-content li { margin: 4px 0; }
.message-content code { background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.message-content pre { background: rgba(0,0,0,.3); padding: 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0; }
.quick-actions { padding: 8px 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.quick-actions button { background: #1e3a5f; border: 1px solid #2a4a7f; color: #4fc3f7; padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all .2s; }
.quick-actions button:hover { background: #2a4a7f; }
.chat-input { padding: 16px 20px; background: #0f3460; border-top: 1px solid #1a4080; }
.input-row { display: flex; gap: 10px; align-items: center; }
#caseId { width: 120px; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a4a7f; background: #1e3a5f; color: #fff; font-size: 13px; }
#messageInput { flex: 1; padding: 10px 16px; border-radius: 8px; border: 1px solid #2a4a7f; background: #1e3a5f; color: #fff; font-size: 14px; outline: none; }
#messageInput:focus, #caseId:focus { border-color: #4fc3f7; }
#messageInput::placeholder, #caseId::placeholder { color: #607d8b; }
#sendBtn { width: 42px; height: 42px; border-radius: 50%; border: none; background: #4fc3f7; color: #0a1628; cursor: pointer; font-size: 16px; transition: all .2s; }
#sendBtn:hover { background: #81d4fa; transform: scale(1.05); }
#sendBtn:disabled { opacity: .5; cursor: not-allowed; }
.typing { display: flex; gap: 4px; padding: 8px 12px; }
.typing span { width: 8px; height: 8px; background: #4fc3f7; border-radius: 50%; animation: typing 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }
@media (max-width: 768px) { .chat-container { height: 100vh; border-radius: 0; max-width: 100%; } #caseId { width: 80px; } }
