:host {
  line-height: initial;
  font-family: var(--dyte-font-family, sans-serif);

  font-feature-settings: normal;
  font-variation-settings: normal;
}

p {
  margin: var(--dyte-space-0, 0px);
  padding: var(--dyte-space-0, 0px);
}

.scrollbar {
  /* For Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)))
    var(--dyte-scrollbar-background, transparent);
}

/* For WebKit */
.scrollbar::-webkit-scrollbar {
  height: var(--dyte-space-1\.5, 6px);
  width: var(--dyte-space-1\.5, 6px);
  border-radius: 9999px;
  background-color: var(--dyte-scrollbar-background, transparent);
}

.scrollbar::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background-color: var(--dyte-scrollbar-color, rgb(var(--dyte-colors-background-600, 60 60 60)));
}


:host {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  font-size: 14px;
  position: relative;
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
}

h3 {
  margin: var(--dyte-space-0, 0px);
  display: flex;
  height: var(--dyte-space-12, 48px);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
  text-align: center;
}

#dropzone {
  position: absolute;
  top: var(--dyte-space-0, 0px);
  right: var(--dyte-space-0, 0px);
  bottom: var(--dyte-space-0, 0px);
  left: var(--dyte-space-0, 0px);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-700, 255 255 255 / 0.64));
}

#dropzone.active {
  display: flex;
  animation: 0.2s slide-up ease-in;
}

dyte-chat-messages-ui,
dyte-chat-messages-ui-paginated {
  flex: 1 0 0;
}

dyte-chat-composer-view {
  margin: var(--dyte-space-2, 8px);
}

.chat-container {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: row;
  container-type: size;
  container-name: chatcontainer;
}

@container chatcontainer (height < 360px) {
  dyte-channel-selector-view {
    height: var(--dyte-space-8, 32px);
    min-height: 24px;
  }
}

.chat {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
}

.banner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner .welcome-new-channel {
  width: var(--dyte-space-48, 192px);
}

.banner .create-channel-illustration {
  height: var(--dyte-space-40, 160px);
  width: var(--dyte-space-40, 160px);
}

.channel-selector-header {
  box-sizing: border-box;
  height: var(--dyte-space-16, 64px);
  padding: var(--dyte-space-4, 16px);
  display: flex;
  justify-content: space-between;
  border-bottom: var(--dyte-border-width-sm, 1px) solid rgb(var(--dyte-colors-background-700, 44 44 44));
}

.channel-selector-header .channel-create-btn {
  width: var(--dyte-space-8, 32px);
  justify-content: center;
}

.channel-selector-header .channel-create-btn:hover {
  --tw-text-opacity: 1;
  color: rgba(var(--dyte-colors-brand-300, 73 124 253) / var(--tw-text-opacity));
}

.view-chats-btn {
  margin-top: var(--dyte-space-4, 16px);
}

.selector-container {
  z-index: 50;
  width: 100%;
  max-width: var(--dyte-space-80, 320px);
  border-right: var(--dyte-border-width-sm, 1px) solid rgb(var(--dyte-colors-background-600, 60 60 60));
}

.selector-container.hide {
  display: none;
}

.mobile-close-btn {
  display: none;
}

.selector-container.mobile {
  height: 100%;
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: var(--dyte-space-0, 0px);
  right: var(--dyte-space-0, 0px);
  bottom: var(--dyte-space-0, 0px);
  left: var(--dyte-space-0, 0px);
  background-color: rgba(var(--dyte-colors-background-1000, 8 8 8) / 0.6);
  display: flex;
}

.selector-container.mobile dyte-channel-selector-view {
  max-width: var(--dyte-space-96, 384px);
    animation: 0.3s swipe-in;
}

.selector-container.mobile .mobile-close-btn {
  margin-top: var(--dyte-space-4, 16px);
  margin-bottom: var(--dyte-space-4, 16px);
  margin-left: var(--dyte-space-6, 24px);
  margin-right: var(--dyte-space-6, 24px);
  display: block;
}

.pinned-messages-header {
  display: flex;
  align-items: center;
  gap: var(--dyte-space-2, 8px);
  padding: var(--dyte-space-2, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
  font-size: 12px;
  cursor: pointer;
}

.pinned-messages-header dyte-icon {
  height: var(--dyte-space-3, 12px);
  width: var(--dyte-space-3, 12px);
}

.pinned-messages-header:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
}

.pinned-messages-header.active {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
}

@keyframes swipe-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
