:root {
  --error400: #ef4444;
  --error500: #e63535;
}

* {
  font-family: "SF Pro Display", sans-serif;
}

.align-button-table {
  vertical-align: right;
}

.texto {
  width: 25vw; /* Defina a largura desejada para a sua div */
  overflow: hidden;
  text-overflow: ellipsis;
}

.texto:hover {
  white-space: normal;
}

.container-margin-top {
  margin-top: 115px;

  @media screen and (max-width: 1023px) {
    margin-top: 64px;
  }
}

.content-Personalizado {
  background-image: url(https://br.pinterest.com/pin/920915823773024634/);
}

.input-error {
  color: var(--error400);
}

/* Estilo para o elemento de loading */
.loading {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  z-index: 99999;
}

.invalid-button {
  background-color: var(--error400);
  color: white;

  &&:hover {
    background-color: var(--error500);
    color: white;
  }
  &&:active {
    background-color: var(--error500);
    color: white;
  }
}

.invalid-informations-auth {
  background-color: #fee2e2;
  border-color: #e63535;

  &&::placeholder {
    color: #e63535;
  }

  &&:focus {
    background-color: #fee2e2;
    border-color: #e63535;
  }
}

/* Animação de rotação */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.conversation-list {
  border-bottom: 1px solid #ddd;
  padding: 15px;
  display: flex;
  align-items: center;
}
.conversation-list:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}
.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}
.search-bar {
  border-radius: 20px;
}

.header {
  background-color: #075e54;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}
.header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.header h4 {
  margin: 0;
  font-size: 18px;
}
.conversation-container {
  background-color: #fff;
  padding: 20px;
  height: calc(
    100vh - 60px
  ); /* Ajustando a altura para levar em conta o cabeçalho */
}
.message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.message .sender {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.message .message-text {
  background-color: #dcf8c6;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  max-width: 70%;
}
.your-message {
  align-items: flex-end;
}
.your-message .message-text {
  background-color: #dcf8c6;
}
