/* sidebar.css - Sidebar styles */

.app-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 250px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  z-index: 950;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow-y: auto;
  transform: translateX(0);
}

.sidebar-content {
  flex: 1;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-title {
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item svg {
  margin-right: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  width: 20px;
  height: 20px;
}

.nav-item:hover {
  background-color: var(--hover-bg);
  text-decoration: none;
  color: var(--primary-color);
}

.nav-item:hover svg {
  color: var(--primary-color);
}

.nav-item.active {
  background-color: var(--primary-color-light);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.nav-item.active svg {
  color: var(--primary-color);
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bot-status {
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--warning-color);
}

.status-dot.active {
  background-color: var(--success-color);
}

.status-dot.error {
  background-color: var(--danger-color);
}

.status-text {
  color: var(--text-muted);
}

/* Collapsed sidebar */
/* Remove collapsed sidebar styles to prevent persistent icons */
.app-layout.sidebar-collapsed .app-sidebar {
  transform: translateX(-250px);
}

.app-layout.sidebar-collapsed .app-main {
  margin-left: 0;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 949;
  backdrop-filter: blur(2px);
}

/* Mobile sidebar */
@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-250px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }

  .app-layout.sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-layout.sidebar-open .sidebar-overlay {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }
}
