body {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  background: linear-gradient(135deg, #e3d6ff, #fdfaff);
  color: #333;
}

.container, .chat-container {
  max-width: 600px;
  margin: 3em auto;
  padding: 2em;
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(180, 150, 255, 0.2);
}

h1 {
  color: #805ad5;
  font-size: 2em;
  text-align: center;
}

.subtitle {
  text-align: center;
  margin-bottom: 1em;
  font-style: italic;
  color: #b58cff;
}

input, button {
  width: 100%;
  padding: 0.75em;
  margin: 0.5em 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

button {
  background: linear-gradient(to right, #9f7aea, #d6bcfa);
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.03);
}

a {
  color: #805ad5;
  text-decoration: none;
}

.chat-box {
  height: 300px;
  overflow-y: auto;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1em;
}

.message {
  margin-bottom: 0.8em;
}

.emotion-display, .emoji-output {
  margin-top: 1em;
  font-weight: bold;
  color: #d69e2e;
  text-align: center;
}

.header, .footer {
  text-align: center;
  padding: 1em;
  background: #faf5ff;
  border-bottom: 1px solid #e9d8fd;
}

.footer {
  margin-top: 2em;
  font-size: 0.9em;
  color: #999;
}

@media screen and (max-width: 600px) {
  .container, .chat-container {
    margin: 1em;
    padding: 1em;
  }

  input, button {
    font-size: 0.95em;
  }
}