.file-system-container {
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 16px;
}

.address-bar-container {
  display: flex;
  align-items: center;
}

.address-bar {
  font-family: monospace;
}

.file-system-grid {
  display: grid;
  grid-template-columns: 300px 5px 1fr;
  gap: 0;
  height: 100%;
  overflow: hidden;
}

.grid-splitter {
  background-color: var(--mud-palette-divider);
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.2s ease;
}

.grid-splitter:hover {
  background-color: var(--mud-palette-primary);
}

.grid-splitter:active {
  background-color: var(--mud-palette-primary-darken);
}

/* Prevent text selection during resize */
.is-resizing * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

.is-resizing {
  cursor: col-resize !important;
}

.tree-panel {
  border: 1px solid var(--mud-palette-divider);
  border-radius: 4px;
  padding: 16px;
  overflow: auto;
  background-color: var(--mud-palette-background);
  margin-right: 8px;
}

.content-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--mud-palette-divider);
  border-radius: 4px;
  padding: 16px;
  overflow-y: hidden;
  background-color: var(--mud-palette-background);
  margin-left: 8px;
}

.content-panel .file-system-grid-cell {
  overflow: auto;
}

@media (max-width: 768px) {
  .file-system-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .grid-splitter {
    display: none;
  }

  .tree-panel {
    max-height: 30vh;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .content-panel {
    margin-left: 0;
  }
}