/* ==========================================================================
   Kairos — Navigation Latérale Gauche (Sidebar) & Shell Administrateur
   ========================================================================== */

.admin-body-shell {
  display: flex;
  align-items: stretch;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 62px);
}

.admin-sidebar {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  padding: 1.25rem 0.85rem;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-subtle);
}

html.dark .admin-sidebar {
  background: rgba(8, 12, 24, 0.78);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.75;
  padding: 0 0.75rem 0.35rem;
}

.sidebar-nav-btn {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-nav-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-nav-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.sidebar-nav-btn.active {
  color: var(--color-kairos);
  background: var(--color-kairos-tint);
  border-color: var(--color-kairos-border);
}

.sidebar-nav-btn.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 18px;
  border-radius: 99px;
  background: var(--color-kairos);
}

.admin-body-shell > .workspace-container {
  flex: 1;
  min-width: 0;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 4rem;
}

@media (max-width: 920px) {
  .admin-sidebar {
    display: none;
  }

  .admin-body-shell > .workspace-container {
    padding: 1.25rem 1rem 3.5rem;
  }
}

