/* Admin additions (Filament has no build step here, so plain CSS). */

/* Conversations: list on the left, chat thread on the right. */
.hc-chat { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 190px); min-height: 520px; }
@media (max-width: 900px) { .hc-chat { grid-template-columns: 1fr; height: auto; } .hc-list { max-height: 260px; } .hc-thread { height: 75vh; } }
.hc-list, .hc-thread { background: #fff; border: 1px solid rgb(229 231 235); border-radius: 12px; overflow: hidden; }
.hc-list { overflow-y: auto; }
.hc-search { width: 100%; border: 0; border-bottom: 1px solid rgb(229 231 235); padding: 12px 14px; font-size: 14px; outline: none; }
.hc-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid rgb(243 244 246); background: none; cursor: pointer; }
.hc-item:hover { background: rgb(249 250 251); }
.hc-item.is-active { background: rgb(255 251 235); box-shadow: inset 3px 0 0 rgb(245 158 11); }
.hc-item-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-item-time { font-size: 12px; color: rgb(107 114 128); }
.hc-item-preview { grid-column: 1 / -1; font-size: 13px; color: rgb(75 85 99); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-empty { padding: 24px; color: rgb(107 114 128); font-size: 14px; }

.hc-thread { display: flex; flex-direction: column; }
.hc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgb(229 231 235); }
.hc-head-name { font-weight: 600; display: block; }
.hc-head-name:hover { text-decoration: underline; }
.hc-head-meta { font-size: 13px; color: rgb(107 114 128); }
.hc-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: rgb(249 250 251); }
.hc-row { display: flex; flex-direction: column; max-width: 75%; }
.hc-row.in { align-self: flex-start; align-items: flex-start; }
.hc-row.out { align-self: flex-end; align-items: flex-end; }
.hc-bubble { padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.hc-row.in .hc-bubble { background: #fff; border: 1px solid rgb(229 231 235); border-bottom-left-radius: 4px; }
.hc-row.out .hc-bubble { background: rgb(8 125 140); color: #fff; border-bottom-right-radius: 4px; }
.hc-row.out .hc-bubble.email { background: rgb(16 45 77); }
.hc-subject { display: block; font-weight: 600; margin-bottom: 4px; }
.hc-media { display: block; text-decoration: underline; margin-top: 4px; }
.hc-meta { font-size: 11px; color: rgb(107 114 128); margin-top: 3px; }
.hc-error { color: rgb(185 28 28); font-size: 12px; display: block; }
.hc-call { align-self: center; text-align: center; background: #fff; border: 1px solid rgb(229 231 235); border-radius: 12px; padding: 8px 14px; font-size: 13px; max-width: 90%; }
.hc-call.missed { border-color: rgb(252 165 165); background: rgb(254 242 242); }
.hc-call audio { margin: 6px auto 0; height: 34px; max-width: 100%; }
.hc-transcript { font-style: italic; color: rgb(75 85 99); margin-top: 4px; }
.hc-note { align-self: center; font-size: 12px; color: rgb(107 114 128); text-align: center; max-width: 90%; }
.hc-compose { border-top: 1px solid rgb(229 231 235); padding: 10px 12px; display: grid; gap: 8px; }
.hc-compose-top { display: flex; gap: 8px; }
.hc-compose select, .hc-compose input, .hc-compose textarea { border: 1px solid rgb(209 213 219); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.hc-compose input { flex: 1; }
.hc-compose textarea { width: 100%; resize: vertical; }
.hc-compose-actions { display: flex; justify-content: space-between; align-items: center; }
.hc-hint { font-size: 12px; color: rgb(156 163 175); }
