body {
  font-family: Arial, sans-serif;
  background: #f4f4f9;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

header {
  background: #8cc63f;
  border-bottom: 4px solid #4a7023;
  padding: 24px 0 12px 0;
  text-align: center;
  box-shadow: 0 2px 8px #8cc63f44;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo-psd {
  height: 60px;
}

h1 {
  color: #4a7023;
  margin: 0;
  font-size: 2.1em;
  letter-spacing: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#logoutButton {
  background-color: #d9534f;
  border-color: #d43f3a;
  visibility: hidden;
  /* Começa escondido */
}

#logoutButton:hover {
  background-color: #c9302c;
  border-color: #ac2925;
}

/* Estilos da área de Login */
#loginArea {
  max-width: 400px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border: 2px solid #8cc63f;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#loginArea h2 {
  text-align: center;
  color: #4a7023;
  margin-top: 0;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#loginButton {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border-radius: 5px;
  background-color: #4a7023;
  color: #fff;
  border: 2px solid #4a7023;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

#loginButton:hover {
  background: #8cc63f;
}

#loginError {
  color: #d93025;
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

.btn-flutuante {
  /* PROPRIEDADE CHAVE: Faz o elemento flutuar */
  position: fixed;

  /* Posição: 30px do fundo e 30px da direita */
  bottom: 40%;
  right: 30px;

  /* Z-Index garante que ele fique acima de outros conteúdos */
  z-index: 1000000;

  /* Estilos Visuais */
  width: 50px;
  height: 50px;
  background-image: linear-gradient(135deg, #9dd149 0%, #5a8029 100%);
  /* Azul vibrante */
  color: white;
  border-radius: 50%;
  /* Torna o botão redondo */

  text-align: center;

  font-size: 24px;
  /*line-height: 10px; /* Centraliza o ícone verticalmente */

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
  /* Centraliza Horizontalmente */
  align-items: center
}



.btn-flutuante:active {
  outline: none;
}

/* Estilo do ícone */
#iconeSom {
  display: inline-block;
  /* Já deve estar lá */
}

/* Fim dos estilos de Login */

/* Estilos da Seleção de Simulador */
#simulatorSelectionArea {
  max-width: 600px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border: 2px solid #8cc63f;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#simulatorSelectionArea h3 {
  color: #4a7023;
  margin-top: 0;
  margin-bottom: 25px;
}

.simulator-options button {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 18px;
  margin-bottom: 15px;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid;
  font-weight: bold;
  transition: all 0.2s ease;
}

#vendasBtn {
  background-color: #4a7023;
  color: #fff;
  border-color: #4a7023;
}

#vendasBtn :hover {
  background-color: #8cc63f;
  border-color: #8cc63f;
}



.simulator-options button:disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  border-color: #ced4da;
  cursor: not-allowed;
}

#controls {
  text-align: center;
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  background: #4a7023;
  border: 2px solid #4a7023;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

button:disabled {
  background: #bbb;
  border-color: #bbb;
  color: #eee;
  cursor: not-allowed;
}

/* Botão de Reiniciar Caso */
.restart-case-button {
  background: #ff9800;
  border: 2px solid #ff9800;
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.restart-case-button:hover {
  background: #f57c00;
  border-color: #f57c00;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
  transform: translateY(-2px);
}

.restart-case-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

#startButton {
  background-color: #4a7023;
  border: 2px solid #4a7023;
}

#startButton:hover {
  background-color: #8cc63f;
  color: #fff;
  border: 2px solid #8cc63f;
}

#status {
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
  color: #4a7023;
  font-size: 1.1em;
}

#transcript {
  border: 2px solid #8cc63f;
  padding: 15px;
  height: 400px;
  overflow-y: scroll;
  background-color: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 18px;
  display: inline-block;
  clear: both;
  font-size: 1.08em;
}

.user {
  background: #8cc63f;
  color: #fff;
  float: right;
  text-align: right;
  border: 2px solid #8cc63f;
}

.bot {
  background: #4a7023;
  color: #fff;
  float: left;
  text-align: left;
  border: 2px solid #4a7023;
}

#textInputArea {

  text-align: center;
  margin-top: 20px;
  display: grid;

  grid-template-rows: auto;
  /* flex-direction: row;
  align-items: center;
  justify-content: center;*/
  align-items: center;
  gap: 10px;
  grid-template-columns: 1fr 3fr 1fr;
}

#textInput {

  /*  min-width:200px;*/
  padding: 12px 12px;
  font-size: 16px;
  border-radius: 22px;
  border: 2px solid #8cc63f;
  background: #fff;
}

#sendButton {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 22px;
  grid-column: 3;
  background-color: #4a7023;
  color: #fff;
  border: 2px solid #4a7023;
  margin-right: 35%;
  width: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

#sendButton:hover {
  background: #8cc63f;
  color: #fff;
  border: 2px solid #8cc63f;
}

/* Botão de microfone estilo WhatsApp */
#btnAudio {
  justify-items: center;
  width: 50px;
  height: 50px;
  grid-column: 1;


  padding: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4a7023;
  border: 2px solid #4a7023;
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, border 0.2s ease;
  /*  margin-left: 100px;*/
  margin-left: 75%;


}

#btnAudio:active {
  transform: scale(0.96);
}

#btnAudio:hover {
  background: #8cc63f;
  border-color: #8cc63f;
}

#btnAudio[data-state="true"] {
  background: #8cc63f;
  border-color: #8cc63f;
}

#btnAudio>svg {
  width: 28px;
  height: 28px;
  /*display: block;*/
  color: #fff;
}

#phaseButtons {
  display: none;
  text-align: center;
  margin: 15px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #8cc63f;
}

.phase-button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 5px;
  background-color: #ff6b35;
  color: #fff;
  border: 2px solid #ff6b35;
  margin: 0 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.phase-button:hover {
  background: #e55a2b;
  color: #fff;
  border: 2px solid #e55a2b;
}

.phase-button:disabled {
  background: #bbb;
  color: #eee;
  border: 2px solid #bbb;
  cursor: not-allowed;
}

.phase-button.active {
  background-color: #8cc63f;
  border: 2px solid #8cc63f;
}

.phase-button.active:hover {
  background: #4a7023;
  border: 2px solid #4a7023;
}

@media (max-width: 700px) {
  h1 {
    font-size: 1.5em;
    position: static;
    transform: none;
  }

  header {
    flex-direction: column;
  }

  #transcript {
    height: 220px;
  }

  .phase-button {
    margin: 2px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

::-webkit-scrollbar {
  width: 8px;
  background: #8cc63f33;
}

::-webkit-scrollbar-thumb {
  background: #8cc63f99;
  border-radius: 8px;
}

.image-flex {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-start;
  align-items: flex-end;
}

.image-group {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #8cc63f55;
  margin-bottom: 10px;
  padding: 12px 12px 8px 12px;
  border: 2px solid #8cc63f;
  display: block;
}

/* Estilos para seleção de times */
#teamSelectionArea {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px #8cc63f33;
  text-align: center;
}

#teamSelectionArea h3 {
  color: #4a7023;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.team-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.team-button {
  background: linear-gradient(135deg, #8cc63f 0%, #4a7023 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(140, 198, 63, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100px;
  justify-content: center;
}

.team-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(140, 198, 63, 0.4);
  background: linear-gradient(135deg, #9dd149 0%, #5a8029 100%);
}

.team-button:active {
  transform: translateY(0);
}

.team-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

.team-description {
  font-size: 0.9em;
  opacity: 0.9;
  font-weight: normal;
  display: block;
}

.back-button {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Animações para o lightbox de imagens */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}