.chatInterface {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
  font-family: var(--font-mono, monospace);
  background: var(--bg, #0a0a0a);
  border: 1px solid currentColor;
  overflow: hidden;
}

/* MESSAGES */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* MESSAGE */
.message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 80%;
  animation: message-appear 0.3s ease forwards;
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.system {
  align-self: center;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.2);
  font-size: 0.875rem;
  color: rgba(0, 255, 0, 0.8);
}

.message.echo {
  align-self: flex-start;
  background: rgba(255, 0, 255, 0.05);
  border: 1px solid rgba(255, 0, 255, 0.2);
  opacity: 0.8;
}

/* CONTENT */
.content {
  word-wrap: break-word;
  line-height: 1.5;
}

/* TIMESTAMP */
.timestamp {
  font-size: 0.625rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* INPUT AREA */
.inputArea {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.5);
}

/* INPUT */
.input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid currentColor;
  color: inherit;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.3s ease;
}

.input:focus {
  box-shadow: 0 0 10px currentColor;
}

/* SEND BUTTON */
.sendBtn {
  padding: 0.75rem 1.5rem;
  background: currentColor;
  border: none;
  color: var(--bg, #0a0a0a);
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sendBtn:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* THEMES */

/* Terminal */
.terminal {
  background: #0a0a0a;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-family: 'Courier New', monospace;
}

.terminal .input {
  background: #000;
  color: #00ff00;
  border: 1px solid #00ff00;
}

.terminal .input:focus {
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.terminal .sendBtn {
  background: #00ff00;
  color: #000;
}

.terminal .message.system {
  background: rgba(0, 255, 0, 0.1);
  border-color: #00ff00;
}

/* Neon */
.neon {
  background: #0a0a0a;
  color: #00ffff;
  border: 1px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.neon .input {
  background: rgba(0, 0, 0, 0.7);
  color: #00ffff;
  border: 1px solid #00ffff;
}

.neon .input:focus {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.neon .sendBtn {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.neon .message.echo {
  background: rgba(255, 0, 255, 0.1);
  border-color: #ff00ff;
}

/* Minimal */
.minimal {
  background: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  font-family: system-ui, -apple-system, sans-serif;
}

.minimal .input {
  background: #f5f5f5;
  color: #000;
  border: 1px solid #e5e5e5;
}

.minimal .input:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.minimal .sendBtn {
  background: #000;
  color: #fff;
}

.minimal .message.user {
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
}

.minimal .message.system {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Cyber */
.cyber {
  background: #0a0a0a;
  color: #ff00ff;
  border: 2px solid #ff00ff;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 255, 0.03) 2px, rgba(255, 0, 255, 0.03) 4px);
}

.cyber .input {
  background: rgba(0, 0, 0, 0.8);
  color: #ff00ff;
  border: 1px solid #ff00ff;
  text-transform: uppercase;
}

.cyber .input:focus {
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.cyber .sendBtn {
  background: #ff00ff;
  color: #000;
  text-shadow: 0 0 5px #ff00ff;
}

.cyber .message.echo {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  color: #00ffff;
}

/* SCROLLBAR */
.messages::-webkit-scrollbar {
  width: 8px;
}

.messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.messages::-webkit-scrollbar-thumb {
  background: currentColor;
  opacity: 0.3;
  border-radius: 4px;
}

.terminal .messages::-webkit-scrollbar-thumb {
  background: #00ff00;
}

.neon .messages::-webkit-scrollbar-thumb {
  background: #00ffff;
}

.cyber .messages::-webkit-scrollbar-thumb {
  background: #ff00ff;
}

/* SIZES */

.compact {
  max-height: 400px;
}

.compact .message {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.large {
  max-height: 800px;
}

.large .message {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

/* ANIMATIONS */

.typing .message {
  animation: message-appear 0.3s ease forwards, pulse-typing 1s ease-in-out infinite;
}

@keyframes pulse-typing {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* STATUS INDICATORS */
.message.system::before {
  content: '● ';
  color: #00ff00;
}

.message.echo::before {
  content: '↩ ';
  opacity: 0.5;
}
