body {
  background-color: lightblue;
}

.dropdown-item:hover {
  cursor: pointer;
}


.dropdown {
  position: relative;
  /* Permite posicionar o dropdown-content em relação ao dropdown */
  display: inline-block;
  /* Faz o dropdown ocupar apenas a largura do seu conteúdo */
}

.dropdown-toggle {
  background-color: #4CAF50;
  /* Cor de fundo do botão */
  color: white;
  /* Cor do texto do botão */
  padding: 10px 15px;
  /* Espaçamento interno do botão */
  border: none;
  /* Remove a borda do botão */
  cursor: pointer;
  /* Altera o cursor ao passar sobre o botão */
}

.dropdown-content {
  display: none;
  /* Oculta o dropdown por padrão */
  position: absolute;
  /* Posiciona o dropdown abaixo do botão */
  background-color: #f9f9f9;
  /* Cor de fundo do dropdown */
  min-width: 160px;
  /* Largura mínima do dropdown */
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  /* Sombra do dropdown */
  z-index: 1;
  /* Garante que o dropdown fique acima de outros elementos */
}

.dropdown-content a {
  color: black;
  /* Cor do texto dos links */
  padding: 12px 16px;
  /* Espaçamento interno dos links */
  text-decoration: none;
  /* Remove o sublinhado dos links */
  display: block;
  /* Faz os links ocuparem toda a largura do dropdown */
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  /* Cor de fundo ao passar o mouse sobre os links */
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
  /* Exibe o dropdown ao passar o mouse sobre o botão */
}

@media (max-width: 768px) {
  .modal-dialog {
    max-width: 80% !important;
    /* Ocupar quase toda a largura no celular */
    margin: auto !important;
    /* Centraliza horizontalmente */
  }
}

.custom-dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.dropdown-item:hover {
  background: #f0f0f0 !important;
}

.modern-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modern-title i {
  color: #007bff;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-toggle {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  color: white;
  font-size: 20px;
  z-index: 9999;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.chatbot-info h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.status {
  font-size: 12px;
  opacity: 0.8;
}

.status.online::before {
  content: '●';
  color: #4CAF50;
  margin-right: 5px;
}

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-clear {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
  opacity: 0.8;
}

.chatbot-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.user-message .message-content {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  word-wrap: break-word;
}

.bot-message .message-content {
  max-width: 320px;
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.message-content a {
  color: #667eea;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  word-break: break-all;
}

.message-content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.user-message .message-content a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

.user-message .message-content a:hover {
  color: #e3f2fd;
}

.message-content strong {
  font-weight: 600;
  color: #2c3e50;
}

.user-message .message-content strong {
  color: #ffffff;
}

.message-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #e83e8c;
}

.message-content code a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.message-content code a:hover {
  text-decoration: underline;
}

.user-message .message-content code {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.user-message .message-content code a {
  color: #ffffff;
  font-weight: 700;
}

.message-content ol,
.message-content ul {
  margin: 10px 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.message-content ol {
  list-style-type: decimal;
}

.message-content ul {
  list-style-type: disc;
}

.message-content li {
  margin-bottom: 6px;
  padding-left: 5px;
}

.message-content li::marker {
  color: #667eea;
  font-weight: bold;
}

.user-message .message-content li::marker {
  color: #ffffff;
}

.message-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 5px;
  display: block;
}

.chatbot-input {
  padding: 12px 20px 20px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chatbot-tools-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.chatbot-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

#chatbot-input-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

#chatbot-input-field:focus {
  border-color: #667eea;
}

.chatbot-tool-btn {
  width: 32px;
  height: 32px;
  background: #f1f3f5;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  color: #868e96;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 13px;
  flex-shrink: 0;
}

.chatbot-tool-btn:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-1px);
}

.chatbot-tool-btn.active {
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Cores por ferramenta */
#chatbot-web-toggle.active {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}
#chatbot-code-toggle.active {
  background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
}
#chatbot-url-toggle.active {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.chatbot-send {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 12px 16px;
  background: white;
  border-radius: 18px;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .chatbot-window {
    width: 300px;
    height: 450px;
    bottom: 75px;
  }

  .chatbot-container {
    bottom: 55px;
    right: 5px;
  }
}

/* Reduzir zoom para 90% em dispositivos móveis */
@media (max-width: 768px) {
  .main-content {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

/* Espaço extra para rodapé fixo */
.main-content {
  padding-bottom: 80px;
  min-height: calc(100vh - 200px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .main-content {
    padding-bottom: 0;
    min-height: auto;
    margin-bottom: -10vh;
  }
}