.chat-gpt-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  height: 100%;
}

.chat-gpt-container::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, 0);
  background: url(/images/img/gpt_bg.png) center center / contain no-repeat;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.chat-gpt-help-container {
  position: relative;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}


.chat-gpt-help-container div {
  position: relative;
  flex: 1;
  text-align: left;
  color: var(--color3);
}

.chat-gpt-help-container div.help_desc .desc {
  font-size: 15px;
  color: var(--color5);
}

.chat-gpt-help-container div.help_desc ol {
  position: relative;
  padding: 20px;
  background: var(--colorF7);
  border-radius: 10px;
  margin: 20px 0;
  line-height: 1.5;
}

.chat-gpt-help-container div.help_desc ol li {
  list-style: disc;
}


@media (max-width: 768px) {
  .chat-gpt-help-container {
    flex-direction: column;
  }

}

/* 로고 */
.gpt-logo {
  margin-top: 20px;
  margin-bottom: 50px;
}

.gpt-logo.absolute {
  position: absolute;
  z-index: -1;
}

.gpt-message-container {
  margin: 20px auto;
  width: 100%;
  max-width: 1080px;
  background-color: var(--colorF);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow-y: auto;
}


.chaeting_content {
  max-height: 50vh;
  overflow-y: scroll;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}




.chaeting_container2 ul.chaeting_box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chaeting_content ul.chaeting_box>li {
  gap: 10px;
  display: flex;
  margin-bottom: 10px;
}

.chaeting_content ul.chaeting_box .my-chat {
  justify-content: end;
}

.chaeting_content ul.chaeting_box .chaeting_text_box {
  position: relative;
  display: flex;
  gap: 10px;
}

.my-chat .chaeting_text {
  background-color: #E9F1FF;
  max-width: calc(50vw);
  padding: 16px;
  border-radius: 5px;
  line-height: 22px;
  font-weight: 500;
  color: #1B2559;
}


.chaeting_text_box p {
  color: var(--colorB);
}



.chaeting_text2 {
  position: relative;
  width: 100%;
  line-height: 1.5;
  font-weight: 500;
  font-size: 16px;
  border: solid 1px #E5E5EC;
  border-radius: 20px;
  padding: 20px;
  background: var(--colorF);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.chaeting_text2 h3 {
  font-weight: bold;
  font-size: 16px;
}


.message-placeholder {
  min-height: 50px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-placeholder:empty:before {
  content: attr(data-placeholder);
  color: #aaa;
}


/* 입력 필드 */
.gpt-message-container input[type="text"] {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px;
  color: #4a4a4a;
  resize: none;
  min-height: 50px;
  max-height: 150px;
  overflow-y: auto;
  word-wrap: break-word;
  word-break: break-word;
}


/* 전송 버튼 */
.gpt-message-container .send-button {
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  background: var(--color9);
  width: 40px;
  height: 40px;
}

.gpt-message-container .send-button.active {
  background: var(--theme);
}

.gpt-message-container .send-button:hover {
  background: var(--theme);
}

.gpt-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.gpt-btn-upload {
  position: relative;
}

.file-input {
  display: none;
}

.gpt-icon-field {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.gpt-icon-field ul {
  display: flex;
}

/* 태그 버튼 섹션 */
.gpt-tags-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1080px;
  margin: 0px auto;
  width: 100%;
  max-width: 1080px;

}

.gpt-tags-container button {
  background: #F7F7F8;
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  cursor: pointer;
}

.gpt-tags-container button:hover {
  background: var(--theme);
  color: var(--colorF);
}


@media (max-width: 768px) {
  .gpt-logo img {
    width: 120px;
  }

  .gpt-tags-container {
    gap: 8px;
  }

  .gpt-tags-container button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .gpt-logo img {
    width: 100px;
  }

  .gpt-message-container {
    padding: 8px;
  }

  .gpt-message-container input[type="text"] {
    font-size: 14px;
  }

  .gpt-tags-container button {
    padding: 6px 10px;
    font-size: 10px;
  }

  .my-chat .chaeting_text {
    font-size: 12px;
  }

  .chaeting_box .bullet-list li {
    font-size: 12px;
  }

  .chaeting_text2 {
    padding: 15px;
    line-height: 1.2;
    font-size: 14px;
  }
}


.thumbnail-preview {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
  display: none;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.thumbnail {
  width: 100%;
  display: block;
}