body { margin: 0; font-family: Arial, sans-serif; background: #f5f7fb; color: #172033; }
header { background: #121826; color: white; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; }
header h1 { margin: 0; font-size: 20px; } nav a { color: white; margin-left: 14px; text-decoration: none; }
.container, .chat-container { max-width: 980px; margin: 24px auto; padding: 0 16px; }
.search { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search input, .search select, .conversation-meta input { padding: 12px; border: 1px solid #d7dce8; border-radius: 8px; background: white; }
.search input { flex: 1; min-width: 260px; } .search select { min-width: 220px; } .clear-link { align-self: center; text-decoration: none; color: #1f6feb; }
button { padding: 11px 14px; border: 0; border-radius: 8px; background: #1f6feb; color: white; cursor: pointer; } button:disabled { background: #98a2b3; cursor: not-allowed; }
.list { display: grid; gap: 10px; } .conversation { background: white; border: 1px solid #e4e8f0; border-radius: 12px; padding: 14px; text-decoration: none; color: inherit; display: block; }
.conversation:hover { border-color: #1f6feb; } .conversation.needs-attention { border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(31,111,235,.10); }
.conversation div { display: flex; justify-content: space-between; gap: 12px; } .conversation span, small { color: #667085; } .conversation p { margin: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty, .flash, .conversation-meta { background: white; border-radius: 10px; padding: 14px; border: 1px solid #e4e8f0; } .conversation-meta { margin-bottom: 10px; } .conversation-meta form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .conversation-meta label { font-weight: bold; }
.flash { margin: 12px 0; border-color: #f2c94c; } .chat-box { background: white; border-radius: 14px; border: 1px solid #e4e8f0; height: 58vh; min-height: 420px; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.bubble { max-width: 72%; padding: 10px 12px; border-radius: 14px; line-height: 1.35; } .bubble.in { align-self: flex-start; background: #eef2f7; } .bubble.out { align-self: flex-end; background: #dbeafe; } .bubble small { display: block; margin-top: 6px; font-size: 11px; }
.reply { display: flex; gap: 8px; margin-top: 12px; } .reply textarea { flex: 1; padding: 12px; border: 1px solid #d7dce8; border-radius: 8px; resize: vertical; }
.status-form, .quick-replies, .toolbar { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .quick-replies button { background: #344054; } .toolbar { align-items: center; justify-content: space-between; margin-bottom: 10px; }
.status-dot { font-size: 13px; padding: 8px 10px; border-radius: 999px; } .status-dot.online { background: #dcfce7; color: #166534; } .status-dot.offline { background: #fee2e2; color: #991b1b; }
.pill { display: inline-block; min-width: 20px; padding: 2px 7px; margin-left: 8px; border-radius: 999px; font-size: 13px; text-align: center; background: #ef4444; color: white; }
.login-body { min-height: 100vh; display: grid; place-items: center; } .login-card { width: 360px; background: white; padding: 26px; border-radius: 16px; border: 1px solid #e4e8f0; } .login-card input { width: 100%; padding: 12px; margin: 6px 0 12px; box-sizing: border-box; border: 1px solid #d7dce8; border-radius: 8px; } .login-card button { width: 100%; }
