body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #1a1a1a;
  color: #333;
  height: 100vh;
  overflow: hidden;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c77dff;
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #9d4edd;
}

.message {
  max-width: 70%;
  padding: 0.8rem;
  border-radius: 15px;
  animation: messageAppear 0.3s ease-out;
}

.user-message {
  background: #c77dff;
  color: white;
  align-self: flex-end;
}

.bot-message {
  background: #ffb3c1;
  align-self: flex-start;
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-container {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #eee;
}

input[type="text"] {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
}

button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 20px;
  background: #c77dff;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

.dere-controls select {
  padding: 0.3rem;
  border-radius: 5px;
  border: 1px solid #ddd;
}