/* chatbot_jr.css */
#chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  background: #192537;
  color: white;
  border-radius: 20px;
  box-shadow: 0 0 15px #f3b05eaa;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  z-index: 9999;
  transition: all 0.3s ease;
}

#chatbot-header {
  background: #1f2e49;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  position: relative;
}

#chatbot-minimize {
  position: absolute;
  right: 12px;
  top: 6px;
  background: none;
  border: none;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
}

#chatbot-messages {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  margin: 8px 0;
  line-height: 1.4;
  word-wrap: break-word;
  display: inline-block;
  animation: fadeIn 0.3s ease-in-out;
  clear: both;
}

.message.user {
  background: #f3b05e;
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.message.bot {
  background: #1f2e49;
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

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

#chatbot-input {
  display: flex;
  border-top: 1px solid #444;
  padding: 8px;
  background-color: #1f2e49;
}

#chatbot-input input {
  flex-grow: 1;
  border: none;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  font-size: 14px;
  border-radius: 10px;
  margin-right: 8px;
}

#chatbot-input button {
  background: #f3b05e;
  border: none;
  padding: 10px 16px;
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

#chatbot-input button:hover {
  background: #e0a844;
  color: #fff;
}

#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1f2e49;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  font-size: 26px;
  border: none;
  z-index: 9998;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2s infinite;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 15px #f3b05e88;
  transition: all 0.3s ease;
}

@keyframes glowPing {
  0% { box-shadow: 0 0 0 0 rgba(243, 176, 94, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(243, 176, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 176, 94, 0); }
}

#chatbot-toggle.glow-ping {
  animation: glowPing 1.8s ease-out infinite;
}

#chatbot-toggle {
  transition: all 0.3s ease;
}


/* Adicione ao final do seu chatbot_jr.css */

@media (max-width: 600px) {
  #chatbot-container {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }

  #chatbot-header {
    font-size: 18px;
    padding: 14px;
  }

  #chatbot-messages {
    padding: 12px;
    font-size: 15px;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 60px; /* espaço pro campo de input */
  }

  #chatbot-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #1f2e49;
    z-index: 9999;
  }

  #chatbot-input input {
    font-size: 16px;
    padding: 12px;
  }

  #chatbot-input button {
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  #chatbot-minimize {
    right: 20px;
  }
}
