/* ========================================
   CHAT REPORT STYLES - Scoped to chatReport.html
   Prefix: chat-report-
   ======================================== */

/* ===== CONTAINER PRINCIPAL DO CHAT ===== */
#chat-report-container{
  margin: 0;
  height: 91.5%;
  display: flex;
  background: #f4f4f4;
  justify-content: center;
  padding: 0 20% 10px 20%;
  position: relative;
}

#prompts-ideas{
  opacity: 0;
  width: 50px;
  height: 50px;
  margin: 0;
  font-size: 24px;
  position: absolute;
  bottom: 1;
  left: 1;
  margin: 0 0 10px 10px;
  transition: all 0.5s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);

  display: flex;
  align-items: center;
  justify-content: center;
}

#prompts-ideas i{
  z-index: 2;
}

#prompts-ideas #light-effect{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  background-color: rgb(255, 255, 79);
  z-index: 3;

  filter: blur(2px);
  transform: translate(0px, -4px);
  animation: pulse 1.5s ease-in-out infinite;
}


@keyframes pulse {
  0% {
    transform:translate(0px, -4px) scale(1);
    opacity: 1;
  }
  50% {
    transform:translate(0px, -4px) scale(1.08);
    opacity: 0.9;
  }
  100% {
    transform:translate(0px, -4px) scale(1);
    opacity: 1;
  }
}


.chat-report-box-container{
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #d2d6de;
  overflow: hidden;
}

.chat-robot{
  width: 40px;
}
.chat-robot-message{
  width: 30px;
}

/* ===== HEADER DO CHAT ===== */
.chat-report-header{
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  border-bottom: 2px solid #307095;
  flex-shrink: 0;
}

.chat-report-header-content{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.chat-report-header-content i{
  font-size: 24px;
}

.chat-report-header-title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.chat-report-header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-report-status-badge{
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.chat-report-status-badge i{
  font-size: 10px;
  color: #4ade80;
  animation: chat-report-pulse 2s infinite;
}

@keyframes chat-report-pulse{
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== ÁREA DE MENSAGENS ===== */
.chat-report-messages-container{
  overflow-y: auto;
  padding: 10px;
  background: #f4f4f4;
  scroll-behavior: smooth;
  height: fit-content;
}

.expanded-chat{
  flex:1;
}

/* Mensagem de Boas-Vindas */
.chat-report-welcome-message{
  display: flex;
  gap: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 18px;
  border-radius: 55px;
  border-left: 4px solid #3c8dbc;
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.12);
  animation: chat-report-fadeIn 0.5s ease-out;
}

@keyframes chat-report-fadeIn{
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-report-welcome-icon{
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(60,141,188,0.3);
}

.chat-report-welcome-icon i{
  font-size: 24px;
  color: #fff;
}
.chat-report-welcome-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.chat-report-welcome-text h4{
  text-align: center;
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  display: none;
}

.chat-report-welcome-text p{
  text-align: center;
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

.chat-report-suggestions{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chat-report-suggestion-chip{
  display: inline-block;
  background: #fff;
  padding: 8px 14px;
  width: 32%;
  max-width: 195px;
  border-radius: 20px;
  font-size: 12px;
  text-align: center;
  color: #555;
  border: 1px solid #d2d6de;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.chat-report-suggestion-chip:hover{
  background: #3c8dbc;
  color: #fff;
  border-color: #3c8dbc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(60,141,188,0.3);
}

.chat-report-suggestion-chip:active, .prompt-menu-item:active{
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(60,141,188,0.4);
}

.more-suggestion{
  width: 7% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.more-suggestion i{
  font-size: 5px;
}

/* ===== ÁREA DE INPUT ===== */
.chat-report-input-area{
  width: calc(100% - 20px);
  margin-left: 10px;
  height: fit-content;
  background: #f4f4f4;
  background: #fff;
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.chat-images,
.chat-filters {
  /* ======= CONFIGURAÇÕES GERAIS ======= */
  --fade: 16px;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;

  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;

  /* ======= FADE NAS BORDAS ======= */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--fade),
    #000 calc(100% - var(--fade)),
    transparent 100%
  );

  scrollbar-width: none;
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.chat-images:has(.chat-image-wrapper:nth-child(2)) .chat-image-wrapper {
  width: 72px;
  height: 72px;
}

.chat-images::-webkit-scrollbar-track,
.chat-filters::-webkit-scrollbar-track {
  background: transparent;
}

.chat-images::-webkit-scrollbar-thumb,
.chat-filters::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  border: 0;
}

.chat-images:hover::-webkit-scrollbar-thumb,
.chat-filters:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
}


.chat-images .chat-image-wrapper{
  flex:0 0 auto;
  width: 144px;
  height: 144px;
  border-radius: 14px;
  box-shadow: 4px 3px 5px rgba(0, 0, 0, 0.22);
  position: relative;
  margin-bottom: 8px;
}

.chat-images .chat-image-wrapper button{
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.849);
  margin: 5px 5px 0 0;
}

.chat-images .chat-image-wrapper button span{
  color: black;
}

.chat-images .chat-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.chat-filters-wrapper{
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 4px 3px 5px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3px 9px;
  border-radius: 7px;
  width: fit-content;
  margin: 10px 0px;
}

.chat-filters-wrapper button{
  margin-left: 8px;
}

.chat-filters-wrapper .filter-infos{
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
}

.chat-filters-wrapper .filter-infos small{
  font-size: 10px;
  margin-bottom: -5px;
}

.chat-filters-wrapper .filter-infos strong{
  font-size: 12px;
}


.chat-filters-wrapper:first-child, .chat-image-wrapper:first-child{
  margin-left: 10px !important;
}

.chat-filters-wrapper:last-child, .chat-image-wrapper:last-child{
  margin-right: 2px !important;
}

.chat-report-input-wrapper{
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-report-btn{
  margin: auto 0 0 0;
  background: #3c8dbc;
  border: 1px solid rgba(255,255,255,0.0);
  color: #fff;
  padding: 1px 6px;
  width: 36px;
  height: 36px;
  border-radius: 100%;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.chat-report-image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-report-image-btn:hover {
  background: #367fa9;
}

.chat-report-btn:hover{
  background: rgba(255,255,255,0.25);
  background: #3c8dbcbd;
  color: #fff;
  transform: translateY(-1px);
}

.chat-report-filters-btn i{
  font-size: 18px;
}

.chat-report-input-area:focus-within{
  border-color: #3c8dbc;
  box-shadow: 0 0 0 2px rgba(60,141,188,0.1);
}

.chat-report-message-textarea{
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  font-family: inherit;
  max-height: 300px;
  min-height: 20px;
  outline: none;
  padding: 0;
  overflow-y: hidden;
  transition: height 0.1s ease-out;
}

.chat-report-message-textarea::placeholder {
  color: #999;
}

.chat-report-message-textarea:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

.chat-report-send-button{
  margin-top: auto;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  color: #fff;
  border: none;
  border-radius: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.chat-report-send-button:hover:not(:disabled){
  background: linear-gradient(135deg, #367fa9 0%, #2d6a8f 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(60,141,188,0.3);
}

.chat-report-send-button:active:not(:disabled){
  transform: scale(0.98);
}

.chat-report-send-button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  background: #ccc;
}

/* ===== MENSAGENS DO CHAT ===== */
.chat-report-message{
  padding: 14px 18px;
  width: fit-content;
  margin: 12px 0;
  color: #333;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  animation: chat-report-slideIn 0.3s ease-out;
}

@keyframes chat-report-slideIn{
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-report-bot-message{
  margin-right: auto;
  border-radius: 0 8px 8px 8px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #3c8dbc;
  max-width: 80%;
}

.chat-report-human-message{
  margin-left: auto;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  box-shadow: -3px 2px 4px rgba(0, 0, 0, 0.12);
  color: #fff;
  border-radius: 8px 0 8px 8px;
  max-width: 80%;
  border: none;
}

.chat-report-message-wrapper{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  animation: chat-report-slideIn 0.3s ease-out;
}

.chat-report-bot-wrapper{
  justify-content: flex-start;
}

.chat-report-bot-wrapper i{
  margin-top: -2px;
  color: white;
  font-size: 20px;
}


.human-icon-wrapper img{
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.bot-icon-wrapper{
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #3c8dbc;
}

.chat-report-human-wrapper{
  justify-content: flex-end;
  flex-direction: row;
}

.chat-report-human-wrapper i{
  color: #3c8dbc;
  font-size: 20px;
  margin-top: 4px;
}

/* Indicador de Digitação */
.chat-report-bot-resoning{
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  margin-right: auto;
}

.chat-report-actual-step{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-report-actual-step i{
  color: #666;
  font-size: 12px;
}

.chat-report-step{
  color: #666;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: linear-gradient(
      90deg,
      #666 0%,
      #eaeaea 50%,
      #666 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

/* Scrollbar customizada */
.chat-report-messages-container::-webkit-scrollbar,
#chat-report-data-container::-webkit-scrollbar,
.prompts-items::-webkit-scrollbar{
  width: 8px;
}

.chat-report-messages-container::-webkit-scrollbar-track,
#chat-report-data-container::-webkit-scrollbar-track,
.prompts-items::-webkit-scrollbar-track{
  background: #e8e8e8;
  border-radius: 10px;
}

.chat-report-messages-container::-webkit-scrollbar-thumb,
#chat-report-data-container::-webkit-scrollbar-thumb,
.prompts-items::-webkit-scrollbar-thumb{
  background: #3c8dbc;
  border-radius: 10px;
}

.chat-report-messages-container::-webkit-scrollbar-thumb:hover,
#chat-report-data-container::-webkit-scrollbar-thumb:hover,
.prompts-items::-webkit-scrollbar-thumb:hover{
  background: #307095;
}



/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media screen and (max-width: 1440px) {
  #chat-report-container{
    padding: 0 15% 10px 15%;
  }

  #prompts-ideas{
    top: 1;
    bottom: 0;
    margin: 10px;
  }
  
  .chat-report-welcome-message{
    text-align: center;
  }
  
  .chat-report-suggestions{
    justify-content: center;
  }
  .chat-report-suggestion-chip{
    width: 100%;
  }
  
}

/* Mobile */
@media screen and (max-width: 768px) {
  .chat-report-box-container{
    height: 550px;
    border-radius: 6px;
  }

  #chat-report-container{
    padding: 0 0 10px 0;
  }
  
  .chat-report-header{
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .chat-report-header-content{
    gap: 8px;
  }
  
  .chat-report-header-content i{
    font-size: 20px;
  }
  
  .chat-report-header-title{
    font-size: 16px;
  }
  
  .chat-report-status-badge{
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .chat-report-messages-container,
  #chat-report-data-container{
    padding: 15px;
  }
  
  .chat-report-welcome-message{
    padding: 20px;
  }
  
  .chat-report-welcome-icon{
    width: 45px;
    height: 45px;
  }
  
  .chat-report-welcome-icon i{
    font-size: 20px;
  }
  
  .chat-report-welcome-text h4{
    font-size: 16px;
  }
  
  .chat-report-welcome-text p{
    font-size: 13px;
  }
  
  .chat-report-suggestion-chip{
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .chat-report-message{
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .chat-report-message-wrapper i{
    font-size: 18px;
  }
  
  .chat-report-input-area{
    padding: 8px 12px;
  }
  
  .chat-report-message-textarea{
    font-size: 14px;
    line-height: 1.3;
  }
  
  .chat-report-send-button{
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

/* Mobile Pequeno */
@media screen and (max-width: 480px) {
  .chat-report-box-container{
    height: 500px;
    border-radius: 4px;
  }
  
  .chat-report-header-title{
    font-size: 14px;
  }
  
  .chat-report-welcome-message{
    padding: 15px;
  }
  
  .chat-report-welcome-text h4{
    font-size: 15px;
  }
  
  .chat-report-welcome-text p{
    font-size: 12px;
  }
  
  .chat-report-suggestions{
    flex-direction: column;
    align-items: stretch;
  }
  
  .chat-report-suggestion-chip{
    text-align: center;
  }
  
  .chat-report-message{
    max-width: 90%;
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .chat-report-input-area{
    padding: 10px 12px;
  }
  
  .chat-report-input-wrapper{
    padding: 6px 8px;
  }
  
  .chat-report-send-button{
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* ===== PDF CARD - DESIGN CLEAN E COMPACTO ===== */
.chat-report-pdf-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 0 8px 8px 8px;
  padding: 16px 20px;
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.chat-report-pdf-container:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #d0d7de;
}

.chat-report-pdf-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(238, 90, 82, 0.25);
}

.chat-report-pdf-icon i {
  font-size: 24px;
  color: #fff;
}

.chat-report-pdf-content {
  flex: 1;
  min-width: 0;
}

.chat-report-pdf-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.chat-report-pdf-subtitle {
  font-size: 12px;
  color: #7f8c9a;
  margin: 0;
  font-weight: 400;
}

.chat-report-pdf-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.chat-report-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.chat-report-pdf-btn-download {
  background: linear-gradient(135deg, #00a65a 0%, #008d4c 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 166, 90, 0.3);
}

.chat-report-pdf-btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 166, 90, 0.4);
  color: #fff !important;
}

.chat-report-pdf-btn-download i {
  color: #fff !important;
}

.chat-report-pdf-btn-view {
  background: #fff;
  color: #3c8dbc !important;
  border: 2px solid #3c8dbc;
}

.chat-report-pdf-btn-view:hover {
  background: #3c8dbc;
  color: #fff !important;
  transform: translateY(-1px);
}

.chat-report-pdf-btn-view:hover i {
  color: #fff !important;
}

.chat-report-pdf-btn-view i {
  color: #3c8dbc !important;
}

.chat-report-pdf-btn i {
  font-size: 14px;
}

/* ===== DASHBOARD CARD - DESIGN CLEAN E COMPACTO ===== */
.chat-report-dashboard-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #d0e4f5;
  border-radius: 0 8px 8px 8px;
  padding: 16px 20px;
  max-width: 480px;
  box-shadow: 0 2px 8px rgba(60, 141, 188, 0.08);
  transition: all 0.2s ease;
}

.chat-report-dashboard-container:hover {
  box-shadow: 0 4px 12px rgba(60, 141, 188, 0.12);
  border-color: #b8d4ea;
}

.chat-report-dashboard-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(60, 141, 188, 0.25);
}

.chat-report-dashboard-icon i {
  font-size: 24px;
  color: #fff;
}

.chat-report-dashboard-content {
  flex: 1;
  min-width: 0;
}

.chat-report-dashboard-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.chat-report-dashboard-subtitle {
  font-size: 12px;
  color: #7f8c9a;
  margin: 0;
  font-weight: 400;
}

.chat-report-dashboard-actions {
  flex-shrink: 0;
}

.chat-report-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(60, 141, 188, 0.3);
}

.chat-report-dashboard-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(60, 141, 188, 0.4);
  color: #fff !important;
}

.chat-report-dashboard-btn i {
  font-size: 14px;
  color: #fff !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
  /* Header responsivo */
  .chat-report-header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .chat-report-header-content {
    width: 100%;
    justify-content: center;
  }
  
  .chat-report-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .chat-report-filters-btn span {
    display: none;
  }

  .chat-report-filters-btn {
    padding: 8px 10px;
  }
  
  /* Cards PDF/Dashboard responsivos */
  .chat-report-pdf-container,
  .chat-report-dashboard-container {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    padding: 14px 16px;
    gap: 12px;
  }
  
  .chat-report-pdf-icon,
  .chat-report-dashboard-icon {
    width: 40px;
    height: 40px;
  }
  
  .chat-report-pdf-icon i,
  .chat-report-dashboard-icon i {
    font-size: 20px;
  }

  .chat-report-pdf-title,
  .chat-report-dashboard-title {
    font-size: 14px;
  }

  .chat-report-pdf-subtitle,
  .chat-report-dashboard-subtitle {
    font-size: 11px;
  }
  
  .chat-report-pdf-actions {
    width: 100%;
    gap: 6px;
  }
  
  .chat-report-pdf-btn,
  .chat-report-dashboard-btn {
    font-size: 12px;
    padding: 7px 12px;
  }
  
  .chat-report-pdf-btn i,
  .chat-report-dashboard-btn i {
    font-size: 12px;
  }
}

/* ===== MODAL DE FILTROS TRANSPARENTE ===== */
#chatFiltersModal .modal-dialog, #chatPromptsModal .modal-dialog{
  margin-top: 20px;
  margin-bottom: 20px;
}

#chatFiltersModal .modal-content, #chatPromptsModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

#chatFiltersModal .modal-header, #chatPromptsModal .modal-header {
  background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
  color: #fff;
  border-radius: 12px 12px 0 0;
  border: none;
  padding: 16px 20px;
}

#chatFiltersModal .modal-header .modal-title, #chatPromptsModal .modal-header .modal-title {
  color: #fff !important;
  font-weight: 600;
}

#chatFiltersModal .modal-header .modal-title img, 
#chatPromptsModal .modal-header .modal-title img{
  width: 20px;
  margin-right: 7px;
}

#chatFiltersModal .modal-header .close, #chatPromptsModal .modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
}

#chatFiltersModal .modal-header .close:hover, #chatPromptsModal .modal-header .close:hover {
  opacity: 1;
}

#chatFiltersModal .modal-body {
  padding: 24px 20px;
  background: rgba(255,255,255,0.9);
}

#chatFiltersModal .modal-footer {
  background: rgba(248,249,250,0.9);
  border: none;
  border-radius: 0 0 12px 12px;
  padding: 16px 20px;
}

/* Overlay transparente */
#chatFiltersModal.modal, #chatPromptsModal.modal {
  background-color: rgba(0,0,0,0.7);
}

#chatFiltersModal.modal.fade .modal-dialog, #chatPromptsModal.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  transition: transform 0.3s ease-out;
}

#chatFiltersModal.modal.in .modal-dialog, #chatPromptsModal.modal.in .modal-dialog {
  transform: translate(0, 0);
}

/* Estilo do modal prompt */

.chat-prompts-container {
  display: flex;
  height: 500px;
}

/* Menu lateral */
.prompts-menu {
  width: 20%;
  border-right: 1px solid #ddd;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.prompts-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.prompts-menu-list li {
  padding: 15px 12px;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease-in;
  font-weight: 500;
  font-size: 18px;
  color: #444;
}

.prompts-menu-list li.active, .prompt-menu-item:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
  border-left: 4px solid #3c8dbc;
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.12);
}

/* Lista de prompts */
.prompts-list {
  width: 80%;
  padding: 0 0 0 10px;
}

.prompts-items {
  list-style: none;
  padding: 0 15px 0 0;
  margin: 0;
  height: 100%;
  overflow-y: scroll;
  width: 100%;
}

.prompts-items li {
  border-radius: 6px;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.prompts-items li hr{
  margin: 10px auto;
  width: 80%;
  height: 1px;
  border: none;
  background: linear-gradient(to right, transparent, rgba(102,102,102,0.3), transparent);
}

.prompts-items li .container{
  cursor: pointer;
  width: 100%;
  margin: 0px !important;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: start;

  border-radius: 8px;

  transition: all 0.3s ease;
}

.prompts-items li .container .icon-wrapper{
  height: 40px !important;
  width: 40px !important;

  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3c8dbc;
  border-radius: 8px;

  transition: all 0.3s ease;
}

.prompts-items li .container .icon-wrapper i{
  color: white;
  font-size: 25px !important;
}

.prompts-items li .container .infos{
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  position: relative;

  overflow: hidden;
  width: 100%;
  height: 53px;
  border-radius: 8px;
  padding: 5px 5px;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.prompts-items li .container .infos strong{
  font-size: 18px;
  transition: all 0.3s ease-out;
}

.prompts-items li .container .infos .prompt-span{
  display: block;
  opacity: 1;
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease;
  width: 100%;
}

.prompts-items li .container .infos .hidden-prompt-span{
  display: block;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  white-space: normal;
  width: 100%;
  overflow: visible;
  text-overflow: unset;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.prompts-items li .container:hover .infos{
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
  border-left: 4px solid #3c8dbc;
  box-shadow: 3px 2px 4px rgba(0, 0, 0, 0.12);
}

.prompts-items li .container:hover .infos .prompt-span{
  opacity: 0;
  transform: translateY(-15px);
}

.prompts-items li .container:hover .infos .hidden-prompt-span{
  transform: translateY(0px);
  opacity: 1;
}

.prompts-items li .container:hover .infos strong{
  display: none;
}

/* Estado inicial */
.prompts-empty {
  width: 70%;
  text-align: center;
  color: #888;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prompts-empty p{
  margin: 0 !important;
}

/* Responsividade do modal */
@media (max-width: 768px) {
  #chatFiltersModal .modal-dialog, #chatPromptsModal .modal-dialog{
    margin: 10px;
    width: calc(100% - 20px);
  }
  
  #chatFiltersModal .modal-body, #chatPromptsModal .modal-body{
    padding: 16px;
  }
  
  #chatFiltersModal .modal-header, #chatPromptsModal .modal-header{
    padding: 12px 16px;
  }
  
  #chatFiltersModal .modal-footer, #chatPromptsModal .modal-footer{
    padding: 12px 16px;
  }
  .chat-report-suggestion-chip{
    width: 100%;
  }
}




