/* 홈 */
.header-right {
  margin-right: 14px;
}
.s__select-up {
  position: relative;
  display: block;
  width: 100px;
}
.s__select-up button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  font-size: 14px;
  background-color: #cc0303;
  color: #fff;
  cursor: pointer;
  float: right;
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 45px;
  width: 100%;
  box-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.05);
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  float: right;
}
.dropdown-content a {
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  color: black;
  background-color: #fff;
  text-align: center;
}
.dropdown-content a + a {
  border-top: 1px solid var(--border);
}
.dropdown-content a:hover {
  background-color: var(--background);
}
.s__select-up.is-open .dropdown-content {
  display: block;
}
header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.is_active .header-side-bar {
  width: 250px;
}
.header-side-bar {
  padding: 10px 12px;
  width: 90px;
  transition: width 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-side-bar button {
  padding: 2px;
}
.header-side-bar button:hover {
  background: #e6e6e6;
  border-radius: 8px;
}
.chat-body {
  display: flex;
}
.is_active .side-bar {
  width: 250px;
  padding: 24px 14px 14px 14px;
}
.side-bar {
  width: 0px;
  transition: width 0.3s, padding 0.3s;
  border-radius: 0px 16px 0px 0px;
  background-color: var(--background);
  padding: 24px 0 14px 0;

  height: calc(100dvh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
}
.side-bar h2 {
  color: #181818;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 24px;
  text-wrap: nowrap;
}
.side-bar p {
  color: #181818;
  font-family: Pretendard;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 8px;
  text-wrap: nowrap;
}
.side-bar a {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: #f2f4f8;
  width: 222px;
}

.side-bar a:hover {
  filter: brightness(0.98);
}
.side-bar a.is_active:hover {
  filter: none;
}
.side-bar a.is_active {
  background-color: #fff;
}
.side-bar a + a {
  margin-top: 8px;
}
.side-bar a img {
  height: 24px;
  object-fit: contain;
  margin-bottom: 6px;
}
.side-bar a p {
  font-size: 14px;
  text-align: center;
  text-wrap: wrap;
}
.side-bar a + p {
  margin-top: 24px;
}
.chat-bar {
  height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}
.chat-top {
  flex: 1;
  overflow: auto;
}
.chat-bottom {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-box {
  width: 100%;
  border-radius: 24px;
  background: #f7f8fa;
  padding: 8px 8px 8px 32px;
  max-width: 800px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.chat-box textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background-color: var(--background);
  height: 32px;
  padding: 4px 0;
}
.chat-box textarea::placeholder {
  color: #aeb4c0;
}
.chat-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.chat-list > img {
  margin-bottom: 60px;
}
.chat-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-height: 262px;
  overflow: auto;
  padding-right: 4px;
}
.chat-list ul a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fafbfd;
  padding: 20px 24px;
  gap: 8px;
}
.chat-list ul a:hover {
  filter: brightness(0.98);
}
.chat-list ul a img {
  height: 32px;
}
.chat-list ul a p:nth-child(2) {
  color: #181818;
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.chat-list ul a p:nth-child(3) {
  color: #aeb4c0;
  font-family: Pretendard;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.chat-right {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.chat-right > div {
  display: inline-flex;
  padding: 12px 22px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  background: #f7f8fa;
  max-width: 550px;
  color: #181818;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 170%; /* 27.2px */
}

.chat-left {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.chat-logo {
  padding: 8px;
}
.chat-contents {
  flex: 1;
  padding: 8px 0;
  color: #181818;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 170%; /* 27.2px */
}
.chat-search-bar {
  display: inline-flex;
  height: 40px;
  padding: 4px 22px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 100px;
  background: #f7f8fa;
  position: relative;
  overflow: hidden;
}
.chat-search-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: slide 2s ease-in-out infinite;
}
.chat-data {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chat-data > * {
  max-width: 800px;
  width: 100%;
}
.chat-search-bar p {
  color: #aeb4c0;
  text-align: center;
  font-family: Pretendard;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  animation: search 1s ease-in-out infinite alternate; /* 애니메이션 적용 */
}
@-webkit-keyframes search {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes slide {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}
