/* Virtual File System (VFS) & File Explorer Styles */
#bottom-vfs-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 250px;
  background: rgba(3, 10, 25, 0.95);
  border-top: 2px solid var(--hud-panel-border);
  border-right: 1px solid var(--hud-panel-border);
  transition: height 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 12;
}

#bottom-vfs-drawer.collapsed {
  height: 35px;
}

.vfs-pane {
  display: flex;
  flex-direction: row;
  gap: 15px;
  height: calc(100% - 35px);
  width: 100%;
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.folder-action-group {
  display: flex;
  gap: 6px;
}

.folder-action-group button {
  flex: 1;
}

.current-path-display {
  background: rgba(3, 8, 20, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  gap: 6px;
  font-size: 0.75rem;
}

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

.path-value {
  color: var(--hud-cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.file-tree-node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.file-tree-node:hover {
  background: rgba(0, 243, 255, 0.05);
  border-color: rgba(0, 243, 255, 0.15);
}

.file-node-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.file-node-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-toggle-icon {
  width: 12px;
  display: inline-flex;
  justify-content: center;
  transition: transform 0.2s;
}

.node-toggle-icon.expanded {
  transform: rotate(90deg);
}

.depth-0 { padding-left: 6px; }
.depth-1 { padding-left: 20px; }
.depth-2 { padding-left: 34px; }
.depth-3 { padding-left: 48px; }
.depth-4 { padding-left: 62px; }

.active-dir {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.4);
  color: var(--hud-cyan);
}

.active-file {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--hud-cyan);
  color: #fff;
  font-weight: bold;
}

.node-controls-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-delete-btn, .file-rename-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  transition: all 0.2s;
  font-size: 0.75rem;
}

.file-delete-btn:hover {
  color: var(--hud-red);
  background: rgba(255, 62, 62, 0.1);
}

.file-rename-btn:hover {
  color: var(--hud-cyan);
  background: rgba(0, 243, 255, 0.1);
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
}