/* ============================================================
   SidebarNav — Links de Cursos + Dashboard na sidebar principal
   Identidade visual KnowPill: rosa #e879a0 + azul #3b82f6
   ============================================================ */

.sidebar-analytics-nav {
  padding: 0 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Divisor */
.sdb-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  margin: 8px 0 10px;
}

/* Link base */
.sdb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  position: relative;
  overflow: hidden;
}

.sdb-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,
    rgba(232, 121, 160, 0.18),
    rgba(59, 130, 246, 0.14)
  );
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sdb-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.sdb-link:hover::before { opacity: 1; }

.sdb-link.active {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(232, 121, 160, 0.28),
    rgba(59, 130, 246, 0.20)
  );
  box-shadow: inset 0 0 0 1px rgba(232, 121, 160, 0.38);
}

.sdb-link.active::before { opacity: 1; }

/* Linha lateral indicadora de ativo */
.sdb-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #e879a0 0%, #3b82f6 100%);
}

/* Ícone */
.sdb-icon {
  font-size: 17px;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform 0.18s;
}

.sdb-link:hover .sdb-icon { transform: scale(1.12); }

/* Label */
.sdb-label {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* Badge de role */
.sdb-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(232, 121, 160, 0.22);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 121, 160, 0.38);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.sdb-link.active .sdb-badge {
  background: rgba(232, 121, 160, 0.40);
  color: #fce7f3;
  border-color: rgba(232, 121, 160, 0.55);
}

/* Sidebar dark override */
.app-sidebar .sidebar-analytics-nav .sdb-link {
  color: rgba(255, 255, 255, 0.78);
}
