/* ChatGPT 스타일 커스텀 CSS */

/* Prose 스타일 (마크다운 렌더링) */
.prose {
  color: #ececf1;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #ececf1;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h1 { font-size: 1.5em; }
.prose h2 { font-size: 1.3em; }
.prose h3 { font-size: 1.1em; }

.prose p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.prose strong {
  color: #ececf1;
  font-weight: 600;
}

.prose code {
  background-color: #2d2d2d;
  color: #e6db74;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #000;
  color: #ececf1;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.prose blockquote {
  border-left: 3px solid #666;
  padding-left: 1em;
  color: #b4b4b4;
  font-style: italic;
  margin: 1em 0;
}

.prose a {
  color: #7c7cf5;
  text-decoration: underline;
}

.prose a:hover {
  color: #9d9df7;
}

/* 스크롤바 스타일 */
#chat-scroll-container::-webkit-scrollbar {
  width: 8px;
}

#chat-scroll-container::-webkit-scrollbar-track {
  background: #343541;
}

#chat-scroll-container::-webkit-scrollbar-thumb {
  background: #565869;
  border-radius: 4px;
}

#chat-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #6e6e80;
}

/* Textarea 스크롤바 */
#message-input::-webkit-scrollbar {
  width: 6px;
}

#message-input::-webkit-scrollbar-track {
  background: transparent;
}

#message-input::-webkit-scrollbar-thumb {
  background: #565869;
  border-radius: 3px;
}

/* 애니메이션 */
@keyframes bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
}

.animate-bounce {
  animation: bounce 1.4s infinite;
}

/* 포커스 스타일 */
textarea:focus {
  outline: none;
}

button:focus {
  outline: 2px solid #7c7cf5;
  outline-offset: 2px;
}

/* 반응형 */
@media (max-width: 768px) {
  .w-64 {
    width: 0;
    min-width: 0;
  }
  
  .w-64.mobile-open {
    width: 16rem;
  }
}

/* 프로세 넘버링 스타일 */
.prose ol {
  list-style-type: decimal;
}

.prose ul {
  list-style-type: disc;
}

/* 테이블 스타일 */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose th, .prose td {
  border: 1px solid #444;
  padding: 0.5em;
  text-align: left;
}

.prose th {
  background-color: #2d2d2d;
  font-weight: 600;
}
