:host {
  // Palette di colori
  --telenia-1: #aacfdd;
  --telenia-2: #3a8eb1;
  --telenia-3: #2a445c;
  --telenia-4: #94c1d5;
  --button-color: var(--telenia-2);
  --button-hover-color: var(--telenia-3);
  --text-color: white;
}

button[mat-flat-button] {
  width: 15%;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 0;
  background-color: var(--button-color);
  color: var(--text-color);
  transition: background-color 0.3s ease-in-out;
}

button[mat-flat-button]:hover {
  background-color: var(--button-hover-color);
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 400px;
  width: 500px;
  border: 1px solid #ccc;
  padding: 1rem;
  overflow-y: auto;
  position: relative;
  background-color: #fafafa;
  border-radius: 10px;
}

.chat-header {
  text-align: right;
}

.chat-header button {
  background: transparent;
  border: none;
  padding: 0;
}

.message {
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  max-width: 70%;
}

.message.incoming {
  background-color: #e0f7fa;
  align-self: flex-start;
}

.message.outgoing {
  background-color: #d0e6ff;
  text-align: right;
  align-self: flex-end;
}

.message.system {
  background-color: #eeeeee;
  font-style: italic;
  align-self: center;
}

.message-author {
  font-size: 0.75rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.25rem;
  display: block;
}

.message-content {
  font-size: 0.9rem;
}

.message-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.message-input-bar .message-input {
  flex: 1;
}

