/* ========================================================================
   LEFT SIDEBAR - PROJECT NAVIGATOR
   Base layout from shared workspace-sidebar.css
   Only vis-specific overrides here
   ======================================================================== */

/* Vis-specific: z-index above datatable sticky headers */
.vis-sidebar {
  position: relative;
  z-index: 200;
  background: var(--vis-bg-secondary);
  border-right: 1px solid var(--vis-border);
}

/* Dark mode */
[data-theme="dark"] .vis-sidebar {
  background: var(--workspace-bg-primary) !important;
  border-right-color: var(--workspace-border-default);
}

/* Project Tree */
.project-tree {
  padding: 0;
}

.tree-section {
  margin-bottom: 8px;
}

.tree-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
}

.tree-section-header:hover {
  background: var(--vis-bg-hover);
}

.tree-section:first-child .tree-section-header {
  padding-top: 0;
}

.tree-section-content {
  padding: 4px 0;
}

.tree-item {
  /* Container for tree items with children */
  font-size: 13px;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

/* Hover removed from .tree-item - now on .tree-item-header */

.tree-item.active {
  background: var(--vis-bg-hover);
  font-weight: 600;
}

.tree-item i {
  font-size: 14px;
  color: var(--workspace-icon-primary);
}

.tree-item-empty {
  padding: 8px 16px 8px 32px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Empty state for file tree */
.tree-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
}

.tree-empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.tree-empty-state p {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.tree-empty-state small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 200px;
}

.tree-empty-state .empty-state-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.tree-empty-state .empty-state-actions .btn {
  font-size: 12px;
  padding: 6px 12px;
}
