  /* Bot Management Navbar */
  .bot-management-nav {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
  }

  .bot-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
  }

  .bot-nav-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bot-nav-info i {
    font-size: 24px;
    color: var(--purple);
  }

  .bot-selector-wrapper {
    position: relative;
  }

  .bot-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    
    transition: all 0.2s ease;
    justify-content: center;
    position: relative;
    

    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
  }

  .bot-nav-title-tracking{
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .bot-nav-title-2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
  }


  .bot-nav-title i.fa-chevron-down, .bot-nav-title-tracking i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.2s ease;
  }

  .bot-nav-title.open i.fa-chevron-down, .bot-nav-title-tracking.open i.fa-chevron-down {
    transform: rotate(180deg);
  }

  .bot-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    margin-top: 4px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    /* maior largura/altura */
    min-width: 255px;
    max-height: 700px;           /* altura maior com scroll */

    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: none;
  }


  .bot-dropdown-tracking {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    margin-top: 4px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    /* maior largura/altura */
    min-width: 405px;
    max-height: 700px;           /* altura maior com scroll */

    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: none;
  }


  .bot-dropdown.show,.bot-dropdown-tracking.show {
    display: block;
  }

  .bot-dropdown-item {
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .bot-dropdown-item:last-child {
    border-bottom: none;
  }

  .bot-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
  }

  .bot-dropdown-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
    font-weight: 600;
  }

  .bot-dropdown-item i {
    font-size: 12px;
    opacity: 0.7;
  }

  .bot-dropdown::-webkit-scrollbar {
    width: 6px;
  }

  .bot-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }

  .bot-nav-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
  }

  .bot-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bot-status-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .bot-status-toggle.running {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
  }

  .bot-status-toggle.stopped {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
  }

  .toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .toggle-switch.active {
    background: var(--success);
  }

  .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .toggle-switch.active::after {
    left: 22px;
  }

  .bot-nav-tabs {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    margin-bottom: 24px
  }

  .bot-nav-tabs::-webkit-scrollbar {
    height: 2px;
  }

  .bot-nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 2px; 
  }

  .bot-nav-tab {
    flex: 0 0 auto;
  }

  .bot-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
  }
  

  .bot-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
  }

  .bot-nav-link.active {
    color: var(--purple);
    border-bottom-color: var(--purple);

  }



  .bot-nav-link i {
    font-size: 16px;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .bot-nav-header {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }
    
    .bot-nav-tabs{
      flex-direction: column;
    }

    .bot-nav-actions {
      width: 100%;
      justify-content: space-between;
    }

    .bot-nav-link {
      padding: 14px 16px;
      font-size: 13px;
    }
  }


.btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ef4444;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-remove:hover {
  background: #a32323;
  color: white;
}

.bot-selector-wrapper  i  {
    color: var(--purple)
}

#btn-remove-input{
  margin-top: 0.5em;
}

.bot-nav-link.active:hover {
    background: rgba(139, 92, 246, 0.1);
  }

.bot-nav-tab a i {
  margin-right: 15px;
}

.bot-nav-tab a span {
  padding-right: 8px;
  letter-spacing: 1px;
}