/* =========================================================
   TYR Networks — style portail (sidebar uniquement)
   Intranet SDSAT3 — nav.app-sidebar
   ========================================================= */

.app-sidebar {
  --tyr-accent-a: #6ee7ff;
  --tyr-accent-b: #5b8dff;
  --tyr-purple: #b48bff;
  --tyr-text: #e9ecf5;
  --tyr-text-muted: #a4abc1;
  --tyr-border: rgba(255, 255, 255, 0.08);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(180deg, #0c0e1a 0%, #07070d 100%) !important;
  border-right: 1px solid var(--tyr-border);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35);
  color: var(--tyr-text);
  overflow: hidden;
  isolation: isolate;
  position: relative;
}

.app-sidebar::before {
  content: "";
  position: absolute;
  top: -80px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 141, 255, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.app-sidebar::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 139, 255, 0.14) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.app-sidebar > * { position: relative; z-index: 1; }

.app-sidebar .brand { display: none; }

.app-sidebar .sidebar-header {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid var(--tyr-border);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.app-sidebar .sidebar-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 16px rgba(110, 231, 255, 0.22));
}

.app-sidebar .sidebar-logo-img-white-label {
  max-width: 180px;
  max-height: 56px;
  height: auto;
  filter: none;
}

.app-sidebar .sidebar-app-name {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--tyr-accent-a) 0%, var(--tyr-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-sidebar .sidebar-header p {
  margin: 0.35rem 0 0;
  font-size: 1.08rem;
  color: var(--tyr-text-muted);
}

.app-sidebar .sidebar-version {
  font-size: 1.08rem !important;
  color: var(--tyr-text-muted) !important;
}

.app-sidebar .sidebar-nav {
  padding-bottom: 0.5rem;
}

.app-sidebar .sidebar-footer .user {
  border-top-color: var(--tyr-border);
}

.app-sidebar a,
.app-sidebar .nav-item,
.app-sidebar button.nav-item {
  color: rgba(233, 236, 245, 0.82) !important;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 2px solid transparent;
}

.app-sidebar a:hover,
.app-sidebar .nav-item:hover,
.app-sidebar button.nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--tyr-text) !important;
  text-decoration: none;
}

.app-sidebar a.active,
.app-sidebar .nav-item.active,
.app-sidebar button.nav-item.active {
  background: color-mix(in srgb, var(--accent, #509ee3) 22%, transparent) !important;
  color: var(--accent, #509ee3) !important;
  border-left-color: var(--accent, #509ee3);
  font-weight: 500;
}

.app-sidebar a.active:hover,
.app-sidebar .nav-item.active:hover,
.app-sidebar button.nav-item.active:hover {
  background: color-mix(in srgb, var(--accent, #509ee3) 30%, transparent) !important;
  color: var(--accent, #509ee3) !important;
}

.app-sidebar .nav-icon,
.app-sidebar .nav-icon--inline,
.app-sidebar .nav-collapse-toggle .nav-icon {
  color: var(--accent, #509ee3) !important;
  opacity: 1;
}

.app-sidebar .nav-item.active .nav-icon,
.app-sidebar a.active .nav-icon,
.app-sidebar .nav-collapse-toggle--active .nav-icon {
  color: var(--accent, #509ee3) !important;
  opacity: 1;
}

.app-sidebar .nav-section {
  color: var(--tyr-text-muted) !important;
  border-top: 1px solid var(--tyr-border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.app-sidebar .nav-collapse-toggle {
  color: rgba(233, 236, 245, 0.78) !important;
  border-left: 2px solid transparent;
}

.app-sidebar .nav-collapse-toggle:hover,
.app-sidebar .nav-collapse-toggle--active {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--tyr-text) !important;
}

.app-sidebar .user {
  border-top-color: var(--tyr-border);
  color: var(--tyr-text-muted) !important;
  font-size: 1.08rem;
}

.app-sidebar .btn-logout {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--tyr-text) !important;
  font-size: 1.08rem;
}

.app-sidebar .btn-logout:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(110, 231, 255, 0.3) !important;
  color: var(--tyr-accent-a) !important;
}
