/* Estilos específicos para a página de atendimento virtual */

/* Seção de informações com ícones */
.info-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .icon-container {
    width: 70px;
    height: 70px;
    background-color: rgba(6, 41, 18, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #062912;
    transition: all 0.3s;
  }
  
  .info-card:hover .icon-container {
    background-color: #062912;
    color: white;
    transform: scale(1.05);
  }
  
  /* Estilos do chat - REDUZIDO E POSICIONADO NO CANTO */
  .chat-container {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    width: 320px; /* Tamanho fixo para chat flutuante */
    position: fixed; /* Posicionamento fixo na tela */
    bottom: 90px; /* Espaço para o botão flutuante abaixo */
    right: 20px; /* Alinhado à direita */
    display: flex;
    flex-direction: column;
    height: 400px; /* Altura reduzida */
    z-index: 1001; /* Valor alto para ficar acima de outros elementos */
    display: none; /* Inicialmente oculto, será exibido ao clicar no botão */
    overflow: hidden; /* Evita vazamento de conteúdo */
    transition: all 0.3s ease; /* Transição suave ao abrir/fechar */
  }
  
  .chat-header {
    background-color: #062912;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move; /* Indica que o cabeçalho pode ser usado para arrastar */
  }
  
  .chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  
  .chat-close:hover {
    opacity: 1;
  }
  
  .chat-user {
    display: flex;
    align-items: center;
  }
  
  .chat-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    background-color: white;
    padding: 2px;
  }
  
  .status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    margin: 0;
  }
  
  .status-dot {
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
  }
  
  .chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
  }
  
  .message {
    display: flex;
    margin-bottom: 10px;
    max-width: 85%;
  }
  
  .message.sent {
    align-self: flex-end;
  }
  
  .message.received {
    align-self: flex-start;
  }
  
  .message-content {
    padding: 8px 12px;
    border-radius: 14px;
    position: relative;
  }
  
  .message.sent .message-content {
    background-color: #062912;
    color: white;
    border-bottom-right-radius: 4px;
  }
  
  .message.received .message-content {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .message-content p {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
  }
  
  .message-time {
    font-size: 0.65rem;
    opacity: 0.7;
    display: block;
    text-align: right;
  }
  
  .chat-input {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #eee;
  }
  
  .chat-input input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    border-radius: 18px;
    background-color: #f5f5f5;
    margin-right: 8px;
    font-size: 0.9rem;
  }
  
  .chat-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(6, 41, 18, 0.2);
  }
  
  .chat-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #062912;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .chat-input button:hover {
    background-color: #0a4120;
    transform: scale(1.05);
  }
  
  /* Overlay para fechar o chat ao clicar fora */
  .chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    display: none;
  }
  
  .chat-overlay.active {
    display: block;
  }
  
  /* Botão flutuante de chat */
  .chat-float-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #ff6600;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
  }
  
  .chat-float-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  }
  
  /* Animação para abrir/fechar o chat */
  .chat-container.active {
    display: flex;
    animation: slideIn 0.3s forwards;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Estado minimizado do chat */
  .chat-container.minimized {
    height: 50px;
    overflow: hidden;
  }
  
  /* Estado offline do chat */
  .chat-offline {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    z-index: 1001;
    display: none;
  }
  
  .chat-offline i {
    color: #062912;
    opacity: 0.5;
  }
  
  .chat-offline h3 {
    color: #062912;
    margin-bottom: 12px;
    font-size: 1.2rem;
  }
  
  .chat-offline ul {
    margin: 12px 0;
    padding-left: 20px;
  }
  
  .chat-offline.active {
    display: block;
    animation: slideIn 0.3s forwards;
  }
  
  /* Estilos para o FAQ */
  .faq-section .accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .faq-section .accordion-button {
    background-color: white;
    color: #062912;
    font-weight: 600;
    padding: 15px 20px;
  }
  
  .faq-section .accordion-button:not(.collapsed) {
    background-color: #062912;
    color: white;
  }
  
  .faq-section .accordion-button:focus {
    box-shadow: none;
  }
  
  .faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23062912'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  }
  
  .faq-section .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  }
  
  .faq-section .accordion-body {
    padding: 15px 20px;
    background-color: white;
  }
  
  /* Animação de digitação para o chat */
  .typing {
    display: flex;
    margin-bottom: 10px;
    align-self: flex-start;
  }
  
  .typing-indicator {
    display: flex;
    padding: 8px 12px;
    border-radius: 14px;
    background-color: #e6e6e6;
    width: 50px;
  }
  
  .typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #999;
    margin: 0 2px;
    animation: typingAnimation 1.2s infinite ease-in-out;
  }
  
  .typing-dot:nth-child(1) {
    animation-delay: 0s;
  }
  
  .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes typingAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
  
  /* Links no chat */
  .message-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    font-size: 0.9rem;
  }
  
  .message.received .message-content a.text-success {
    color: #28a745 !important;
  }
  
  .message.received .message-content a.text-primary {
    color: #0275d8 !important;
  }
  
  /* Ícones de ação no chat */
  .chat-actions {
    display: flex;
    align-items: center;
  }
  
  .chat-action-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
  }
  
  .chat-action-btn:hover {
    opacity: 1;
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    .chat-container {
      width: 300px;
      height: 380px;
      bottom: 80px;
    }
    
    .message {
      max-width: 90%;
    }
    
    .chat-float-button {
      width: 45px;
      height: 45px;
      font-size: 18px;
      bottom: 20px;
      right: 20px;
    }
    
    .info-card {
      margin-bottom: 15px;
    }
    
    .icon-container {
      width: 55px;
      height: 55px;
    }
    
    .chat-offline {
      width: 300px;
      bottom: 80px;
    }
  }
  
  @media (max-width: 576px) {
    .chat-container {
      width: 280px;
      height: 350px;
      right: 10px;
      bottom: 70px;
    }
    
    .chat-header h4 {
      font-size: 0.95rem;
    }
    
    .chat-avatar {
      width: 28px;
      height: 28px;
    }
    
    .chat-input input {
      padding: 7px 10px;
      font-size: 0.85rem;
    }
    
    .chat-input button {
      width: 34px;
      height: 34px;
    }
    
    .hero-section .d-flex {
      flex-direction: column;
    }
    
    .hero-section .btn {
      margin-bottom: 10px;
      width: 100%;
    }
    
    .message-content p {
      font-size: 0.85rem;
    }
    
    .chat-offline {
      width: 280px;
      right: 10px;
      bottom: 70px;
      padding: 15px;
    }
    
    .chat-offline h3 {
      font-size: 1.1rem;
    }
  }
  
  /* Estilo para quando o chat está sendo arrastado */
  .chat-container.dragging {
    opacity: 0.8;
    user-select: none;
  }
  
  /* Suporte para navegadores mais antigos */
  @supports not (backdrop-filter: blur(10px)) {
    .chat-header {
      background-color: rgba(6, 41, 18, 0.95);
    }
  }
  