.database-explorer {
  height: 100%;
  background: var(--gray-1);
  border-right: 1px solid var(--gray-4);
  overflow: hidden;
  user-select: none;
}

.explorer-header {
  border-bottom: 1px solid var(--gray-4);
  background: var(--gray-2);
}

.explorer-search {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--gray-6);
  border-radius: var(--radius-2);
  background: var(--gray-1);
  color: var(--gray-12);
  font-size: 12px;
  transition: all 0.2s;
}

.explorer-search:focus {
  outline: none;
  border-color: var(--accent-8);
  box-shadow: 0 0 0 1px var(--accent-8);
}

.explorer-content {
  flex: 1;
  height: 100%;
}

.database-list {
  padding: var(--space-2);
}

.database-item {
  cursor: pointer;
  border-radius: var(--radius-2);
  transition: all 0.2s;
  user-select: none;
}

.database-item:hover {
  background: var(--gray-3);
}

.database-item.expanded {
  background: var(--gray-3);
}

.database-reload-button {
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.database-item:hover .database-reload-button {
  opacity: 1;
}

.expand-icon {
  transition: transform 0.2s;
  display: inline-block;
  color: var(--gray-10);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.object-list {
  border-left: 1px solid var(--gray-4);
  margin-left: 8px;
}

.object-item {
  cursor: pointer;
  border-radius: var(--radius-2);
  transition: all 0.2s;
  margin-left: 8px;
  user-select: none;
}

.object-item:hover {
  background: var(--gray-3);
}

.object-item:hover .object-name {
  color: var(--accent-11);
}

.object-name {
  transition: color 0.2s;
}

.database-item:active {
  background: var(--gray-4);
}

.column-list {
  border-left: 1px solid var(--gray-4);
  margin-left: 8px;
}

.column-item {
  cursor: default;
  border-radius: var(--radius-2);
  transition: all 0.2s;
  margin-left: 8px;
  font-size: 11px;
}

.column-item:hover {
  background: var(--gray-3);
}

.column-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-item.expanded {
  background: var(--gray-3);
}
