/* File sidebar drawer component */

.file-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 85vw;
  background: var(--bg);
  border-right: 1px solid var(--border-light);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.file-sidebar[hidden] {
  display: none;
}

.file-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--pre-bg);
}

.file-sidebar__title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.file-sidebar__heading {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--full-contrast);
}

.file-sidebar__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.file-sidebar__body .file-tree {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.file-sidebar__body .file-tree__header {
  border-bottom: 1px solid var(--border-light);
  background: var(--pre-bg);
  padding: 10px 14px;
  flex-shrink: 0;
}

.file-sidebar__body .file-tree__content {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 10px 12px;
}

.file-sidebar__backdrop {
  position: fixed;
  inset: 0;
  background: var(--sidebar-backdrop);
  backdrop-filter: blur(2px);
  z-index: 55;
  transition: opacity 0.2s ease;
}

.file-sidebar__backdrop[hidden] {
  display: none;
}
