@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* CSS reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nanum Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
}

h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;

  &:disabled {
    cursor: auto;
  }
}

/* CSS common */

:root {
  --primary: #3dc0a9;
  --hover-primary: #3dc0a921;
  --bg: #1a1919;
  --nav-bg: #333335;
  --sub-text: #9da0a8;
  --input-text: #3e515b;
  --placeholder: #d2d5dd;
  --input-border: #d3dae6;
  --search-input-bg: #cccccc30;
  /* --line: #67696d; */
  --light-gray: #b6b9c0;
  --dark-gray: #4e4f54;
  --gray-button: #c7cbd5;
  --hover-tool-bg: #cccccc30;
  --scroll-thumb: #ccc;
  --badge-bg: #4e4f54;
  --table-bg: #f7f7f7;
  --white: #fff;
  --red: #eb4833;
  --orange: #ff623a;
  --green: #0ec36b;
  --blue: #4385f6;
  --black: #000;
  --text: #323642;
  --primary-filter: invert(67%) sepia(22%) saturate(1076%) hue-rotate(116deg) brightness(132%)
    contrast(89%);
}

* {
  font-family: "Pretendard";
}

h3,
h4,
p,
span,
button {
  color: var(--text);
  /* color: var(--white); */
}

body {
  min-height: 100vh;
  /* background-color: var(--bg); */
  min-width: 360px;
}

.input {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;

  /* &::placeholder {
    color: var(--placeholder);
  } */

  &:hover {
    border: 1px solid var(--primary) !important;
  }

  &:focus {
    border-color: var(--primary) !important;
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }
}

.border-input {
  border: 1px solid var(--input-border);
  background-color: transparent;
  /* color: var(--white); */
}

.icon-input {
  display: flex;
  align-items: center;
  border-radius: 8px;
  gap: 0 8px;
  cursor: pointer;
  border: 1px solid transparent;

  &:hover {
    border: 1px solid var(--primary);
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  & input {
    background-color: transparent;
    outline: none;
    border: none;
    flex-grow: 1;
  }
}

.search-input {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--search-input-bg);
  padding: 4px 10px;
  border-radius: 8px;
  gap: 0 8px;
  border: 1px solid transparent;
  cursor: pointer;
  /* width: 100%; */

  &:hover {
    border: 1px solid var(--primary);
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  & img {
    width: 24px;
  }

  & input {
    background-color: transparent;
    outline: none;
    border: none;
    color: white;
    width: 100%;
  }
}

.button {
  padding: 8px 16px;
  border-radius: 8px;
}

.primary-button {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--white);
  transition-duration: 0.2s;
  &:hover {
    background-color: #2f9785;
    border: 1px solid #2f9785;
  }

  & span {
    color: var(--white);
  }

  &:disabled {
    border-color: var(--hover-tool-bg);
    background-color: var(--hover-tool-bg);
    color: var(--sub-text);
  }
}

.border-button {
  background-color: transparent;
  /* color: var(--white); */
  color: var(--sub-text);
  border: 1px solid var(--light-gray);
  &:hover {
    background-color: var(--black);
    /* border-color: var(--black); */
    color: var(--white);

    & span {
      color: var(--white);
    }

    & img {
      filter: brightness(10);
    }
  }
}

.setting-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  padding: 6px 8px;
  border-radius: 8px;

  &:disabled {
    filter: grayscale(1) opacity(0.3);
    background-color: transparent;
    cursor: auto;
  }

  & img {
    width: 18px;
    height: 18px;
  }
}

.icon-button {
  border: 1px solid var(--sub-text);
  background-color: transparent;

  &:hover {
    background-color: var(--hover-tool-bg);
  }
}

.red-button {
  border: 1px solid transparent;
  background-color: transparent;

  &:hover {
    background-color: var(--hover-tool-bg);
  }

  & span {
    color: var(--red);
  }
}

.gray-border-button {
  padding: 6px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--sub-text);
  background-color: transparent;
  &:hover {
    background-color: var(--hover-tool-bg);
  }
}

.cancel-button {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--sub-text);

  &:hover {
    background-color: var(--hover-tool-bg);
    border: 1px solid var(--hover-tool-bg);
  }
}

.layout {
  padding-left: 46px;
}

.side-bar-layout {
  display: flex;
}

.inner {
  padding: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--dark-gray);
  background-color: var(--bg);
  & h2 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
  }

  & span,
  p {
    color: var(--white);
  }
}

.select-box {
  position: relative;
  &.open-select-box {
    & .select-option-wrap {
      display: initial;
      max-height: 300px;
    }
    & .select-arrow-img {
      transform: rotate(180deg);
    }
  }
  & > div {
    background-color: #fff;
    border-radius: 8px;
  }
  & .select-result {
    border: 1px solid #d3dae6;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    cursor: pointer;
  }
  & .select-result-text {
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
  }
  & .select-option-wrap {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 20;
    right: 0;
    margin-top: 8px;
    overflow-y: auto;
    box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.15);
  }
  & .select-option-item {
    padding: 8px 16px;
    cursor: pointer;
    &:hover {
      background-color: #eaf3fd;
    }
  }
}

.table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;

  & th {
    padding: 6px 10px;
    & > div {
      display: flex;
      text-align: left;
    }
  }

  & .ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  & tbody {
    & td {
      padding: 10px;
    }
  }

  & .text-center-td {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .actions-td {
    & .tool-item {
      & img {
        width: 24px;
        height: 24px;
      }
    }
  }
}

.left-nav {
  width: 46px;
  border-right: 1px solid var(--dark-gray);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--nav-bg);
  z-index: 100;

  & nav {
    display: flex;
    flex-direction: column;
    gap: 8px;

    & .menu-item {
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;

      &:not(.current) {
        &:hover {
          background-color: var(--hover-primary);
          & > img {
            width: 26px;
          }
        }
      }

      &.current {
        position: relative;
        &::before {
          content: "";
          display: block;
          position: absolute;
          width: 4px;
          height: 100%;
          left: 0;
          background-color: var(--primary);
          border-radius: 10px;
        }
        & img {
          filter: none;
        }
      }
      & img {
        width: 24px;
        filter: brightness(100);
      }
    }
  }

  & .setting-menu {
    position: relative;
  }

  & .setting-sub-menu {
    position: absolute;
    right: -6px;
    transform: translateX(100%);
    top: 0;
    width: 280px;
    border-radius: 8px;
    border: 1px solid var(--dark-gray);
    background-color: var(--nav-bg);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    animation: fadeIn 0.3s;

    & hr {
      border-color: var(--sub-text);
      height: 1px;
    }

    & .quick-sub-menu {
      display: flex;
      border-radius: 8px;
      gap: 0 8px;
      flex-direction: column;
    }

    & .quick-title {
      color: var(--sub-text);
      padding: 8px 10px;
      font-size: 14px;
      font-weight: 600;
    }
  }

  & .sub-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    gap: 0 8px;

    &:not(.disabled) {
      cursor: pointer;
      &:hover {
        background-color: var(--hover-primary);
      }
    }

    &.disabled {
      filter: brightness(0.5);
    }

    & img {
      width: 24px;
      height: 24px;
      filter: brightness(10);
    }

    & .title-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;
      & .title {
        color: var(--white);
        font-size: 14px;
      }

      & .sub-title {
        color: var(--sub-text);
        font-size: 12px;
      }
    }
  }
}

#refreshButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  & img {
    height: 16px;
  }
  & span {
    font-size: 14px;
    color: var(--white);
  }
}

.border-box {
  border-radius: 8px;
  border: 1px solid var(--light-gray);
}

.scrollbar {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb);
    border-radius: 10px;
  }
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
  }
}

.user-img {
  border-radius: 50%;
  background-color: #f2f2f2;
  position: relative;

  & .user-status-circle {
    position: absolute;
    background-color: var(--green);
    border-radius: 50%;
    border: 2px solid var(--white);
    bottom: 0;
    right: 0;
    transform: translateX(50%);
    width: 14px;
    height: 14px;
  }
}

& .channel-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 8px;
  border: 1px solid var(--input-border);
  display: flex;
  justify-content: center;
  align-items: center;

  & img {
    width: 100%;
    height: 100%;
  }
}

.side-bar {
  background-color: var(--nav-bg);
  border-right: 1px solid var(--dark-gray);
  height: 100vh;
  overflow: auto;
  flex-shrink: 0;

  & .menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px 0;

    &.empty {
      & li {
        padding: 2px 8px;
        font-size: 14px;
        color: #616161;
      }
    }
  }

  & .menu-item {
    padding: 2px 8px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 8px;
    gap: 8px;

    &:hover {
      background-color: var(--bg);
    }

    &.current {
      background-color: var(--hover-primary);
      & span {
        color: var(--white);
      }
    }

    & img {
      width: 18px;
      height: 18px;
      filter: brightness(100);
    }

    & .menu-title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0 8px;
      overflow: hidden;
    }

    & .menu-title {
      color: var(--sub-text);
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;

      &.emoji {
        flex-shrink: 0;
      }
    }

    & .menu-num {
      color: var(--sub-text);
    }
  }

  & .arcodian-wrap {
    display: flex;
    flex-direction: column;

    & .menu-wrap {
      padding-top: 12px;
      &.close {
        overflow: hidden;
        animation-name: closeArcodian;
        animation-duration: 4s;
        animation-fill-mode: forwards;
      }
    }
  }

  & .arcodian-cate-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;

    & .arcodian-tool-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;
    }

    & .arcodian-title {
      color: var(--sub-text);
      font-size: 14px;
    }
  }

  & .stage-menu-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px 0;

    & .stage-title {
      color: var(--sub-text);
      font-size: 14px;
      padding: 2px 8px;
    }
  }

  & .stage-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;
  }

  & .toggle-bar-button {
    & img {
      transform: rotate(90deg);
    }
    &.open {
      transform: rotate(180deg);
    }
  }
}

.side-body {
  padding: 12px 8px;
}

.mid-side-bar {
  width: 230px;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;

  & .side-body {
    display: flex;
    flex-direction: column;
    gap: 32px 0;
  }

  &.open {
    animation-name: openSidebar;
  }

  &.close {
    animation-name: closeSidebar;
  }
}

.modal-bg {
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: #00000040;
  z-index: 200;
}

.right-modal-box {
  width: 450px;
  position: absolute;
  height: 100%;
  right: 0;
  background-color: var(--nav-bg);

  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  animation-name: openRightModal;

  & p,
  span {
    color: var(--white);
  }

  & .title {
    font-weight: 600;
    & span {
      font-weight: 600;
    }
  }

  & .close-modal-button {
    & img {
      width: 20px;
      height: 20px;
    }
  }

  & .body-wrap {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    /* gap: 16px 0; */
    gap: 24px 0;
  }

  & .input-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px 0;
    & .input-title {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }

  & .modal-bottom {
    position: absolute;
    bottom: 0;
    padding: 24px 16px;
    width: 100%;
    display: flex;
    gap: 0 8px;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--dark-gray);
    & button {
      font-size: 14px;
    }
  }
}

@keyframes openSidebar {
  0% {
    margin-left: -230px;
  }
  100% {
    margin-left: 0px;
  }
}

@keyframes closeSidebar {
  0% {
    margin-left: 0px;
  }
  100% {
    margin-left: -230px;
  }
}

@keyframes openRightModal {
  0% {
    margin-right: -450px;
  }
  100% {
    margin-right: 0px;
  }
}

.side-bar-header {
  & .header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }

  & .header-search-wrap {
    & > div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 16px;
      gap: 0 8px;
    }

    & .search-input {
      & > input {
        font-size: 14px;
        height: 22px;
      }
      & > img {
        width: 22px;
      }
    }

    & .clear-input-button {
      border: 1px solid var(--white);
      padding: 4px;
      & img {
        width: 12px;
        height: 12px;
        filter: brightness(10);
      }
    }
  }

  & h2 {
    color: var(--white);
    font-size: 18px;
  }

  & .tool-item {
    & img {
      height: 22px;
    }
  }
}

& .side-tool-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 8px;

  & .toggle-button {
    transform: rotate(90deg);
  }

  & .tool-item {
    & img {
      width: 20px;
    }
  }
}

.sub-side-bar {
  width: 230px;
  border-right: 1px solid var(--dark-gray);
}

.side-bar-contents {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  & header {
    & .setting-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;

      & .sub-title {
        font-size: 14px;
        color: var(--sub-text);
      }
    }
  }
}

.tab {
  color: var(--sub-text);
  background-color: transparent;
  padding: 6px 10px;
  font-size: 18px;
  border-bottom: 4px solid transparent;
  cursor: pointer;

  &:hover {
    background-color: var(--hover-primary);
  }

  & .number {
    font-size: 14px;
  }
  &.current {
    border-bottom: 4px solid var(--primary);
    color: var(--primary);
    & span {
      color: var(--primary);
    }
  }

  & span {
    color: var(--sub-text);
  }
}

.border-select-box {
  display: flex;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  & > div {
    padding: 2px 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      background-color: var(--hover-tool-bg);
    }

    &:first-child {
      gap: 0 8px;
      border-radius: 8px 0 0 8px;
      border: 1px solid var(--sub-text);
      border-right: none;
      & span {
        color: var(--sub-text);
      }

      & img {
        width: 16px;
        height: 16px;
      }
    }

    &:last-child {
      border: 1px solid var(--sub-text);
      border-radius: 0 8px 8px 0;
      & img {
        width: 18px;
        height: 18px;
      }
    }
  }
}

.tool-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  border-radius: 8px;
  cursor: pointer;
  transition-duration: 0.2s;
  &:hover {
    background-color: var(--hover-tool-bg);
  }

  &.disabled {
    background-color: transparent;
    cursor: auto;
  }
}

.select-arrow {
  transform: rotate(90deg);
}

.badge-wrap {
  width: fit-content;
  padding: 2px 6px;
  background-color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: 0 6px;

  & span {
    color: var(--white);
    font-size: 12px;
  }
}

.pagenation-arrow-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagenation-arrow {
  padding: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;

  /* &:hover { */
  /* background-color: var(--black); */
  /* } */

  & img {
    width: 22px;
    cursor: pointer;
  }

  &.prev {
    & img {
      transform: rotate(180deg);
    }
  }
}

.info-tooltip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    & .tooltip {
      display: initial;
    }
  }

  & img {
    width: 18px;
  }
}

.tooltip {
  position: absolute;
  background: #dbdde2;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 400px;
  width: max-content;
  left: 28px;
  line-height: 24px;
  font-size: 14px;
  display: none;
  z-index: 10;
}

.setting-border-box {
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 16px;
}

.setting-top-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  & > div {
    display: flex;
    align-items: center;
    gap: 16px;

    & .tool-item {
      & img {
        height: 28px;
      }
    }
  }

  & .top-left {
    & .primary-button {
      & img {
        filter: brightness(10);
      }
    }
  }

  & .search-input {
    & input {
      color: var(--black);
    }
  }
}

.setting-box-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow: auto;
  padding-bottom: 24px;
}

.setting-box-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;

  & > div {
    display: flex;
    align-items: center;
    gap: 0 16px;
  }

  & .item-left {
    & .item-img {
      width: 40px;
      height: 40px;
      background-color: var(--primary);
      padding: 6px;
      & img {
        filter: brightness(10);
      }
    }

    & .item-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;
      color: var(--sub-text);

      & span {
        font-size: 14px;
        color: var(--sub-text);
      }

      & .item-title {
        font-weight: 600;
        color: var(--black);
      }
    }
  }
}

.setting-table {
  & th {
    background-color: var(--table-bg);
    height: 50px;
  }

  & tr {
    border-bottom: 1px solid var(--input-border);
  }
}

.pagenation-contents {
  position: relative;
  padding-bottom: 52px;
}

.bottom-pagenation-wrap {
  display: flex;
  justify-content: flex-end;
  gap: 0 24px;
  padding: 10px;
  background-color: var(--bg);
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  height: 52px;

  & p,
  span {
    color: var(--white);
  }

  & .pagenation-text-wrap {
    display: flex;
    align-items: center;
    gap: 0 16px;
  }

  & .select-per-page {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;

    & .select-arrow {
      width: 22px;
      height: 22px;
    }
  }

  & .pagenation-arrow {
    &.active {
      & img {
        filter: brightness(100);
      }
    }
  }
}

.datalist {
  position: relative;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background-color: transparent;

  &:hover {
    border: 1px solid var(--primary) !important;
  }

  &:has(input:focus) {
    border: 1px solid var(--primary);
    outline: 0;
    box-shadow: 0 0 0 4px #b5d9d330;
  }

  &.open-datalist {
    & .datalist-option-wrap {
      display: initial;
      max-height: 300px;
    }
    & .datalist-arrow {
      transform: rotate(180deg);
    }
  }

  & span {
    font-size: 14px;
  }

  & .datalist-input-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0 8px;

    &:hover {
      & .datalist-clear-button {
        opacity: 1;
      }
    }
  }

  & .datalist-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    padding: 4px 0;
    background-color: transparent;
    width: 100%;
  }

  & .datalist-option-wrap {
    display: none;
    position: absolute;
    width: 100%;
    z-index: 20;
    right: 0;
    overflow-y: auto;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid var(--input-border);
  }

  & .datalist-option-item {
    cursor: pointer;
    padding: 8px 10px;
    gap: 0 8px;
    &:hover {
      background-color: var(--hover-primary);
    }
  }

  & .datalist-tag-wrap {
    display: none;
    &:has(span) {
      display: flex;
      align-items: center;
      gap: 0 8px;
    }
  }

  &.checkbox-datalist {
    & .datalist-option-item {
      display: flex;
      align-items: center;
    }
  }

  & .datalist-tag-item {
    line-height: 14px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 8px;
    background-color: var(--search-input-bg);
    border: 1px solid var(--input-border);
  }

  & .datalist-clear-button {
    opacity: 0;
  }

  & .datalist-clear-circle {
    width: 18px;
    height: 18px;
    background-color: var(--gray-button);
    border-radius: 50%;
    position: relative;
    transform: rotate(45deg);

    &:hover {
      box-shadow: var(--mudi-shadow);
    }

    & > div {
      background-color: var(--white);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      &:first-child {
        width: 2px;
        height: 8px;
      }
      &:last-child {
        width: 8px;
        height: 2px;
      }
    }
  }
}

.connect-channel-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100vh;
}

.connect-right-bar {
  background-color: var(--nav-bg);
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px 0;

  & .channel-logo-img {
    width: 128px;
  }

  & .channel-name {
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
  }

  & .channel-text {
    color: var(--sub-text);
    font-size: 14px;
    line-height: 20px;
  }
}

.tutorial-inner {
  padding: 0 44px;
}

.tutorial-back-wrap {
  padding: 16px 0;
  margin-bottom: 12px;
  & .back-button {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    & > img {
      width: 22px;
      transform: rotate(180deg);
      filter: var(--primary-filter);
    }
    & > span {
      color: var(--primary);
      font-weight: 600;
    }
  }
}

.tutorial-body-wrap {
  max-width: 60%;

  & .tutorial-contents {
    display: flex;
    flex-direction: column;
    gap: 16px 0;
  }

  & .tutorial-main-wrap {
    & .link-text {
      font-size: 14px;
      font-weight: 600;
    }
  }

  & .tutorial-wrap {
    display: flex;
    flex-direction: column;
  }

  & .tutorial-title {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    & .title {
      font-size: 22px;
      font-weight: 700;
    }

    & .sub-text {
      font-size: 14px;
      color: var(--sub-text);
      line-height: 20px;
    }
  }

  & .tutorial-step-wrap {
    display: flex;
    gap: 0 12px;
    align-items: center;
  }

  & .tutorial-step-item {
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0 8px;
    background-color: var(--table-bg);

    & .index {
      display: flex;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      justify-content: center;
      align-items: center;
      font-weight: 600;
      background-color: var(--light-gray);
      color: var(--table-bg);
      font-size: 14px;
    }

    & .title {
      color: var(--light-gray);
      font-size: 14px;
      font-weight: 600;
    }

    &.complete {
      background-color: var(--hover-primary);
      & .index {
        background-color: var(--primary);
      }

      & .title {
        color: var(--primary);
      }
    }

    &.current {
      background-color: var(--primary);
      & .index {
        background-color: var(--white);
        color: var(--primary);
      }

      & .title {
        color: var(--white);
      }
    }
  }

  & .tutorial-contents-wrap {
    & .step-title {
      font-weight: 600;
    }

    & .step-list {
      display: flex;
      flex-direction: column;
      gap: 24px 0;

      & li {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px 0;

        & span {
          font-size: 14px;
        }

        & .bold {
          font-weight: 600;
        }

        & input {
          padding: 8px 10px;
          font-size: 14px;
          width: 50%;
        }
      }
    }
  }

  & .link-text {
    & a {
      font-size: 14px;
      color: var(--primary);
    }
  }

  & .next-step-button {
    width: fit-content;
  }

  & .connect-button {
    width: fit-content;
  }
}

.popper-wrap {
  position: absolute;
  bottom: -10px;
  right: 0;
  transform: translateY(100%);
  background-color: var(--nav-bg);
  width: max-content;
  border: 1px solid var(--dark-gray);
  border-radius: 8px;
  z-index: 10;

  & > div {
    padding: 12px 20px;
  }

  & .popper-title {
    border-bottom: 1px solid var(--dark-gray);

    & .title-text {
      font-weight: 600;
    }
  }

  & .popper-body {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
  }

  & .popper-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 0 8px;

    & button {
      font-size: 14px;
    }
  }

  & .input-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px 0;
    & .input-title {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }
}

.hide {
  display: none !important;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* CSS login */

#login {
  & .move-page-text {
    display: block;
    padding-top: 16px;
    color: var(--sub-text);

    &.forgat-password {
      text-align: right;
    }

    &.sign-up {
      text-align: center;
    }

    & a {
      color: var(--primary);
    }
  }

  & hr {
    border: none;
    background-color: var(--dark-gray);
    height: 1px;
  }
}

.login-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 76px;
  & h1 {
    /* color: white; */
    font-size: 22px;
    font-weight: 600;
  }
}

.login-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px;

  & p,
  span {
    color: white;
  }
}

.login-inner {
  display: flex;
  flex-direction: column;
  gap: 62px 0;
  justify-content: center;
  max-width: 720px;
  width: 100%;
}

.login-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px 0;

  & h2 {
    font-size: 24px;
    font-weight: 700;
    /* color: var(--white); */
  }
  & .login-sub-title {
    color: var(--sub-text);
    font-weight: 600;
  }
}

.login-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px 0;
}

#loginButton {
  width: 100%;
}

/* CSS dashboard */

.dashboard-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#dashboard {
  & .updown-icon {
    width: 18px;
    height: 18px;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    &.up {
      background-color: var(--green);
    }
    &.down {
      background-color: var(--red);
    }
  }

  & .lifecycle-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px 0;
    overflow: auto;
    grid-column: 1 / span 2;

    & .title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    & h3 {
      /* color: var(--white); */
      font-size: 22px;
      font-weight: 600;
    }

    & .lifecycle-setting {
      width: 24px;
      filter: brightness(0);
      cursor: pointer;
    }

    & .lifecycle-card-wrap {
      display: flex;
      gap: 0 16px;
      align-items: center;
      width: max-content;
      padding-bottom: 16px;
    }

    & .lifecycle-card-container {
      overflow: auto;
    }

    & .lifecycle-card {
      width: 220px;
      padding: 12px 16px;
      background-color: #d0deff21;
      display: flex;
      flex-direction: column;
      gap: 8px 0;

      & .card-title-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        & .card-title-text {
          font-weight: 600;
        }
      }

      & .card-contents-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
        & .number-text {
          font-size: 24px;
        }
        & .percent-text {
          font-size: 14px;
          &.up {
            color: var(--green);
          }
          &.down {
            color: var(--red);
          }
        }
      }

      & .card-bottom-wrap {
        display: flex;
        align-items: center;
        gap: 0 16px;

        & .bottom-item {
          display: flex;
          align-items: center;
          gap: 0 4px;
          & img {
            height: 18px;
          }
          & span {
            font-size: 14px;
          }
        }
      }
    }
  }

  & .contents-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 36px 0;
    min-height: 635px;
    position: relative;

    & h4 {
      font-size: 18px;
      font-weight: 600;
    }

    & .chat-room-list {
      display: flex;
      flex-direction: column;
    }

    & .chat-room-item {
      border-top: 1px solid var(--light-gray);
      & .item-wrap {
        display: flex;
        justify-content: space-between;

        padding: 10px;
        margin-top: 6px;
        margin-bottom: 6px;
      }

      &:first-child {
        border: none;
        & .item-wrap {
          margin-top: 0;
        }
      }
    }

    & .left-chat-wrap {
      display: flex;
      gap: 0 8px;
      align-items: center;
    }

    & .chat-info-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
    }

    & .chat-date {
      display: flex;
      gap: 4px;
      align-items: center;
      & span {
        color: var(--sub-text);
      }
      & img {
        width: 14px;
      }
    }

    & .left-img-container {
      width: 40px;
      height: 40px;
    }

    & .user-img {
      &.left {
        width: 40px;
        height: 40px;
      }
      &.right {
        width: 28px;
        height: 28px;
      }
    }

    & .right-profile-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;

      & .right-name {
        font-size: 14px;
      }
    }

    & .bottom-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: absolute;
      bottom: 0;
      width: 100%;
      left: 0;
      padding: 16px;
    }

    & .pagenation-wrap {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    & .pagenation-arrow {
      background-color: transparent;
      & img {
        filter: brightness(0);
      }
      &:disabled {
        & img {
          filter: none;
        }
      }
    }

    & .pagenation-text {
      font-size: 14px;
      color: var(--sub-text);
      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }
  }

  & .contracts-wrap {
    & .contents-tab-wrap {
      display: flex;
      align-items: center;
      gap: 0 8px;
    }

    & .chat-room-item {
      cursor: pointer;

      & .item-wrap {
        align-items: center;
        &:hover {
          background-color: var(--hover-primary);
        }
      }
    }

    & .chat-contents-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px 0;
      justify-content: center;

      & .msg-wrap {
        display: flex;
        align-items: center;
        gap: 0 6px;
      }

      & .msg {
        font-size: 14px;
      }

      & .sns-logo {
        width: 14px;
      }

      & .type-icon {
        border-radius: 50%;
        width: 18px;
        padding: 2px;

        &.up {
          background-color: var(--blue);
        }
        &.down {
          background-color: var(--orange);
          transform: rotate(180deg);
        }
      }
    }

    & .chat-info-wrap {
      & .chat-date {
        & span {
          font-size: 12px;
        }
      }
    }
  }

  & .members-wrap {
    & .contents-box-title {
      display: flex;
      flex-direction: column;
      gap: 12px 0;

      & .select-box-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0 24px;
      }

      & .members-select-box {
        width: 100%;
      }
    }

    & .members-select-box {
      & .datalist-option-wrap {
        background-color: var(--white);
      }

      &.status {
        & .status-option-item {
          display: flex;
          align-items: center;
          gap: 8px;
        }

        & .status-circle {
          display: block;
          width: 10px;
          height: 10px;
          border-radius: 50%;
          &.green {
            background-color: var(--green);
          }
          &.orange {
            background-color: var(--orange);
          }
          &.gray {
            background-color: var(--gray-button);
          }
        }
      }
    }

    & .members-profile-wrap {
      display: flex;
      flex-direction: column;
      gap: 2px 0;
      & .assigned-text {
        font-size: 14px;
        color: var(--sub-text);
        & span {
          font-size: 14px;
          color: var(--sub-text);
        }
      }
    }

    & .chat-info-wrap {
      & .chat-date {
        & span {
          font-size: 14px;
        }
      }
    }
  }

  & .conversations-wrap {
    grid-column: 1 / span 2;
    & .status-wrap {
      display: flex;
      align-items: center;
      gap: 0 32px;
    }

    & .status-title {
      display: flex;
      align-items: center;
      gap: 8px;
      & span {
        font-weight: 600;
        color: var(--sub-text);
      }
    }

    & .status-item {
      display: flex;
      flex-direction: column;
      gap: 8px 0;
    }

    & .status-contents {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      line-height: 28px;
    }

    & .status-number {
      font-size: 36px;
    }

    & .status-percent {
      line-height: 14px;
      color: var(--sub-text);

      &.up {
        color: var(--green);
      }

      &.down {
        color: var(--red);
      }
    }

    & .conversations-chart {
      flex-grow: 1;
    }

    & .conversations-bottom {
      text-align: right;
    }
  }
}

/* CSS inbox */

#inbox {
  & .recipient-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  & .assign-img {
    width: 18px;
    height: 18px;
  }

  & .sub-side-bar {
    & .side-bar-header {
      & .header-wrap {
        padding: 0 16px;
      }

      & .tab {
        padding: 12px 10px;
      }
    }

    & .side-tab-wrap {
      display: flex;
    }

    & .filter-wrap {
      padding: 0 8px;
      padding-bottom: 4px;
      display: flex;
      width: 100%;
      gap: 0 8px;
    }

    & .filter-select {
      display: flex;
      max-width: fit-content;
      width: 50%;
      height: 32px;
      align-items: center;
      padding: 0 8px;
      gap: 4px;
      cursor: pointer;

      & img {
        height: 16px;
        transform: rotate(90deg);
      }

      & span {
        color: var(--sub-text);
        font-size: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }

    & .toggle-button-wrap {
      display: flex;
      align-items: center;
      gap: 4px;

      & img {
        height: 24px;
        cursor: pointer;
      }

      & span {
        color: var(--sub-text);
        font-size: 14px;
        cursor: pointer;
      }
    }

    & .unreplied-toggle-button {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;

      &:has(input:checked) {
        & img {
          transform: rotate(180deg);
          filter: var(--primary-filter);
        }
      }

      & input {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
      }
    }

    & .chat-room-item {
      padding: 0px 8px;
      padding-top: 8px;
      display: flex;
      gap: 0 12px;
      border-radius: 8px;
      cursor: pointer;
      transition-duration: 0.4s;
      overflow: hidden;

      &:hover {
        background-color: var(--bg);

        /* & .chat-date {
          display: none;
        }

        & .chat-setting {
          display: flex;
        } */
      }

      &.current {
        background-color: var(--hover-primary);
      }

      &:last-child {
        & .chat-contents-wrap {
          border: none;
        }
      }
    }

    & .chat-contents-wrap {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px 0;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--dark-gray);
      overflow: hidden;
    }

    & .chat-title-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 24px;
      & span {
        color: var(--white);
      }

      & .user-name {
        font-size: 16px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        width: 100%;
      }

      & .chat-date {
        font-size: 12px;
        flex-shrink: 0;
      }

      & .chat-setting {
        display: none;
        height: 100%;

        & img {
          height: 100%;
        }
      }
    }

    & .chat-msg-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0 4px;

      & .msg-wrap {
        display: flex;
        gap: 0 4px;
        overflow: hidden;

        & img {
          width: 14px;
          &.send {
            transform: rotate(45deg);
          }
          &.receive {
            transform: rotate(-135deg);
          }
        }

        & span {
          color: var(--sub-text);
          font-size: 14px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          flex-grow: 1;
        }
      }

      & .msg-num {
        background-color: var(--primary);
        width: 18px;
        border-radius: 50%;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        flex-shrink: 0;
      }
    }

    & .chat-bottom-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }

  & .side-bar-contents {
    & .header {
      & .border-select-box {
        & > div {
          height: 28px;
        }
      }
    }

    & .header-left {
      display: flex;
      align-items: center;
      gap: 0 12px;

      & .recipient-img {
        cursor: pointer;
      }
    }

    & .next-lifecycle-button {
      & img {
        height: 18px;
        width: 18px;
      }
    }

    & .header-right {
      & .call-tool {
        display: flex;
        align-items: center;

        & .select-arrow {
          width: 16px;
          height: 16px;
        }
      }
    }

    & .assign-select {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      & span {
        font-size: 14px;
      }

      & .select-arrow {
        width: 16px;
        height: 16px;
      }
    }
  }

  & .inbox-wrap {
    height: 100%;
    display: flex;
    overflow: hidden;

    & .input-wrap {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
      gap: 4px 0;
      & .input-title {
        font-size: 14px;
        color: var(--sub-text);
        font-weight: 600;
      }
    }

    & .chat-wrap {
      display: flex;
      flex-direction: column;
    }

    & .chat-room-wrap {
      overflow: auto;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 24px 0;
      padding: 24px 12px;

      & .chat-left {
        display: flex;
        & .msg-wrap {
          justify-content: flex-start;
        }
        & .msg {
          background-color: #e6e6e8;
        }
      }

      & .chat-center {
        display: flex;
        justify-content: center;
      }

      & .chat-right {
        display: flex;
        & .msg-wrap {
          justify-content: flex-end;
        }
        & .msg {
          background-color: var(--hover-primary);
        }
      }

      & .chat-date {
        padding: 4px 8px;
        background-color: var(--gray-button);
        border-radius: 8px;
        font-size: 14px;
      }

      & .notice-text {
        color: var(--sub-text);
        font-size: 14px;
      }

      & .msg-wrap {
        display: flex;
        gap: 8px;
        align-items: flex-end;
        width: 100%;
      }

      & .user-img {
        width: 32px;
        height: 32px;
      }

      & .msg {
        padding: 8px;
        border-radius: 8px;
        max-width: 50%;
        width: fit-content;
        word-break: keep-all;
        line-height: 24px;
      }

      & .msg-check {
        width: 18px;
      }
    }

    & .chat-bottom-wrap {
      height: 200px;
      flex-shrink: 0;
      padding: 12px;
      padding-top: 0;
    }

    & .enter-msg-wrap {
      padding: 14px;
      border: 1px solid var(--input-border);
      background-color: var(--search-input-bg);
      border-radius: 8px;
      height: 100%;
      display: flex;
      flex-direction: column;
      gap: 14px 0;
    }

    & .enter-msg-channel {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      width: fit-content;
      & img {
        width: 18px;
      }

      & .channel-select {
        & span {
          font-size: 14px;
          font-weight: 600;
        }
      }
    }

    & .msg-textarea {
      flex-grow: 1;
      border: none;
      background-color: transparent;
      outline: none;
      resize: none;

      &:placeholder {
        color: var(--placeholder);
      }
    }

    & .enter-msg-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    & .enter-button-wrap {
      display: flex;
      align-items: center;
      gap: 0 12px;

      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }

    & .enter-button {
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      border-radius: 8px;
      background-color: var(--primary);

      &:disabled {
        background-color: var(--gray-button);
        & img {
          filter: initial;
        }
      }

      & img {
        width: 20px;
        transform: rotate(45deg);
        filter: brightness(10);
      }
    }

    & .msg-tool-wrap {
      display: flex;
      gap: 0 4px;
      align-items: center;
      & .tool-item {
        &:hover {
          background-color: var(--input-border);
        }
        & img {
          height: 24px;
        }
      }

      & .emoji-tool {
        position: relative;
        & emoji-picker {
          top: -100px;
          position: absolute;
          transform: translate(100%, -100%);
          right: 0;
        }
      }
    }

    & .user-info-side-bar {
      width: 300px;
      flex-shrink: 0;
      background-color: var(--nav-bg);

      & p,
      span {
        color: var(--white);
      }

      & > div {
        padding: 8px 10px;
        border-bottom: 1px solid var(--dark-gray);

        &:last-child {
          border: none;
        }
      }

      & .user-info-title {
        display: flex;
        align-items: center;
        gap: 0 4px;

        & .toggle-bar-button {
          & img {
            height: 22px;
            transform: rotate(-90deg);
          }
        }

        & .title-text {
          font-size: 18px;
          font-weight: 600;
        }
      }

      & .profile-wrap {
        display: flex;
        flex-direction: column;
        gap: 10px 0;
        & .profile-top {
          display: flex;
          align-items: center;
          gap: 0 8px;
        }

        & .profile-bottom {
          display: flex;
          align-items: center;
          justify-content: space-between;

          & .channel-logo {
            width: 18px;
          }

          & .channel-button {
            background-color: transparent;
            color: var(--white);
            font-size: 14px;
            cursor: pointer;
            &:hover {
              background-color: var(--hover-tool-bg);
            }
          }
        }

        & .user-img {
          width: 40px;
          height: 40px;
        }

        & .user-text {
          display: flex;
          flex-direction: column;
          & .user-name {
            font-weight: 600;
          }

          & .user-id {
            font-size: 14px;
          }
        }
      }

      & .fields-wrap {
        & .fields-title {
          display: flex;
          justify-content: space-between;
          align-items: center;
        }

        & .manage-link {
          color: var(--primary);
          cursor: pointer;
          font-size: 14px;
          padding: 0 16px;
          &:hover {
            text-decoration: underline;
          }
        }

        & .fields-label-list {
          padding-top: 8px;
          display: flex;
          flex-direction: column;
          gap: 8px 0;
        }

        & .fields-label-item {
          display: flex;
          flex-direction: column;
          gap: 4px 0;
        }

        & .fields-label-text {
          display: flex;
          align-items: center;
          gap: 0 4px;

          & .label-text {
            color: var(--sub-text);
            font-size: 14px;
          }

          & .tooltip {
            left: auto;
            right: 28px;
          }
        }

        & .phone-number-wrap {
          display: flex;
          gap: 0 10px;
          align-items: center;
          border-radius: 8px;
          transition-duration: 0.3s;

          & .phone-country-select {
            & span {
              font-weight: 600;
            }
          }

          &:has(input:focus) {
            padding: 8px 12px;
            border: 1px solid var(--dark-gray);
          }

          & input {
            width: 100%;
            background-color: transparent;
            border: none;
            color: var(--white);
            outline: none;
            &:hover {
              color: var(--primary);
            }

            &:focus {
              color: var(--white);
            }
          }
        }

        & .field-input {
          border-radius: 8px;
          background-color: transparent;
          border: none;
          color: var(--white);
          outline: none;
          transition-duration: 0.3s;

          &:hover {
            color: var(--primary);
          }

          &:focus {
            color: var(--white);
            padding: 8px 12px;
            border: 1px solid var(--dark-gray);
          }
        }
      }
    }
  }

  & .closing-notes-button-wrap {
    position: relative;
  }

  & .open-commit-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  & .closing-notes-wrap {
    width: 460px;
    cursor: auto;
    & .category-sub-text {
      font-size: 14px;
      color: var(--sub-text);
    }

    & .summary-textarea {
      width: 100%;
      height: 70px;
      background-color: transparent;
      border-color: var(--dark-gray);
      resize: none;
      color: var(--white);
      padding: 8px 10px;
      font-size: 14px;
    }
  }
}

& .create-custom-inbox {
  & .header-wrap {
    & .title {
      display: flex;
      align-items: center;
      gap: 0 8px;
      & > span {
        font-size: 18px;
      }

      & .info-tooltip-wrap {
        position: relative;

        &.open {
          & .tool-item {
            & img {
              filter: var(--primary-filter);
            }
          }

          & .tooltip {
            display: initial;
          }
        }

        & .tool-item {
          & img {
            width: 20px;
            height: 20px;
          }
        }

        & .tooltip {
          left: 50%;
          transform: translate(-50%, 100%);
          bottom: 0;
          & p {
            color: var(--black);
            font-size: 14px;
            font-weight: 600;
          }

          & ul {
            list-style: initial;
            padding-left: 24px;
            padding-top: 4px;
          }

          & li {
            font-size: 14px;
          }
        }
      }
    }
  }

  & .custom-inbox-label {
    display: flex;
    align-items: center;
    gap: 0 8px;
    background-color: var(--bg);
    padding: 6px 10px;
    width: 100%;
    border-radius: 8px;
    border-color: var(--dark-gray);
    & > img {
      width: 18px;
    }
    & > input {
      background-color: transparent;
      border: none;
      color: var(--white);
    }
  }

  & .sharing-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px 0;
    margin-top: 8px;
  }

  & .sharing-option-item {
    display: flex;
    padding: 12px;
    gap: 0 12px;
    background-color: var(--bg);
    border-radius: 8px;
    align-items: flex-start;
    border: 1px solid var(--dark-gray);
    cursor: pointer;

    &:has(input:checked) {
      border-color: var(--primary);
      background-color: var(--hover-primary);
    }

    & .option-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    & .option-title {
      font-size: 14px;
    }

    & .option-text {
      font-size: 14px;
      color: var(--sub-text);
    }
  }

  & .user-select-box {
    border-color: var(--dark-gray);
    background-color: var(--bg);

    & .datalist-input {
      color: var(--white);
    }

    & .datalist-tag-item {
      border-color: var(--dark-gray);
    }

    & .datalist-arrow {
      filter: brightness(10);
    }

    & .datalist-option-wrap {
      border-color: var(--dark-gray);
    }
  }
}

& .create-new-contact {
  & .title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;

    & .assign-select {
      & span {
        font-size: 14px;
      }
    }
  }

  & .body-wrap {
    & > div {
      display: flex;
      flex-direction: column;
      gap: 16px 0;
    }
  }

  & .contact-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px 0;

    & input {
      width: 100%;
      color: var(--white);
    }

    & .input {
      padding: 8px 10px;
      background-color: var(--bg);
    }

    & .phone-number-wrap {
      display: flex;
      align-items: center;
      gap: 0 10px;
      width: 100%;
      & input {
        background-color: transparent;
        border: none;
        outline: none;
      }
    }
  }

  & .tags-datalist {
    background-color: var(--bg);
    border: 1px solid transparent;

    & input {
      color: var(--white);
      font-size: 16px;
    }

    & .datalist-tag-item {
      border-color: var(--dark-gray);
    }

    & .datalist-option-wrap {
      max-height: 165px;
      overflow-y: auto;
      &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }
      &::-webkit-scrollbar-thumb {
        background: var(--scroll-thumb);
        border-radius: 10px;
      }
      &::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.03);
      }
    }
  }
}

/* CSS contacts */

#contracts {
  & .side-bar-contents {
    & .header {
      & .icon-input {
        background-color: var(--search-input-bg);
        padding: 4px 10px;
        & img {
          width: 24px;
        }
      }

      & .border-select-box {
        & > div {
          height: 36px;
          background-color: var(--primary);
          border-color: var(--bg);

          &:hover {
            filter: contrast(0.8);
          }

          & span {
            color: var(--white);
          }
          & img {
            filter: brightness(100);
          }
        }
      }
    }
  }

  & .contacts-wrap {
    width: 100%;
    height: 100%;
  }

  & .table-container {
    width: 100%;
    overflow: auto;
    max-height: calc(100% - 52px);
  }

  & .contacts-table {
    & thead {
      position: sticky;
      top: 0;
      background-color: var(--white);
      & th {
        background-color: var(--white);
      }
    }

    & tbody {
      & tr {
        cursor: pointer;

        &:nth-of-type(odd) {
          & td {
            background-color: var(--table-bg);
          }
        }

        &:hover {
          background-color: var(--hover-primary);
        }
      }

      & td {
        background-color: var(--white);
      }
    }

    & .user-name-td {
      display: flex;
      align-items: center;
      gap: 8px;

      & .user-img {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
      }

      & span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    & .channel-td {
      & img {
        width: 18px;
        height: 18px;
      }
    }
  }
}

/* CSS general */

.general-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  max-width: 60%;
  width: 100%;

  & .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px 0;

    & .input-title {
      display: flex;
      gap: 4px;
      align-items: center;

      & span {
        font-size: 14px;
      }
    }

    & input {
      font-size: 14px;
    }
  }

  & .weekly-box {
    display: flex;
    flex-direction: column;
    gap: 24px 0;

    & .weekly-toggle-wrap {
      & .weekly-title {
        margin-bottom: 6px;
      }

      & .toggle-wrap {
        display: flex;
        gap: 40px;

        & span {
          font-size: 14px;
          color: var(--sub-text);
        }

        & img {
          height: 42px;
          cursor: pointer;
        }
      }
    }

    & .weekly-recipient-wrap {
      display: flex;
      flex-direction: column;
      gap: 8px 0;

      & .recipient-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
      }

      & .recipient-item {
        display: flex;
        align-items: center;
        gap: 0 4px;
        border: 1px solid var(--sub-text);
        border-radius: 8px;
        padding: 4px 8px;
        width: fit-content;

        & span {
          font-size: 14px;
          color: var(--sub-text);
        }

        & img {
          width: 14px;
          cursor: pointer;
          /* filter: brightness(0); */
        }
      }

      & .add-recipient-button {
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        border: 1px solid var(--sub-text);
        background-color: var(--sub-text);
        width: fit-content;

        &:hover {
          background-color: #8c8e94;
          border: 1px solid #8c8e94;
        }

        & img {
          width: 22px;
          height: 22px;
          filter: brightness(10);
        }
      }
    }
  }
}

/* CSS user */

.user-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-box-item {
    & .last-seen-on-text {
      font-size: 14px;
      color: var(--sub-text);
    }
  }
}

/* CSS teams */

.teams-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-box-item {
    & .manage-button {
      & img {
        filter: brightness(1.2) grayscale(1);
      }
    }
  }
}

/* CSS channels */

.channels-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;

  & .setting-top-wrap {
    & .icon-input {
      background-color: var(--search-input-bg);
      padding: 4px 10px;
      & img {
        width: 24px;
      }
      & input {
        color: var(--black);
      }
    }
  }

  & .channel-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

    overflow: auto;
    padding-bottom: 24px;
  }

  & .channel-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-grow: 1;
  }

  & .channel-item {
    display: flex;
    flex-direction: column;
    & .channel-text-wrap {
      display: flex;
      flex-direction: column;
      gap: 6px 0;
    }

    & .channel-name {
      font-weight: 600;
    }

    & .channel-text {
      font-size: 14px;
      color: var(--sub-text);
      & span {
        font-size: 14px;
        color: var(--sub-text);
      }
    }

    & .channel-bottom {
      padding-top: 16px;
      border-top: 1px solid var(--input-border);
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }

    & .channel-img {
      flex-shrink: 0;
    }
  }
}

#allChannel {
  & .cate-tab-wrap {
    display: flex;
    align-items: center;
    gap: 0 8px;
  }

  & .category-name {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
  }
  & .channel-item {
    & .channel-body {
      align-items: flex-start;
    }
  }
}

/* CSS integrations */

.integrations-wrap {
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
  & .setting-box-list {
    height: 100%;
    overflow: auto;
  }

  & .setting-box-item {
    & .logo-img {
      width: 100px;
    }

    & .manage-button {
      padding: 4px 14px;
      border: 1px solid var(--input-border);
      color: var(--sub-text);
    }
  }
}

/* CSS growthwidgets */

.widgets-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

/* CSS contactfields */

.contact-fields-wrap {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  & .setting-table-container {
    height: 100%;
    overflow: auto;
  }
}

/* CSS lifecycle */

.lifecycle-wrap {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 48px 0;
  & .lifecycle-view-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & .text-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;

      & .title {
        font-weight: 600;
      }

      & .sub-text {
        color: var(--sub-text);
      }
    }

    & .view-toggle-button {
      width: 42px;
      height: 42px;
    }
  }

  & .lifecycle-stages-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    & .stages-top {
      display: flex;
      align-items: center;
      justify-content: space-between;

      & .title {
        font-size: 22px;
        font-weight: 600;
      }

      & .button-wrap {
        display: flex;
        align-items: center;
        gap: 0 8px;
      }
    }

    & .stages-box-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 16px;
      padding-top: 16px;
      overflow: hidden;

      & > div {
        border: 1px solid var(--input-border);
        border-radius: 8px;
        height: fit-content;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 100%;
      }

      & .box-left {
        & .box-title {
          background-color: var(--hover-primary);
        }

        & .box-body {
          overflow: auto;
          & .stage-item {
            align-items: center;
          }
        }
      }

      & .box-right {
        & .box-title {
          background-color: #ff623a30;
        }

        & .box-body {
          & .stage-item {
            align-items: flex-start;
          }
        }
      }

      & .box-title {
        padding: 16px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px 0;
        & .title {
          font-weight: 600;
        }

        & .sub-text {
          font-size: 14px;
        }
      }

      & .box-body {
        padding: 16px;

        & .stage-list-wrap {
          display: flex;
          flex-direction: column;
          gap: 16px 0;
        }

        & .stage-item {
          display: flex;
          gap: 0 8px;

          & .grip-button {
            width: fit-content;
            & img {
              height: 22px;
              width: 22px;
            }
          }

          & .emoticon {
            font-size: 22px;
            line-height: 22px;
            padding: 4px;
            border: 1px solid var(--input-border);
            border-radius: 8px;
            cursor: pointer;

            &:hover {
              background-color: var(--hover-tool-bg);
            }
          }

          & .stage-contents {
            display: flex;
            flex-direction: column;
            gap: 6px 0;
            flex-grow: 1;
            & span {
              font-size: 14px;
              color: var(--sub-text);
            }
          }

          & .stage-title-input {
            padding: 2px 8px;
            border-radius: 8px;
            border: 1px solid var(--input-border);
            display: flex;
            gap: 0 8px;
            height: 32px;
            align-items: center;

            &:hover {
              border-color: var(--primary);
            }

            &:has(input:focus) {
              border-color: var(--primary);
              outline: 0;
              box-shadow: 0 0 0 4px #b5d9d330;
            }

            & input {
              border: none;
              outline: none;
              flex-grow: 1;

              &::placeholder {
                color: var(--placeholder);
              }
            }

            & .stage-tag {
              padding: 4px 8px;
              border-radius: 8px;
              background-color: var(--hover-primary);
              color: var(--primary);
              font-weight: 600;
            }
          }

          & .show-description-button {
            cursor: pointer;
            &:hover {
              color: var(--black);
            }
          }

          & .stage-option-button {
            border: 1px solid var(--input-border);
            & img {
              width: 26px;
            }
          }
        }

        & .add-stage-button {
          width: 100%;
          margin-top: 22px;
        }
      }
    }
  }
}

/* CSS closingnotes */

.closing-notes-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;

  & .setting-table-container {
    height: 100%;
    overflow: auto;
  }
}

& .closing-notes-setting {
  display: flex;
  flex-direction: column;
  gap: 4px;
  & .setting-title {
    display: flex;
    align-items: center;
    gap: 0 4px;
    padding-bottom: 20px;

    & > span {
      font-size: 14px;
      color: var(--sub-text);
    }
  }
}

/* CSS tags */

.tags-wrap {
  & table {
    & .tag {
      padding: 4px 6px;
      font-size: 14px;
      border-radius: 8px;
      &.red {
        background-color: #d02711db;
        border: 1px solid var(--red);
        color: var(--white);
      }
    }
  }
}

/* CSS dataexport */

.data-export-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px 0;
  & .export-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    & span {
      font-size: 14px;
      color: var(--sub-text);
    }
  }

  & .export-button-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;

    & button {
      width: fit-content;
    }
  }
}

/* CSS userprofile */

.user-profile-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  & .setting-profile-wrap {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    gap: 36px 0;
  }

  & .profile-body-wrap {
    display: flex;
    gap: 0 24px;
  }

  & .profile-img-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px 0;
    padding: 0 18px;

    & .user-img {
      width: 82px;
      height: 82px;
    }
  }

  & .profile-input-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    & .input-wrap {
      display: flex;
      flex-direction: column;
      gap: 4px 0;

      & .input-title {
        & span {
          font-size: 14px;
          color: var(--sub-text);
          font-weight: 600;
        }
      }

      & input {
        font-size: 14px;
      }
    }
  }

  & .profile-bottom-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0 12px;
  }

  & hr {
    background-color: var(--dark-gray);
    height: 1px;
    border: none;
  }

  & .auth-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;

    & > span {
      font-weight: 600;
    }

    & .auth-toggle-wrap {
      display: flex;
      align-items: center;
      gap: 0 6px;

      & img {
        width: 36px;
        height: 36px;
        cursor: pointer;
      }
    }
  }
}

/* CSS notifications */

.notifications-wrap {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 24px 0;
  & .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
  }

  & .input-title {
    display: flex;
    align-items: center;
    gap: 0 4px;

    & > span {
      font-size: 14px;
      color: var(--sub-text);
      font-weight: 600;
    }
  }

  & .enable-text {
    font-size: 14px;
    color: var(--sub-text);

    & .link {
      font-size: 14px;
      color: var(--primary);
      font-weight: 600;
      cursor: pointer;
      &:hover {
        border-bottom: 1px solid var(--primary);
      }
    }
  }

  & .mobile-push-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px 0;
  }

  & .offline-notifications-wrap {
    display: flex;
    align-items: center;
    gap: 0 6px;
  }
}

#connectLine {
  & .check-complete-wrap {
    display: flex;
    gap: 0 8px;
    align-items: center;
    cursor: pointer;

    & span {
      color: var(--sub-text);
    }
  }

  & .tutorial-contents-wrap {
    & .step-contents {
      display: flex;
      flex-direction: column;
      gap: 24px 0;
    }
  }

  & .copy-webhook-url {
    width: 50%;
    display: flex;
    align-items: center;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;

    & span {
      padding: 8px 10px;
      background-color: var(--hover-tool-bg);
      border-radius: 0 8px 8px 0;
      width: 100%;
      color: var(--sub-text);
    }

    & button {
      background-color: transparent;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;

      & img {
        width: 22px;
      }
    }
  }
}

#connectKakao {
  & #kakaoLoginButton {
    & img {
      width: 300px;
    }
  }
}
