/* Modern sidebar overrides for Filament admin panel */

/* Sidebar container: subtle border, soft background */
.fi-sidebar {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.04), 0 2px 4px -2px rgb(0 0 0 / 0.02);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%) !important;
}

.dark .fi-sidebar {
  background: linear-gradient(180deg, rgb(23 23 23) 0%, rgb(10 10 10) 100%) !important;
}

/* Header: cleaner separation */
.fi-sidebar-header {
  min-height: 4.5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-bottom: 1px solid rgb(229 231 235 / 0.8);
}

.dark .fi-sidebar-header {
  border-bottom-color: rgb(255 255 255 / 0.06);
}

/* Nav area: more breathing room */
.fi-sidebar-nav {
  gap: 1.75rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.fi-sidebar-nav-groups {
  gap: 1.75rem;
}

/* Group label: uppercase tracking, clearer hierarchy */
.fi-sidebar-group-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(107 114 128);
}

.dark .fi-sidebar-group-label {
  color: rgb(156 163 175);
}

/* Group collapse button area */
.fi-sidebar-group-button {
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
}

/* Nav items: pill-style, clearer active and hover */
.fi-sidebar-item-button {
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fi-sidebar-item-button:hover {
  background-color: rgb(243 244 246) !important;
}

.dark .fi-sidebar-item-button:hover {
  background-color: rgb(255 255 255 / 0.08) !important;
}

/* Active item: primary pill */
.fi-sidebar-item.fi-active .fi-sidebar-item-button,
.fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-button {
  background: rgb(81 69 229 / 0.12) !important;
  color: rgb(81 69 229);
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button,
.dark .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-button {
  background: rgb(129 140 248 / 0.2) !important;
  color: rgb(165 180 252);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-icon {
  color: rgb(81 69 229) !important;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.dark .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-icon {
  color: rgb(165 180 252) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-label {
  color: rgb(81 69 229) !important;
  font-weight: 600;
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-label,
.dark .fi-sidebar-item.fi-sidebar-item-active .fi-sidebar-item-label {
  color: rgb(165 180 252) !important;
}

/* Sub-group items spacing */
.fi-sidebar-group-items {
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Icon alignment and size */
.fi-sidebar-item-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.fi-sidebar-group-icon {
  width: 1.25rem;
  height: 1.25rem;
}
