/* ========== BASE WOW SIDEBAR (Purple–Pink) ========== */

.wow-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  width: 260px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  overflow-y: auto;
  height: calc(100vh - 56px); /* desktop: below top navbar */
}

/* Inner flex so footer stays at bottom but still scrolls */
.wow-sidebar-inner {
  padding: 1.05rem 1rem 1.5rem;
}

/* ========== USER HEADER (COMPACT) ========== */

.sidebar-user {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.7rem;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f973c9, #7b2ff7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.sidebar-user-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.sidebar-user-role {
  font-size: 0.78rem;
  color: #9333ea;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ========== NAV LINKS ========== */

.sidebar-nav {
  margin-top: 0.7rem;
}

.wow-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #374151;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
}

.wow-sidebar a i {
  font-size: 17px;
  min-width: 17px;
}

/* Hover */
.wow-sidebar a:hover {
  background: rgba(123, 47, 247, 0.05);
  color: #7b2ff7;
  transform: translateX(1px);
}

/* Active – subtle WOW purple/pink */
.wow-sidebar a.active {
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.09), rgba(236, 72, 153, 0.08));
  color: #6d28d9 !important;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(123, 47, 247, 0.18);
}

.wow-sidebar a.active i {
  color: #ec4899;
}

/* ========== FOOTER LINKS ========== */

.sidebar-footer {
  font-size: 0.84rem;
}

.sidebar-footer a {
  margin-bottom: 3px;
}

/* ========== SMALL PILLS (wallet / KYC) ========== */

.pill {
  margin-left: auto;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
}

.pill-blue,
.pill-purple {
  background: rgba(123, 47, 247, 0.09);
  color: #5b21b6;
}

.pill-green {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

/* ========== SCROLLBAR ========== */

.wow-sidebar::-webkit-scrollbar {
  width: 6px;
}

.wow-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.wow-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

/* ========== RESPONSIVE BEHAVIOR ========== */

/* Desktop: sticky under top nav */
@media (min-width: 992px) {
  .wow-sidebar {
    position: sticky;
    top: 56px; /* height of top navbar */
  }
}

/* Mobile: left drawer under navbar, full height, scrollable */
@media (max-width: 991.98px) {
  .sidebar.wow-sidebar {
    position: fixed;
    top: 56px;           /* under top navbar */
    left: 0;
    bottom: 0;           /* extend to bottom */
    width: 260px;
    height: auto;
    max-height: none;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 1040;
    box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.35);
    background: #ffffff;
    transform: translateX(-100%);
  }

  .sidebar.wow-sidebar.show {
    transform: translateX(0);
    transition: transform 0.25s ease-out;
  }

  .sidebar.wow-sidebar .wow-sidebar-inner {
    min-height: 100%;
    padding-bottom: 1.75rem;
  }
}
