/*https://icons8.com/icons*/

body {
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  background-color: #f5f5f5;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
}

#chat-container {
  width: 100vh;
  height: 90vh;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 0px 30px;
  border-bottom: 2px solid #ccc;
  margin-bottom: 5px;
}

.logo img {
  height: 50px;
}

#chat-output {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

#chat-output img {
  height: 25px;
  border-radius: 50%;
  background-color: #00294b; /*#00294b*/
  margin-right: 5px;
  margin-top: 5px;
}

#chat-output p {
  background-color: #f6f6f6;
  border-radius: 5px;
  border: 1px solid #e6e6e6;
  padding: 4px;
}

#chat-input {
  display: flex;
  margin-top: 10px;
}
#chat-input textarea {
  width: 100%;
  min-height: 25px;
  max-height: 150px; 
  resize: vertical;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  overflow-y: auto;
  margin-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

#chat-input button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

#send-btn:hover {
  background-color: #3e8e42;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

.custom-file-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #51565b;
  color: white;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 16px;
}
  
.custom-file-upload i {
  margin-right: 5px;
}

/*******************************************************/
.prompt-container {
  display: wrap;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100vh;
  height: 100vh;
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  margin-left: 30px;
}

#search-bar {
  padding: 8px;
  font-size: 14px;
}

.filter-buttons button {
  padding: 8px;
  margin: 0 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

#prompt-buttons {
  max-height: 85vh;
  max-width: 100%;
  overflow-y: auto;
  margin: 15px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.custom-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out;
  cursor: pointer;
  width: 250px;
  height: auto;
  margin: 5px 10px;
}

.custom-button:hover {
transform: translateY(-5px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon {  
  flex: 0 0 40px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right:8px;
}

.cont {
  background-color: #76a8f8;
}

.doc {
  background-color: #b981e8;
}

.video {
  background-color: #90f1b7;
}

.code {
  background-color: #ed8383;
}

.image {
  background-color: #f692f3;
}

.aud {
  background-color: #f5bb97;
}

.icon img {
  width: 24px;
  height: 24px;
}

.text {
  flex: 1;
}

.text h3 {
  margin: 0;
  font-size: 16px;
  color: #202124;
}

.text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #5f6368;
}

.copy-button, .audio-button, .stop-button{
  background: none;
  border: none;
  cursor: pointer;
  position: relative; /* Necessário para o popup aparecer corretamente */
}

.copy-popup {
  background-color: #4f5357;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  font-size: 12px;
  top: -30px;  /* Ajuste a posição conforme necessário */
  left: 90%;
  transform: translateX(-50%);
  display: inline-block;
  z-index: 10;
  opacity: 0.8;
}

.copy-popup i {
  margin-right: 5px;
}

.copy-button i, .audio-button i, .stop-button i {
  width: 20px;
  height: 20px;
}

.audio-button:hover i, .copy-button:hover i, .stop-button:hover i {
  color: #000000;
}

@media (max-width: 1920px) {
  .container {
    width: 95%;
  }

  .filter-container {
    padding: 0 30px ;
  }
}

@media (max-width: 1590px) {
  .custom-button {
    width: 90%;
    height: auto;
  }

  .filter-buttons {
    width: 40%;
  }

  .filter-buttons button {
    margin: 3px 0;
  }

  .filter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 30px;
  }
}

@media screen and (max-width: 1200px) {
  #prompt-buttons {
    margin: 8px 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  
  }
  .container{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 0px;
    margin-left: 15px;
  }
  .custom-button {
    width: 90vh;
    height: auto;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 100%;
  }
  #chat-container {
    width: 90vh;
    margin: 0;
    height: 90vh;
  }
  #chat-input {
    width: auto;
  }
  .custom-file-upload {
    width: auto;
  }
  #chat-input textarea {
    width: calc(90vh - 20px);
  }
}

@media screen and (max-width: 650px) {
  #chat-container, #chat-input {
    width: 70vh;
  }
  .custom-file-upload {
    width: 65vh;
  }
  .prompt-container {
    width: 75vh;
  }
  .custom-button {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 525px) {
  #chat-container {
    width: 50vh;
  }
  #chat-input {
    width: auto; 
  }
  .custom-file-upload {
    width: auto;
    display: flex;
    align-items: center;
    padding: 3px 6px;
    font-size: 12px;
  }
  .custom-file-upload label {
    display: none;
  }
  .prompt-container {
    width: 55vh;
  }
}

@media screen and (max-width: 390px) {
  #chat-container, #chat-input{
    width: 45vh;
    margin-right: 3px;
  }
  .prompt-container {
    width: 50vh;
  }
}