/* Custom Invite Modal Styles */

.custom-invite-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.custom-invite-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin: 20px;
}

.custom-invite-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
}

.custom-invite-modal__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #212529;
}

.custom-invite-modal__close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.custom-invite-modal__close:hover {
  background: #f1f3f5;
  color: #212529;
}

.custom-invite-modal__search {
  position: relative;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
}

.custom-invite-modal__search input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.custom-invite-modal__search input:focus {
  border-color: #1262AB;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.custom-invite-modal__search input::placeholder {
  color: #adb5bd;
}

.custom-invite-modal__search-loading {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e9ecef;
  border-top-color: #1262AB;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.custom-invite-modal__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.custom-invite-modal__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1262AB;
  color: #fff;
  padding: 4px 8px 4px 12px;
  border-radius: 16px;
  font-size: 13px;
}

.custom-invite-modal__chip button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.custom-invite-modal__chip button:hover {
  color: #fff;
}

.custom-invite-modal__results {
  flex: 1;
  overflow-y: auto;
  min-height: 150px;
  max-height: 250px;
}

.custom-invite-modal__hint,
.custom-invite-modal__no-results {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100px;
  color: #6c757d;
  font-size: 14px;
}

.custom-invite-modal__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.custom-invite-modal__user:hover {
  background: #f8f9fa;
}

.custom-invite-modal__user.selected {
  background: #e7f1ff;
}

.custom-invite-modal__user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.custom-invite-modal__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-invite-modal__user-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.custom-invite-modal__user-info {
  flex: 1;
  min-width: 0;
}

.custom-invite-modal__user-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-invite-modal__user-email {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-invite-modal__user-business {
  font-size: 12px;
  color: #1262AB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-invite-modal__user-checkbox {
  flex-shrink: 0;
}

.custom-invite-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e9ecef;
  background: #fff;
  flex-shrink: 0;
}

.custom-invite-modal__cancel {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.custom-invite-modal__cancel:hover {
  background: #f8f9fa;
}

.custom-invite-modal__invite {
  padding: 8px 20px;
  border: none;
  background: #1262AB;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.custom-invite-modal__invite:hover {
  background: #0b5ed7;
}

.custom-invite-modal__invite:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

/* Custom Channel Settings Styles */

.custom-channel-settings {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure Sendbird settings takes full space */
.custom-channel-settings .sendbird-channel-settings {
  flex: 1;
  overflow-y: auto;
}

/**
 * CustomChannelHeader Styles
 */

.custom-channel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  min-height: 64px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 10 !important;
}

/* Call Banner */
.custom-channel-header__call-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  margin: -16px -24px 12px -24px;
  background: linear-gradient(135deg, #1262ab 0%, #0c3963 100%);
  color: #ffffff;
  animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.custom-channel-header__call-banner-text {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
}

.custom-channel-header__call-banner-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1262ab;
  background-color: #ffffff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
}

.custom-channel-header__call-banner-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.02);
}

.custom-channel-header__call-banner-dismiss {
  padding: 4px 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.custom-channel-header__call-banner-dismiss:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

.custom-channel-header__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.custom-channel-header__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Manrope', sans-serif;
}

.custom-channel-header__subtitle {
  font-size: 12px;
  color: #757575;
  margin-top: 2px;
  font-family: 'Manrope', sans-serif;
}

.custom-channel-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.custom-channel-header__btn {
  color: #616161;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background-color: transparent;
}

.custom-channel-header__btn:hover {
  background-color: rgba(18, 98, 171, 0.08);
  color: #1262ab;
  transform: translateY(-1px);
}

.custom-channel-header__btn:active {
  transform: translateY(0);
  background-color: rgba(18, 98, 171, 0.12);
}

.custom-channel-header__btn--disabled {
  color: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
}

.custom-channel-header__btn--disabled:hover {
  background-color: transparent;
  color: #bdbdbd;
  transform: none;
}

/* Responsive */
@media (max-width: 576px) {
  .custom-channel-header {
    padding: 10px 12px;
  }

  .custom-channel-header__title {
    font-size: 14px;
  }

  .custom-channel-header__actions {
    gap: 2px;
  }

  .custom-channel-header__btn {
    padding: 6px;
  }

  .custom-channel-header__btn svg {
    width: 18px;
    height: 18px;
  }
}

/**
 * CustomMessageRenderer Styles
 * Styles for missed call, declined call, and scheduled call cards in chat
 */

/* ──── Missed / Declined Call Card ──── */

.call-msg-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 40px;
  border-radius: 10px;
  background-color: #fff8f8;
  border: 1px solid #fde8e8;
  font-family: 'Manrope', sans-serif;
  max-width: 360px;
}

.call-msg-card--missed .call-msg-card__icon {
  color: #f44336;
}

.call-msg-card--declined {
  background-color: #f9f9f9;
  border-color: #e8e8e8;
}

.call-msg-card--declined .call-msg-card__icon {
  color: #9e9e9e;
}

.call-msg-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(244, 67, 54, 0.08);
}

.call-msg-card--declined .call-msg-card__icon {
  background-color: rgba(158, 158, 158, 0.08);
}

.call-msg-card--completed {
  background-color: #f0f9f4;
  border-color: #c8e6d0;
}

.call-msg-card--completed .call-msg-card__icon {
  color: #4caf50;
  background-color: rgba(76, 175, 80, 0.08);
}

.call-msg-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.call-msg-card__text {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
}

.call-msg-card__attendees {
  font-size: 12px;
  color: #616161;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-msg-card__time {
  font-size: 11px;
  color: #757575;
  margin-top: 1px;
}

.call-msg-card__callback-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1262ab;
  background-color: rgba(18, 98, 171, 0.08);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.call-msg-card__callback-btn:hover {
  background-color: rgba(18, 98, 171, 0.15);
}

/* ──── Scheduled Call Card ──── */

.scheduled-call-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  margin: 4px 40px;
  border-radius: 10px;
  background-color: #f0f7ff;
  border: 1px solid #d0e3f5;
  font-family: 'Manrope', sans-serif;
  max-width: 360px;
}

.scheduled-call-card--expired {
  background-color: #f9f9f9;
  border-color: #e8e8e8;
  opacity: 0.7;
}

.scheduled-call-card--ready {
  background-color: #f0fff4;
  border-color: #c8e6c9;
}

.scheduled-call-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheduled-call-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1262ab;
  flex-shrink: 0;
}

.scheduled-call-card--ready .scheduled-call-card__icon {
  color: #4caf50;
}

.scheduled-call-card--expired .scheduled-call-card__icon {
  color: #9e9e9e;
}

.scheduled-call-card__title {
  font-size: 13px;
  font-weight: 600;
  color: #212529;
  flex: 1;
}

.scheduled-call-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.scheduled-call-card__badge--upcoming {
  background-color: rgba(18, 98, 171, 0.1);
  color: #1262ab;
}

.scheduled-call-card__badge--ready {
  background-color: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.scheduled-call-card__badge--expired {
  background-color: rgba(158, 158, 158, 0.1);
  color: #757575;
}

.scheduled-call-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 26px;
}

.scheduled-call-card__datetime {
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 4px;
}

.scheduled-call-card__time-separator {
  font-weight: 400;
  color: #757575;
  font-size: 12px;
}

.scheduled-call-card__type {
  font-size: 12px;
  color: #616161;
}

.scheduled-call-card__note {
  font-size: 12px;
  color: #757575;
  font-style: italic;
  margin-top: 2px;
}

.scheduled-call-card__start-btn {
  align-self: flex-start;
  margin-left: 26px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background-color: #4caf50;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Manrope', sans-serif;
}

.scheduled-call-card__start-btn:hover {
  background-color: #43a047;
  transform: translateY(-1px);
}

/* ──── Responsive ──── */

@media (max-width: 576px) {
  .call-msg-card,
  .scheduled-call-card {
    margin: 4px 12px;
    max-width: unset;
  }
}

/**
 * ChannelPanel Styles
 */

.channel-panel {
  display: flex;
  flex-direction: row;
  height: 100%;
  background-color: #ffffff;
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
}

.channel-panel--empty {
  flex-direction: column;
}

.channel-panel__conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.channel-panel__conversation .sendbird-conversation {
  height: 100%;
}

.channel-panel__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 24px;
  text-align: center;
}

.channel-panel__empty-icon {
  color: #c0c0c0;
  margin-bottom: 16px;
}

.channel-panel__empty-text {
  font-size: 14px;
  color: #757575;
  margin: 0;
}

.channel-panel__settings {
  width: 280px;
  min-width: 280px;
  border-left: 1px solid #e0e0e0;
  overflow: hidden;
}

.channel-panel__settings .sendbird-channel-settings {
  height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .channel-panel__settings {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #ffffff;
    border-left: none;
  }
}

/* Whole row */
.custom-channel-preview {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 16px 18px;
  cursor: pointer;

  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Hover */
.custom-channel-preview:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Active row (light blue like screenshot) */
.custom-channel-preview--active {
  background: #e8f1fb;
}

/* Avatar */
.custom-channel-preview__avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-channel-preview__avatar-img,
.custom-channel-preview__avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.custom-channel-preview__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}

/* Content area */
.custom-channel-preview__content {
  flex: 1;
  min-width: 0;
  /* IMPORTANT for ellipsis */
}

/* Top row: name (left) and time (right) */
.custom-channel-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Channel name */
.custom-channel-preview__name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Time on right */
.custom-channel-preview__time {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bottom row: message preview (left) and unread badge (right) */
.custom-channel-preview__message-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Message preview (muted) */
.custom-channel-preview__message {
  font-size: 14px;
  font-weight: 400;
  color: rgba(15, 23, 42, 0.55);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Unread badge (right side) */
.custom-channel-preview__unread {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;

  background: #ef4444;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 800;
  padding: 0 9px;
  flex-shrink: 0;
}
/**
 * ChatContainer Styles
 * Full-page chat layout for Messages page
 */
/* Header container */
.msgHeader {
  padding: 16px 16px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Search */
.msgHeader__search {
  position: relative;
}

.msgHeader__search input {
  width: 100%;
  height: 46px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: #f1f5f9;
  padding: 0 14px 0 44px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.msgHeader__search input::placeholder {
  color: rgba(15, 23, 42, 0.35);
  font-weight: 600;
}

.msgHeader__searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* Tabs row */
.msgHeader__tabs {
  margin-top: 14px;
  display: flex;
  gap: 26px;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 6px;
}

.msgHeader__tab {
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.45);
  padding: 8px 0;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.msgHeader__tab.is-active {
  color: #0f172a;
}

.msgHeader__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: #1262ab;
}

.msgHeader__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

/* Main container */
.chat-container {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 250px);
  /* Account for header, padding, and footer */
  min-height: 400px;
  max-height: calc(100vh - 250px);
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Sidebar with channel list */
.chat-container__sidebar {
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e0e0e0;
  background-color: #ffffff;
}

.chat-container__sidebar-header {
  padding: 20.5px 24px;
  border-bottom: 1px solid #e8e8e8;
  background-color: #ffffff;
}

.chat-container__sidebar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #212121;
  letter-spacing: -0.3px;
}

.chat-container__channel-list {
  flex: 1;
  overflow: hidden;
}

.chat-container__channel-list .sendbird-channel-list {
  height: 100%;
  border: none;
}

/* Hide default UIKit header since we have our own */
.chat-container__channel-list .sendbird-channel-list__header {
  display: none;
}

/* Main chat area */
.chat-container__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.chat-container__main .sendbird-conversation {
  height: 100%;
  border: 0;
}

/* Empty state */
.chat-container__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
}

.chat-container__empty-icon {
  color: #bdbdbd;
  margin-bottom: 28px;
  opacity: 0.8;
}

.chat-container__empty-icon svg {
  stroke-width: 1.2;
}

.chat-container__empty-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  letter-spacing: -0.3px;
}

.chat-container__empty-text {
  margin: 0;
  font-size: 14px;
  color: #666666;
  max-width: 320px;
  line-height: 1.6;
}

/* Settings panel */
.chat-container__settings {
  width: 320px;
  min-width: 320px;
  border-left: 1px solid #e0e0e0;
  overflow: hidden;
}

.chat-container__settings .sendbird-channel-settings {
  height: 100%;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .chat-container__sidebar {
    width: 280px;
    min-width: 280px;
  }

  .chat-container__settings {
    width: 280px;
    min-width: 280px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .chat-container {
    flex-direction: column;
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
  }

  .sendbird-message-input-wrapper--voice-message .sendbird-message-input-wrapper__message-input,
  .sendbird-message-input-wrapper .sendbird-message-input-wrapper__message-input {

    padding: 0px 0px;
  }

  .chat-container__sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 40%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .chat-container__sidebar-header {
    padding: 12px 16px;
  }

  .chat-container__sidebar-title {
    font-size: 16px;
  }

  .chat-container__main {
    flex: 1;
    min-height: 300px;
  }

  .chat-container__settings {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #ffffff;
    border-left: none;
  }

  .chat-container__empty {
    padding: 24px;
  }

  .chat-container__empty-icon svg {
    width: 60px;
    height: 60px;
  }

  .chat-container__empty-title {
    font-size: 18px;
  }
}

/* Scrollbar styling */
.chat-container__channel-list::-webkit-scrollbar {
  width: 6px;
}

.chat-container__channel-list::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container__channel-list::-webkit-scrollbar-thumb {
  background-color: #c0c0c0;
  border-radius: 3px;
}

/* Not Ready / Loading State */
.chat-container__not-ready {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  padding: 40px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.chat-container__not-ready-icon {
  color: #9e9e9e;
  margin-bottom: 20px;
}

.chat-container__not-ready-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #424242;
}

.chat-container__not-ready-text {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #757575;
}

.chat-container__not-ready-btn {
  background-color: #1262ab;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-container__not-ready-btn:hover {
  background-color: #0c3963;
}

/* Loading Spinner */
.chat-container__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #1262ab;
  border-radius: 50%;
  animation: chat-spinner 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes chat-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Custom File Viewer Modal */
.custom-file-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.custom-file-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.custom-file-viewer__filename {
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 60px);
}

.custom-file-viewer__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.custom-file-viewer__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.custom-file-viewer__close:active {
  background-color: rgba(255, 255, 255, 0.4);
}

.custom-file-viewer__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}

.custom-file-viewer__content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.custom-file-viewer__download {
  text-align: center;
  color: #ffffff;
}

.custom-file-viewer__download p {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #a0a0a0;
}

.custom-file-viewer__download a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1262ab;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.custom-file-viewer__download a:hover {
  background-color: #0c3963;
}

.sendbird-channel-preview .sendbird-channel-preview__content .sendbird-channel-preview__content__upper .sendbird-channel-preview__content__upper__header .sendbird-channel-preview__content__upper__header__channel-name {
  max-width: 128px !important;
  line-height: 1.5;
}

.sendbird-conversation__footer {
  padding: 0px 0px 0px 0px !important;
}
/**
 * ChatBadge Styles
 * Matches the existing NotificationBell styling
 */

.chat-badge-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.chat-badge-button {
  border-radius: 50%;
  padding: 12px 11px !important;
  transition: all 0.2s ease !important;
}

.chat-badge-button:hover {
  background-color: rgba(18, 98, 171, 0.08) !important;
  color: #1262ab !important;
}

.chat-badge-icon {
  color: #757575;
  transition: color 0.2s ease;
}

.chat-badge-icon.has-unread {
  color: #1262ab;
}

.chat-badge-button:hover .chat-badge-icon {
  color: #1262ab;
}

/* Tooltip styling */
.chat-badge-tooltip .tooltip-inner {
  background-color: #212121;
  font-size: 12px;
  padding: 4px 8px;
}

.chat-badge-tooltip .tooltip-arrow::before {
  border-bottom-color: #212121;
}

/* Badge animation when there are unread messages */
.chat-badge-icon.has-unread {
  animation: chat-badge-pulse 2s infinite;
}

@keyframes chat-badge-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

