/* ══════════════════════════════════════════════════════════════
   CASEMATE SUPPORT BOT — Premium WhatsApp-style Admin UI
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --accent:        #cca245;
  --accent-h:      #e0b85c;
  --accent-dim:    rgba(204,162,69,0.14);
  --accent-glow:   rgba(204,162,69,0.25);
  --green:         #25d366;
  --green-dim:     rgba(37,211,102,0.15);
  --red:           #f85149;
  --red-dim:       rgba(248,81,73,0.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-msg:    18px;
  --trs:           0.2s ease;
}

[data-theme="dark"] {
  --bg:            #0b1117;
  --bg-2:          #111820;
  --surface:       #161d26;
  --surface-2:     #1e2733;
  --surface-3:     #26323f;
  --border:        #2d3848;
  --border-sub:    #1e2733;
  --text:          #e8edf3;
  --text-2:        #8a9ab0;
  --text-3:        #4d5f73;
  --msg-in-bg:     #1e2733;
  --msg-out-bg:    #1a2e1a;
  --msg-out-border:rgba(37,211,102,0.2);
  --shadow:        0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.7);
}

[data-theme="light"] {
  --bg:            #f0f2f5;
  --bg-2:          #e9ecef;
  --surface:       #ffffff;
  --surface-2:     #f7f8fa;
  --surface-3:     #edf0f4;
  --border:        #dde1e7;
  --border-sub:    #edf0f4;
  --text:          #111b21;
  --text-2:        #667781;
  --text-3:        #adb5bd;
  --msg-in-bg:     #ffffff;
  --msg-out-bg:    #d9fdd3;
  --msg-out-border:transparent;
  --shadow:        0 1px 4px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.15);
}

/* ── Reset ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { height:100%; -webkit-text-size-adjust:100%; }
body {
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:14px;
  line-height:1.5;
  background:var(--bg);
  color:var(--text);
  height:100vh;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
}
button { cursor:pointer; border:none; background:none; font-family:inherit; font-size:inherit; color:inherit; }
input,textarea { font-family:inherit; font-size:inherit; }
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; }

/* ── App shell ───────────────────────────────────────────────── */
.app-shell {
  display:flex;
  height:100vh;
  overflow:hidden;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  width:360px;
  min-width:360px;
  background:var(--surface);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:transform var(--trs);
  z-index:10;
}

/* Brand header */
.sidebar-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-icon {
  width:36px; height:36px;
  border-radius:50%;
  background:var(--accent-dim);
  border:1.5px solid var(--accent-glow);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
}
.brand-name {
  font-family:'Noto Serif',serif;
  font-size:18px;
  font-weight:600;
  color:var(--accent);
  letter-spacing:-0.02em;
}
.header-actions { display:flex; gap:4px; }

/* Tab bar */
.tab-bar {
  display:flex;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
}
.tab-btn {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  padding:10px 6px 8px;
  font-size:11px;
  font-weight:500;
  color:var(--text-2);
  border-bottom:2.5px solid transparent;
  transition:color var(--trs), border-color var(--trs);
  position:relative;
}
.tab-btn.active { color:var(--accent); border-bottom-color:var(--accent); }
.tab-btn:hover:not(.active) { color:var(--text); }
.tab-badge {
  position:absolute;
  top:6px; right:20%;
  background:var(--red);
  color:#fff;
  font-size:9px; font-weight:700;
  border-radius:99px;
  padding:1px 5px;
  min-width:16px;
  text-align:center;
}

/* Panel */
.sidebar-panel { display:none; flex-direction:column; flex:1; overflow:hidden; }
.sidebar-panel.active { display:flex; }
.panel-inner { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:14px; }
.panel-title { font-size:15px; font-weight:600; }
.panel-subtitle { font-size:12px; color:var(--text-2); line-height:1.6; }

/* Search bar */
.search-bar {
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border-sub);
  position:relative;
}
.search-icon { color:var(--text-3); flex-shrink:0; }
.search-input {
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:14px;
}
.search-input::placeholder { color:var(--text-3); }
.search-clear { color:var(--text-2); display:flex; align-items:center; }

/* Stats strip */
.stats-strip {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  font-size:11px;
  color:var(--text-2);
  background:var(--surface-2);
  border-bottom:1px solid var(--border-sub);
}
.stat-sep { color:var(--text-3); }
.mark-all-btn {
  margin-left:auto;
  font-size:11px;
  color:var(--accent);
  font-weight:500;
  padding:2px 6px;
  border-radius:4px;
}
.mark-all-btn:hover { background:var(--accent-dim); }

/* Contact list */
.contact-list { flex:1; overflow-y:auto; }
.contact-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  cursor:pointer;
  border-bottom:1px solid var(--border-sub);
  transition:background var(--trs);
  position:relative;
}
.contact-item:hover { background:var(--surface-2); }
.contact-item.active { background:var(--accent-dim); }
.contact-item:last-child { border-bottom:none; }

.contact-avatar {
  width:46px; height:46px;
  border-radius:50%;
  background:var(--surface-3);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:17px;
  color:var(--accent);
  flex-shrink:0;
  letter-spacing:-0.01em;
}
.contact-body { flex:1; min-width:0; }
.contact-row1 {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:6px;
  margin-bottom:3px;
}
.contact-name {
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}
.contact-time { font-size:11px; color:var(--text-2); flex-shrink:0; }
.contact-row2 { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.contact-preview {
  font-size:13px;
  color:var(--text-2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
}
.contact-preview.has-unread { font-weight:600; color:var(--text); }
.unread-pill {
  background:var(--accent);
  color:#fff;
  font-size:10px; font-weight:700;
  border-radius:99px;
  padding:2px 7px;
  min-width:20px;
  text-align:center;
  flex-shrink:0;
}

/* Empty / loading */
.loading-state {
  display:flex; align-items:center; justify-content:center;
  padding:48px; flex:1;
}
.spinner {
  width:28px; height:28px;
  border:2.5px solid var(--border);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.empty-hint {
  text-align:center;
  padding:48px 24px;
  color:var(--text-2);
  font-size:13px;
}

/* ══════════════════════════════════════════════════════════════
   CHAT AREA
   ══════════════════════════════════════════════════════════════ */
.chat-area {
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:var(--bg-2);
  position:relative;
}

/* Wallpaper pattern */
[data-theme="dark"] .chat-area {
  background-image:radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size:24px 24px;
}
[data-theme="light"] .chat-area {
  background-image:radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size:24px 24px;
}

/* Placeholder */
.chat-placeholder {
  flex:1; display:flex; align-items:center; justify-content:center;
}
.placeholder-inner {
  display:flex; flex-direction:column; align-items:center; gap:14px;
  text-align:center; padding:32px;
}
.placeholder-icon {
  width:100px; height:100px; border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-3);
  box-shadow:var(--shadow);
}
.placeholder-inner h2 { font-size:20px; font-weight:600; font-family:'Noto Serif',serif; color:var(--text-2); }
.placeholder-inner p { color:var(--text-3); font-size:13px; }

/* Chat window */
.chat-window {
  flex:1; display:flex; flex-direction:column; overflow:hidden;
}

/* Chat header */
.chat-header {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  min-height:60px;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
  z-index:2;
}
.back-btn { display:none; flex-shrink:0; }
.chat-avatar {
  width:40px; height:40px; border-radius:50%;
  background:var(--accent-dim);
  border:1.5px solid var(--accent-glow);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:15px; color:var(--accent);
  flex-shrink:0;
}
.chat-header-info { flex:1; min-width:0; }
.chat-name { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-phone { font-size:12px; color:var(--text-2); }
.chat-header-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }

/* AI toggle pill */
.ai-pill {
  display:flex; align-items:center; gap:6px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:99px;
  padding:4px 10px 4px 8px;
}
.ai-pill-label { font-size:10px; font-weight:700; letter-spacing:0.05em; color:var(--text-2); }
.toggle-switch { display:flex; align-items:center; position:relative; cursor:pointer; }
.toggle-switch input { display:none; }
.toggle-track {
  width:32px; height:18px;
  background:var(--surface-3);
  border-radius:99px;
  position:relative;
  transition:background var(--trs);
  border:1px solid var(--border);
}
.toggle-track::after {
  content:''; position:absolute;
  top:2px; left:2px;
  width:12px; height:12px; border-radius:50%;
  background:var(--text-3);
  transition:left 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-track { background:var(--green-dim); border-color:var(--green); }
.toggle-switch input:checked + .toggle-track::after { left:16px; background:var(--green); }

/* Msg search bar */
.msg-search-bar {
  display:flex; align-items:center; gap:8px;
  padding:8px 14px;
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
  animation:slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.msg-search-input {
  flex:1; background:transparent; border:none; outline:none;
  color:var(--text); font-size:14px;
}
.msg-search-input::placeholder { color:var(--text-3); }

/* Messages container */
.messages-container {
  flex:1; overflow-y:auto; padding:16px 12px;
  display:flex; flex-direction:column; gap:2px;
  scroll-behavior:smooth;
}

/* Date divider */
.date-divider {
  display:flex; align-items:center; justify-content:center;
  margin:10px 0;
}
.date-divider span {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:99px;
  padding:3px 14px;
  font-size:11px;
  color:var(--text-2);
  font-weight:500;
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}

/* Message bubbles */
.msg-row {
  display:flex;
  animation:bubbleIn 0.15s ease;
  margin-bottom:1px;
}
@keyframes bubbleIn { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }
.msg-row.inbound { justify-content:flex-start; }
.msg-row.outbound { justify-content:flex-end; }

.msg-bubble {
  max-width:72%;
  padding:8px 12px 6px;
  border-radius:var(--radius-msg);
  position:relative;
  word-break:break-word;
  font-size:13.5px;
  line-height:1.55;
  box-shadow:var(--shadow);
}
.msg-row.inbound .msg-bubble {
  background:var(--msg-in-bg);
  border:1px solid var(--border);
  border-bottom-left-radius:4px;
}
.msg-row.outbound .msg-bubble {
  background:var(--msg-out-bg);
  border:1px solid var(--msg-out-border);
  border-bottom-right-radius:4px;
}
.msg-row.outbound .msg-bubble.type-escalation {
  background:var(--red-dim);
  border-color:rgba(248,81,73,0.25);
}
.msg-row.outbound .msg-bubble.type-system {
  background:var(--surface-2);
  border-color:var(--border);
  font-style:italic;
  color:var(--text-2);
}

/* Message content */
.msg-text { display:block; }
.msg-text.highlight { background:rgba(204,162,69,0.3); border-radius:3px; }

/* Message meta */
.msg-meta {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  margin-top:3px;
}
.msg-time-label {
  font-size:10px;
  color:var(--text-3);
  white-space:nowrap;
  line-height:1;
}
.msg-type-tag {
  font-size:9px;
  font-weight:600;
  letter-spacing:0.04em;
  color:var(--text-3);
  text-transform:uppercase;
}
.msg-row.inbound .msg-meta { justify-content:flex-start; }
.msg-row.inbound .msg-time-label { color:var(--text-3); }

/* Tick icons */
.msg-tick { color:var(--text-3); }
.msg-tick.read { color:var(--green); }

/* Input bar */
.input-bar {
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding:10px 12px;
  background:var(--surface);
  border-top:1px solid var(--border);
}
.input-wrap {
  flex:1;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius);
  display:flex;
  align-items:flex-end;
  padding:8px 14px;
  transition:border-color var(--trs);
}
.input-wrap:focus-within { border-color:var(--accent); }
.msg-input {
  flex:1; background:transparent; border:none; outline:none;
  color:var(--text); resize:none; font-size:14px;
  max-height:120px; line-height:1.5; overflow-y:auto;
  min-height:21px;
}
.msg-input::placeholder { color:var(--text-3); }
.send-btn {
  width:44px; height:44px; border-radius:50%;
  background:var(--accent);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition:background var(--trs), transform 0.1s, opacity var(--trs);
  box-shadow:0 2px 8px rgba(204,162,69,0.4);
}
.send-btn:not(:disabled):hover { background:var(--accent-h); transform:scale(1.05); }
.send-btn:disabled { opacity:0.4; cursor:not-allowed; box-shadow:none; }
.send-btn:active:not(:disabled) { transform:scale(0.93); }

/* ══════════════════════════════════════════════════════════════
   COMMON COMPONENTS
   ══════════════════════════════════════════════════════════════ */
.icon-btn {
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2);
  transition:background var(--trs), color var(--trs);
}
.icon-btn:hover { background:var(--surface-2); color:var(--text); }

.btn-primary {
  background:var(--accent); color:#fff;
  padding:9px 18px; border-radius:var(--radius-sm);
  font-weight:600; font-size:13px;
  transition:background var(--trs), transform 0.1s;
  box-shadow:0 2px 8px rgba(204,162,69,0.3);
}
.btn-primary:hover { background:var(--accent-h); }
.btn-primary:active { transform:scale(0.96); }
.btn-primary.btn-sm { padding:6px 13px; font-size:12px; }

.btn-secondary {
  background:var(--surface-3); color:var(--text-2);
  border:1px solid var(--border);
  padding:9px 18px; border-radius:var(--radius-sm);
  font-weight:500; font-size:13px;
  transition:background var(--trs);
}
.btn-secondary:hover { background:var(--surface-2); color:var(--text); }
.btn-secondary.btn-sm { padding:6px 13px; font-size:12px; }

/* Knowledge base */
.kb-actions { display:flex; gap:8px; }
.kb-editor {
  width:100%; flex:1;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:12px; outline:none; resize:vertical;
  color:var(--text);
  font-family:'JetBrains Mono','Fira Code','Courier New',monospace;
  font-size:12.5px; line-height:1.75;
  min-height:260px;
  transition:border-color var(--trs);
}
.kb-editor:focus { border-color:var(--accent); }

/* Settings */
.settings-section {
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  display:flex; flex-direction:column; gap:12px;
}
.settings-label {
  font-size:11px; font-weight:700;
  letter-spacing:0.07em; text-transform:uppercase;
  color:var(--text-2);
}
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-group label { font-size:12px; color:var(--text-2); font-weight:500; }
.form-group small { color:var(--text-3); font-size:11px; }
.form-input, .form-textarea {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:8px 11px;
  outline:none; color:var(--text);
  transition:border-color var(--trs);
  width:100%;
}
.form-input:focus, .form-textarea:focus { border-color:var(--accent); }
.form-textarea { resize:vertical; line-height:1.5; }
.form-status { font-size:12px; min-height:20px; color:var(--green); transition:opacity 0.3s; }

.settings-footer {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:4px;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ══════════════════════════════════════════════════════════════ */
.bottom-nav {
  display:none;
  position:fixed; bottom:0; left:0; right:0;
  background:var(--surface);
  border-top:1px solid var(--border);
  z-index:50;
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-nav-btn {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 4px;
  font-size:10px; font-weight:500; color:var(--text-2);
  position:relative;
  transition:color var(--trs);
}
.bottom-nav-btn.active { color:var(--accent); }
.bottom-badge {
  position:absolute; top:4px; right:calc(50% - 18px);
  background:var(--red); color:#fff;
  font-size:8px; font-weight:700;
  border-radius:99px; padding:1px 5px;
  min-width:14px; text-align:center;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,0.5);
  z-index:9;
  backdrop-filter:blur(2px);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .app-shell { flex-direction:column; }

  /* Sidebar becomes an off-canvas drawer on mobile */
  .sidebar {
    position:fixed;
    top:0; left:0; bottom:0;
    width:100%;
    transform:translateX(-100%);
    box-shadow:var(--shadow-lg);
    z-index:20;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .sidebar.mobile-open {
    transform:translateX(0);
  }
  .sidebar-overlay.visible { display:block; }

  /* Chat area fills the screen */
  .chat-area {
    flex:1;
    height:calc(100vh - 56px); /* minus bottom nav */
  }

  /* Bottom nav visible */
  .bottom-nav { display:flex; }

  /* Back button in chat header */
  .back-btn { display:flex; }

  /* Chat bubbles wider on mobile */
  .msg-bubble { max-width:85%; }

  /* Slightly more compact input */
  .input-bar { padding:8px; }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .bottom-nav { display:none !important; }
  .back-btn { display:none !important; }
}

/* Compact layout for very small screens */
@media (max-width: 380px) {
  .msg-bubble { max-width:90%; font-size:13px; }
  .chat-name { font-size:13px; }
}

/* ══════════════════════════════════════════════════════════════
   WHATSAPP BROADCASTING STYLES
   ══════════════════════════════════════════════════════════════ */
.campaign-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-sub);
  cursor: pointer;
  transition: background var(--trs);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.campaign-item:hover { background: var(--surface-2); }
.campaign-item.active { background: var(--accent-dim); }

.campaign-item-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.campaign-name-txt {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.campaign-status-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  text-transform: uppercase;
}
.campaign-status-tag.pending { background: rgba(138, 154, 176, 0.15); color: var(--text-2); }
.campaign-status-tag.sending { background: rgba(204, 162, 69, 0.15); color: var(--accent); }
.campaign-status-tag.completed { background: var(--green-dim); color: var(--green); }
.campaign-status-tag.paused { background: rgba(248, 81, 73, 0.15); color: var(--red); }

.campaign-progress-container {
  width: 100%;
  height: 4px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.campaign-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.campaign-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
}

/* Template dashboard card styling */
.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.template-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.template-badge.meta { background: rgba(37, 211, 102, 0.1); color: var(--green); }
.template-badge.manual { background: rgba(204, 162, 69, 0.1); color: var(--accent); }

/* Analytics Tables */
#bc-logs-table th, #bc-logs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-sub);
}
#bc-logs-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.delivery-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.delivery-pill.pending { background: rgba(138, 154, 176, 0.12); color: var(--text-2); }
.delivery-pill.sent { background: rgba(204, 162, 69, 0.12); color: var(--accent); }
.delivery-pill.delivered { background: rgba(37, 211, 102, 0.12); color: var(--green); }
.delivery-pill.read { background: rgba(204, 162, 69, 0.25); color: var(--gold); }
.delivery-pill.failed { background: rgba(248, 81, 73, 0.12); color: var(--red); }

