/* Chat */
/* Reset básico */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      color: #333;

      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1rem;
    }

    /* Container principal */
    .container {
      max-width: 600px;
      width: 100%;
      height: 80vh;
      background: white;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    /* Header do chat */
    .header {
      padding: 1.5rem;
      border-bottom: 1px solid #ddd;
      text-align: center;
      font-weight: 700;
      font-size: 1.5rem;
      color: #4a5568;
      background: #f9fafb;
    }

    /* Área das mensagens */
    .content {
      flex-grow: 1;
      padding: 1rem 1.5rem;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      background: #fafafa;
    }

    /* Balão de mensagem do bot */
    .answer-section {
      max-width: 75%;
      background: #667eea;
      color: white;
      padding: 0.75rem 1rem;
      border-radius: 15px 15px 15px 3px;
      align-self: flex-start;
      font-size: 1rem;
      line-height: 1.4;
      box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
      white-space: pre-line;
    }

    /* Balão de mensagem do usuário */
    .message-user {
      max-width: 75%;
      background: #e2e8f0;
      color: #2d3748;
      padding: 0.75rem 1rem;
      border-radius: 15px 15px 3px 15px;
      align-self: flex-end;
      font-size: 1rem;
      line-height: 1.4;
      box-shadow: 0 2px 10px rgba(226, 232, 240, 0.6);
      white-space: pre-line;
    }

    /* Footer do chat (input + botão) */
    .chat-form {
      padding: 1rem 1.5rem;
      border-top: 1px solid #ddd;
      display: flex;
      gap: 0.5rem;
      background: white;
    }

    /* Campo de texto */
    .chat-input {
      flex-grow: 1;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      border: 1.5px solid #ccc;
      border-radius: 25px;
      outline: none;
      transition: border-color 0.3s ease;
    }

    .chat-input:focus {
      border-color: #667eea;
      box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }

    /* Botão enviar */
    .send-button {
      background: #667eea;
      border: none;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s ease;
    }

    .send-button:hover {
      background: #5563c1;
    }

    .send-button svg path {
      fill: white;
    }

    /* Scroll personalizado para área de mensagens */
    .content::-webkit-scrollbar {
      width: 8px;
    }

    .content::-webkit-scrollbar-thumb {
      background-color: rgba(102, 126, 234, 0.5);
      border-radius: 10px;
    }

    /* Responsividade */
    @media (max-width: 480px) {
      .container {
        height: 90vh;
        max-width: 100%;
      }

      .header {
        font-size: 1.25rem;
        padding: 1rem;
      }

      .chat-form {
        padding: 0.75rem 1rem;
      }
    }

    /* Botão voltar */
    .back-button {
      background: none;
      border: none;
      cursor: pointer;
      margin-right: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      border-radius: 50%;
      transition: background 0.3s ease;
      color: #4a5568;
    }

    .back-button:hover {
      background: rgba(102, 126, 234, 0.1);
    }

    .header {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .header .title {
      flex-grow: 1;
      text-align: center;
      margin-right: 30px; /* para não ficar colado no botão */
    }
