: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 {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: var(--dyte-border-radius-md, 8px);
  width: 100%;
  --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));
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--dyte-space-4, 16px);
  padding-right: var(--dyte-space-4, 16px);
}

button {
}

.title {
  font-size: 20px;
  line-height: 1;
}

.back-btn, 
.dismiss-btn {
  border-radius: var(--dyte-border-radius-sm, 4px);
  background-color: transparent;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.back-btn:hover, 
.dismiss-btn:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
}

aside {
  box-sizing: border-box;
  display: flex;
  min-width: var(--dyte-space-56, 224px);
  flex-direction: column;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  padding-left: var(--dyte-space-2, 8px);
}

aside button {
  margin-top: var(--dyte-space-4, 16px);
  box-sizing: border-box;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--dyte-border-radius-sm, 4px);
  border-bottom-left-radius: var(--dyte-border-radius-sm, 4px);
  padding-left: var(--dyte-space-4, 16px);
  padding-right: var(--dyte-space-4, 16px);
  padding-top: var(--dyte-space-3, 12px);
  padding-bottom: var(--dyte-space-3, 12px);
  background-color: transparent;
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
  cursor: default;
  font-size: 16px;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

aside button .right {
  display: flex;
  align-items: center;
}

aside button .right dyte-icon {
  height: var(--dyte-space-6, 24px);
  width: var(--dyte-space-6, 24px);
}

aside button .right dyte-icon:last-child {
  margin-left: var(--dyte-space-4, 16px);
}

aside button[type='button'] {
  cursor: pointer;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

aside button[type='button']:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
}

aside button[type='button'] {
    border-right: var(--dyte-border-width-md, 2px) solid transparent;
  }

aside button.active {
  --tw-border-opacity: 1;
  border-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / var(--tw-border-opacity));
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / 0.2);
}

aside button.active:hover {
  background-color: rgba(var(--dyte-colors-brand-500, 33 96 253) / 0.2);
}

dyte-icon.poor {
  --tw-text-opacity: 1;
  color: rgba(var(--dyte-colors-warning, 255 205 7) / var(--tw-text-opacity));
}

dyte-icon.poorest {
  --tw-text-opacity: 1;
  color: rgba(var(--dyte-colors-danger, 255 45 45) / var(--tw-text-opacity));
}

dyte-icon.good {
  --tw-text-opacity: 1;
  color: rgba(var(--dyte-colors-success, 98 165 4) / var(--tw-text-opacity));
}

main {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  padding-left: var(--dyte-space-6, 24px);
  padding-right: var(--dyte-space-6, 24px);
  box-sizing: border-box;
  width: 100%;
  max-width: calc(100% - var(--dyte-space-56, 224px));
}

.dismiss-btn {
  position: absolute;
  top: var(--dyte-space-3, 12px);
  right: var(--dyte-space-3, 12px);
  height: var(--dyte-space-6, 24px);
  width: var(--dyte-space-6, 24px);
}

:host([size='sm']) aside {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
}

:host([size='sm']) .dismiss-btn {
  top: var(--dyte-space-5, 20px);
  right: var(--dyte-space-4, 16px);
}

:host([size='sm']) aside {
  width: 100%;
  padding-left: var(--dyte-space-0, 0px);
}

:host([size='sm']) aside button {
  border-radius: var(--dyte-border-radius-none, 0);
}

:host([size='sm']) aside button.active {
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  background-color: transparent;
}

:host([size='sm']) aside button.active:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
}

:host([size='sm']) aside.hide {
  display: none;
}

:host([size='sm']) main {
  display: none;
  max-width: 100%;
  overflow-y: auto;
  padding-left: var(--dyte-space-4, 16px);
  padding-right: var(--dyte-space-4, 16px);
}

:host([size='sm']) main header {
  justify-content: center;
}

:host([size='sm']) main header dyte-button {
  position: absolute;
  left: var(--dyte-space-4, 16px);
}

:host([size='sm']) main.active {
  display: block;
}
