/* Custom Sidebar Section Styling for Filebrowser */
.custom-nav-section {
  border-top: 1px solid var(--divider, rgba(0, 0, 0, 0.05));
  margin: 0;
  padding: 0;
}

.custom-nav-section .action {
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 0;
  width: 100%;
  padding: 0.5em 0.5em;
  font-size: 1.1em;
  display: block;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--textSecondary, #333);
  text-align: left;
  transition: background-color 0.1s ease, color 0.1s ease;
  box-sizing: border-box;
}

.custom-nav-section .action > * {
  vertical-align: middle;
}

.custom-nav-section .action i.material-icons {
  font-size: 1.5rem;
  margin-right: 12px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
}

.custom-nav-section .action span {
  display: inline-block;
  vertical-align: middle;
}

.custom-nav-section .action:hover {
  background-color: var(--hover, rgba(0, 0, 0, 0.05));
}

.custom-nav-section .action.active-media-link {
  background-color: var(--hover, rgba(0, 0, 0, 0.08));
  font-weight: 500;
}

/* Dark mode adjustments */
:root.dark .custom-nav-section {
  border-top-color: var(--divider, rgba(255, 255, 255, 0.05));
}

:root.dark .custom-nav-section .action {
  color: var(--action, #fff);
}

:root.dark .custom-nav-section .action:hover {
  background-color: var(--hover, rgba(255, 255, 255, 0.05));
}

:root.dark .custom-nav-section .action.active-media-link {
  background-color: rgba(255, 255, 255, 0.1);
}
