.playground-card {
  background: #101010;
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(30, 144, 255, 0.15);
}

.chat-card {
  min-height: 520px;
}

.chat-window {
  background: #0d0d0d;
  border-radius: 10px;
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-line {
  display: flex;
}

.chat-line.user {
  justify-content: flex-end;
}

.chat-line.ai {
  justify-content: flex-start;
}

.chat-bubble {
  background: linear-gradient(120deg, rgba(30, 144, 255, 0.35), rgba(58, 166, 255, 0.15));
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.2);
}

.chat-line.user .chat-bubble {
  background: linear-gradient(120deg, rgba(58, 166, 255, 0.65), rgba(30, 144, 255, 0.35));
  color: #ffffff;
}

.chat-line.ai .chat-bubble {
  background: #121212;
  border: 1px solid rgba(30, 144, 255, 0.35);
}

.chat-author {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.chat-bubble p {
  margin: 0;
  color: #d7e1f2;
  line-height: 1.6;
  white-space: pre-wrap;
}

#playgroundForm textarea {
  resize: none;
  background: #0f0f0f;
  border: 1px solid rgba(30, 144, 255, 0.35);
  color: #ffffff;
}

#playgroundForm textarea:focus {
  border-color: rgba(58, 166, 255, 0.85);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.25);
}

#clearHistory {
  border-radius: 6px;
}

@media (max-width: 991.98px) {
  .chat-card {
    margin-top: 24px;
  }
}
