.hidden {
  display: none !important;
}

body {
  font-family: sans-serif;
  padding: 20px;
}

.chat-container {
  border: 4px solid black;
  border-radius: 30px;
  padding: 20px;
  max-width: 800px;
}

.instruction {
  background: #a0a0a0;
  color: white;
  padding: 15px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.messages {
  height: 25em;
  overflow-y: scroll;
}

.message {
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 15px;
  max-width: 70%;
  white-space: break-spaces;
}

.message-human {
  background: #f0f4f8;
  margin-left: auto;
}

.message-bot {
  background: #d4ebf5;
}

.input-area {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.input-area input,
.input-area textarea {
  flex: 1;
  padding: 15px;
  border: none;
  background: #f0f0f0;
  border-radius: 20px;
  white-space: pre-wrap;
  resize: none;
}

button:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

button:active {
  box-shadow: inset 0 0 10px rgba(255,255,255,0.8);
}

.btn-send {
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  background: #000;
  color: white;
  cursor: pointer;
}

button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-write { 
  background: #f4a261; 
  color: white; 
  border: none; 
  padding: 15px; 
  border-radius: 20px; 
  cursor: pointer;
  flex: 0 0 12.5%;
  min-width: 150px;
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #d4ebf5;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d4ebf5;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
