body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #fff;
  color: #000;
}

.container {
  max-width: 600px;
  margin: auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.controls {
  display: flex;
  justify-content: flex-start; /* Pulsanti allineati a sinistra */
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

/* Il select rimane full width */
.controls select {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

/* Bottone emoji e immagine affiancati */
.btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  /* larghezza naturale */
}

/* Override width 100% per i bottoni del gruppo */
#selectImageBtn, #emojiToggle {
  background: none;
  border: none;
  color: white;    /* testo bianco */
  font-size: 1.5rem;
  padding: 0;
  cursor: pointer;
  outline: none;
}


.input-area textarea,
.input-area button {
  width: 100%;
  box-sizing: border-box;
}

.chat-area {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-box {
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 0.5rem;
}

.chat-log {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0.5rem;
}

.chat-log::-webkit-scrollbar {
  width: 8px;
}

.chat-log::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 4px;
}

.chat-log::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

.chat-log::-webkit-scrollbar-thumb:hover {
  background: #888;
}

textarea,
select,
button {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 0.5rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

#emojiPicker button {
  font-size: 1.5rem;
  margin: 0.2rem;
  cursor: pointer;
  background: none;
  border: none;
}

#emojiToggle {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: 0.5rem;
}

