﻿:root {
  color-scheme: light dark;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.chat-shell {
  width: 100%;
  max-width: 640px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(12px);
}

.chat-header h1 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.chat-subtitle {
  margin: 0 0 0.75rem;
  color: #94a3b8;
}

.chat-meta {
  display: flex;
  gap: 1.5rem;
  margin: 0 0 1rem;
}

.chat-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.chat-meta dd {
  margin: 0;
  font-weight: 600;
}

.chat-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
}

.chat-reset {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #3b82f6;
  background: transparent;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
}

.chat-reset:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.chat-log {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 12px;
  padding: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #1e293b;
  max-width: 80%;
  white-space: pre-wrap;
}

.chat-message.user .chat-bubble {
  background: #3b82f6;
}

.chat-form {
  display: flex;
  gap: 0.75rem;
}

#chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: inherit;
}

#chat-input:focus {
  outline: 2px solid #3b82f6;
}

.chat-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.chat-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
