/* ── Chat Inbox navbar button ── */
.ci-btn {
  position: relative;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  padding: 3px 12px;
  margin-right: 6px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.15s;
}
.ci-btn:hover { background: rgba(255,255,255,0.28); }
.ci-btn.ci-has-unread { background: rgba(220,53,69,0.25); border-color: #dc3545; }

.ci-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  text-align: center;
  line-height: 16px;
  padding: 0 3px;
}

/* ── Slide-out panel ── */
.ci-panel {
  position: fixed;
  top: 52px; right: -320px;
  width: 300px;
  height: calc(100vh - 52px);
  background: #fff;
  border-left: 1px solid #dee2e6;
  box-shadow: -4px 0 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  transition: right 0.22s ease;
}
.ci-panel.ci-open { right: 0; }

.ci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0d6efd;
  color: #fff;
  flex-shrink: 0;
}
.ci-title { font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.ci-close-btn {
  background: none; border: none; color: #fff;
  font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1;
}

.ci-list { flex: 1; overflow-y: auto; }

.ci-row {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.ci-row:hover { background: #f8f9fa; }

.ci-row-main {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.ci-call  { font-weight: 700; font-size: 14px; font-family: monospace; color: #0d6efd; flex: 1; }
.ci-time  { font-size: 10px; color: #adb5bd; font-family: monospace; white-space: nowrap; }
.ci-unread-badge {
  background: #dc3545; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; text-align: center;
  line-height: 18px; padding: 0 4px;
  font-family: monospace;
}
.ci-preview { font-size: 11px; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-me { color: #198754; font-weight: 600; }
.ci-empty { padding: 24px 16px; font-size: 13px; color: #adb5bd; text-align: center; }

.ci-footer {
  padding: 8px 14px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  flex-shrink: 0;
}
.ci-clear-btn {
  background: none; border: 1px solid #dee2e6; border-radius: 4px;
  font-size: 11px; color: #6c757d; padding: 3px 10px; cursor: pointer; width: 100%;
}
.ci-clear-btn:hover { background: #e9ecef; }
