/* ATIRO VirtualHQ - 共通スタイル */

.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgb(30, 41, 59);
  background-color: white;
  border: 1px solid rgb(226, 232, 240);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: rgb(16, 185, 129);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-input {
  font-family: inherit;
  resize: vertical;
}

/* マークダウン応答 */
.md-content {
  font-size: 0.875rem;
  line-height: 1.6;
}
.md-content p { margin: 0.4em 0; }
.md-content ul, .md-content ol { padding-left: 1.4em; margin: 0.4em 0; }
.md-content li { margin: 0.15em 0; }
.md-content code {
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
}
.md-content pre {
  background: rgb(15, 23, 42);
  color: rgb(226, 232, 240);
  padding: 0.75em 1em;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8em;
  margin: 0.6em 0;
}
.md-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.md-content h1, .md-content h2, .md-content h3 {
  font-weight: 700;
  margin: 0.6em 0 0.3em;
}
.md-content h1 { font-size: 1.15em; }
.md-content h2 { font-size: 1.08em; }
.md-content h3 { font-size: 1em; }
.md-content blockquote {
  border-left: 3px solid rgb(16, 185, 129);
  padding-left: 0.75em;
  color: rgb(71, 85, 105);
  margin: 0.5em 0;
}

/* タイピングインジケーター */
.typing-dots {
  display: inline-flex;
  gap: 3px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(100, 116, 139);
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* AI カード */
.ai-card {
  position: relative;
  background: white;
  border: 1px solid rgb(226, 232, 240);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.15s;
  cursor: pointer;
}
.ai-card:hover {
  border-color: rgb(16, 185, 129);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}

/* スクロールバーを薄く */
#chat-messages::-webkit-scrollbar,
#ai-list::-webkit-scrollbar { width: 6px; }
#chat-messages::-webkit-scrollbar-thumb,
#ai-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 3px;
}
