: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;
  flex-direction: column;
}

.chat-scope-selector {
  position: relative;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
  z-index: 10;
}

.chat-scope-selector button {
  width: 100%;
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  padding: var(--dyte-space-4, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  --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-1000, 255 255 255));
  font-size: 14px;
  cursor: pointer;
  height: var(--dyte-space-12, 48px);
}

.chat-scope-selector button span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.chat-scope-selector button dyte-icon {
  height: var(--dyte-space-5, 20px);
  width: var(--dyte-space-5, 20px);
}

.chat-scope-selector .search {
  position: sticky;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: var(--dyte-border-radius-sm, 4px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
  margin-left: var(--dyte-space-3, 12px);
  margin-right: var(--dyte-space-3, 12px);
  margin-top: var(--dyte-space-3, 12px);
  margin-bottom: var(--dyte-space-0, 0px);
}

.chat-scope-selector .search dyte-icon {
  margin-left: var(--dyte-space-2, 8px);
  margin-right: var(--dyte-space-2, 8px);
  height: var(--dyte-space-5, 20px);
  width: var(--dyte-space-5, 20px);
  color: rgb(var(--dyte-colors-text-600, 255 255 255 / 0.52));
}

.chat-scope-selector .search input {
  box-sizing: border-box;
  height: var(--dyte-space-9, 36px);
  width: 100%;
  padding-right: var(--dyte-space-2, 8px);
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-radius: var(--dyte-border-radius-sm, 4px);
  font-size: 14px;
}

.chat-scope-selector .search input::-moz-placeholder {
  color: rgb(var(--dyte-colors-text-800, 255 255 255 / 0.76));
}

.chat-scope-selector .search input::placeholder {
  color: rgb(var(--dyte-colors-text-800, 255 255 255 / 0.76));
}

.chat-scope-selector .participants-container {
  position: absolute;
  width: 100%;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  top: var(--dyte-space-12, 48px);
    animation: 0.3s slide-down ease;
}

@keyframes slide-down {
    from {
      transform: translateY(-50px);
    }
    to {
      transform: translateY(0%);
    }
  }

.chat-scope-selector .scope-list {
  margin-top: var(--dyte-space-0, 0px);
  margin-bottom: var(--dyte-space-0, 0px);
  list-style-type: none;
  padding-left: var(--dyte-space-0, 0px);
  padding-right: var(--dyte-space-0, 0px);
  overflow: auto;
    max-height: 375px;
}

.chat-scope-selector .scope-list .scope {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: var(--dyte-space-3, 12px);
  padding-right: var(--dyte-space-3, 12px);
  padding-top: var(--dyte-space-4, 16px);
  padding-bottom: var(--dyte-space-4, 16px);
}

.chat-scope-selector .scope-list .scope:hover {
  cursor: pointer;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
}

.chat-scope-selector .scope-list .scope-special {
  margin-top: var(--dyte-space-4, 16px);
  --tw-text-opacity: 1;
  color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-text-opacity));
}

.chat-scope-selector .scope-list .everyone-icon > dyte-icon {
  height: var(--dyte-space-6, 24px);
  width: var(--dyte-space-6, 24px);
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
}

.chat-scope-selector .scope-list .everyone-icon {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-right: var(--dyte-space-2, 8px);
  height: var(--dyte-space-8, 32px);
  width: var(--dyte-space-8, 32px);
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  font-size: 12px;
}
.unread-count.selector {
  position: unset;
  margin-left: var(--dyte-space-2, 8px);
}
.unread-count {
  position: absolute;
  right: var(--dyte-space-3, 12px);
  box-sizing: border-box;
  padding: var(--dyte-space-0\.5, 2px);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  font-size: 12px;
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
  display: flex;
  height: var(--dyte-space-5, 20px);
  min-width: var(--dyte-space-5, 20px);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  z-index: 1;
}

dyte-avatar {
  height: var(--dyte-space-8, 32px);
  width: var(--dyte-space-8, 32px);
}
