/**
 * Dashboard Sidebar & Button UI/UX - Advanced
 * Glassmorphism, gradients, micro-interactions, premium buttons
 */

/* ============================================
   DASHBOARD SIDEBAR - ADVANCED UI
   ============================================ */

.sg-offcanvas-sidebar {
  position: relative;
}

/* Card - premium glass with gradient border and inner glow */
.sg-offcanvas-sidebar .main-side-nav-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 60px rgba(94, 114, 228, 0.12),
              0 8px 24px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -2px 0 rgba(94, 114, 228, 0.06);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.sg-offcanvas-sidebar .main-side-nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 20%,
    rgba(255, 255, 255, 0.95) 80%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.sg-offcanvas-sidebar .main-side-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(94, 114, 228, 0.16),
              0 10px 28px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.95),
              inset 0 -2px 0 rgba(94, 114, 228, 0.08);
}

/* Left accent bar - stronger gradient */
.sg-offcanvas-sidebar .main-side-nav-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(94, 114, 228, 0.5) 25%,
    rgba(130, 94, 228, 0.45) 75%,
    transparent 100%);
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  z-index: 0;
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav-card {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              inset 0 -2px 0 rgba(94, 114, 228, 0.15);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav-card:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              inset 0 -2px 0 rgba(94, 114, 228, 0.2);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav-card::after {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(94, 114, 228, 0.6) 25%,
    rgba(130, 94, 228, 0.55) 75%,
    transparent 100%);
}

/* Sidebar body - compact padding, subtle top fade */
.sg-offcanvas-sidebar .main-side-nav-card .card-body.with-nav {
  position: relative;
  padding: 12px 14px 16px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 25%,
    transparent 75%,
    rgba(248, 250, 252, 0.35) 100%);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav-card .card-body.with-nav {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.15) 100%);
}

/* Optional header - compact */
.dashboard-sidebar-card .dashboard-sidebar-header {
  padding: 12px 14px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(94, 114, 228, 0.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(94, 114, 228, 0.9);
}

body.night-mode .dashboard-sidebar-card .dashboard-sidebar-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

/* Nav link - compact row, icon pill + hover shine */
.sg-offcanvas-sidebar .main-side-nav > li,
.sg-offcanvas-sidebar .main-side-nav > a {
  margin-bottom: 2px;
}

.sg-offcanvas-sidebar .main-side-nav > li.sidebar-collapse-item {
  margin-bottom: 2px;
}

.sg-offcanvas-sidebar .main-side-nav a,
.sg-offcanvas-sidebar .main-side-nav .static {
  min-height: 40px;
  border-radius: 12px;
  padding: 10px 14px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease,
              color 0.2s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-left-color 0.2s ease;
}

/* Hover - slide + lift + soft glow */
.sg-offcanvas-sidebar .main-side-nav > li > a:hover,
.sg-offcanvas-sidebar .main-side-nav > li.sidebar-collapse-item > a:hover {
  transform: translateX(8px) translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 114, 228, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.4);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav > li > a:hover,
body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.sidebar-collapse-item > a:hover {
  box-shadow: 0 4px 14px rgba(94, 114, 228, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Icon area - scale applied to inner svg/icon only (pill has its own background) */
.sg-offcanvas-sidebar .main-side-nav a > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon img {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon img {
  transform: scale(1.06);
}

.sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon img {
  transform: scale(1.02);
}

/* Active state - pill with left bar and glow */
.sg-offcanvas-sidebar .main-side-nav > li.active > a {
  border-left-width: 3px;
  border-radius: 12px 10px 10px 12px;
  box-shadow: 0 6px 18px rgba(94, 114, 228, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.85),
              0 0 0 1px rgba(94, 114, 228, 0.18);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a {
  box-shadow: 0 8px 24px rgba(94, 114, 228, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 0 0 1px rgba(94, 114, 228, 0.35);
}

/* Focus - high contrast ring */
.sg-offcanvas-sidebar .main-side-nav a:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
  border-radius: 12px;
}

.sg-offcanvas-sidebar .main-side-nav a:active {
  transform: translateX(4px) translateY(0);
  transition-duration: 0.12s;
}

/* Collapse trigger */
.sg-offcanvas-sidebar .main-side-nav a[data-bs-toggle="collapse"]:after {
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

/* Sub-menu - compact, gradient left edge */
.sg-offcanvas-sidebar .main-side-nav ul {
  border-left: 2px solid rgba(94, 114, 228, 0.28);
  padding: 4px 0 0 8px;
  margin-left: 16px;
  margin-bottom: 4px;
  box-shadow: inset 3px 0 10px -4px rgba(94, 114, 228, 0.12);
}

.sg-offcanvas-sidebar .main-side-nav ul li {
  margin-bottom: 1px;
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav ul {
  border-left-color: rgba(94, 114, 228, 0.4);
  box-shadow: inset 3px 0 10px -4px rgba(94, 114, 228, 0.18);
}

.sg-offcanvas-sidebar .main-side-nav ul a {
  min-height: 36px;
  padding: 8px 12px 8px 10px;
  border-radius: 10px;
  transition: background 0.22s ease,
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.22s ease;
}

.sg-offcanvas-sidebar .main-side-nav ul a:hover {
  transform: translateX(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav ul a:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sg-offcanvas-sidebar .main-side-nav ul > li.active > a {
  background: rgba(94, 114, 228, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              0 0 0 1px rgba(94, 114, 228, 0.12);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav ul > li.active > a {
  background: rgba(94, 114, 228, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
              0 0 0 1px rgba(94, 114, 228, 0.25);
}

/* Section titles - less gap above/below */
.sg-offcanvas-sidebar .main-side-nav .nav-section-title {
  margin: 10px 0 4px;
  padding: 0 2px;
}

.sg-offcanvas-sidebar .main-side-nav .nav-section-title:first-child {
  margin-top: 0;
}

/* Section labels - compact pill */
.sg-offcanvas-sidebar .main-side-nav .nav-section-label {
  padding: 6px 12px 8px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(94, 114, 228, 0.9);
  background: linear-gradient(90deg, rgba(94, 114, 228, 0.06) 0%, transparent 100%);
  border-radius: 8px;
  border: 1px solid rgba(94, 114, 228, 0.1);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav .nav-section-label {
  color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(90deg, rgba(94, 114, 228, 0.15) 0%, transparent 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.sg-offcanvas-sidebar .main-side-nav .nav-section-label::before {
  display: none;
}

.sg-offcanvas-sidebar .main-side-nav .nav-section-label::after {
  width: 4px;
  height: 18px;
  border-radius: 0 3px 3px 0;
}

/* Scrollbar - premium */
.sg-offcanvas-sidebar .dashboard-sidebar-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 114, 228, 0.5) rgba(94, 114, 228, 0.06);
}

.sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar {
  width: 8px;
}

.sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(94, 114, 228, 0.04), transparent);
  border-radius: 4px;
}

.sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    rgba(94, 114, 228, 0.45),
    rgba(130, 94, 228, 0.35));
  border-radius: 4px;
  min-height: 48px;
}

.sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
    rgba(94, 114, 228, 0.6),
    rgba(130, 94, 228, 0.5));
}

.sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar-thumb:active {
  background: rgba(94, 114, 228, 0.7);
}

body.night-mode .sg-offcanvas-sidebar .dashboard-sidebar-body {
  scrollbar-color: rgba(94, 114, 228, 0.4) rgba(0, 0, 0, 0.2);
}

body.night-mode .sg-offcanvas-sidebar .dashboard-sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(94, 114, 228, 0.35), rgba(130, 94, 228, 0.25));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sg-offcanvas-sidebar .main-side-nav-card,
  .sg-offcanvas-sidebar .main-side-nav a,
  .sg-offcanvas-sidebar .main-side-nav .static,
  .sg-offcanvas-sidebar .main-side-nav ul a,
  .sg-offcanvas-sidebar .main-side-nav a .main-icon,
  .sg-offcanvas-sidebar .main-side-nav a .fa,
  .sg-offcanvas-sidebar .main-side-nav a .fas {
    transition: none;
  }
  .sg-offcanvas-sidebar .main-side-nav a > .main-icon,
  .sg-offcanvas-sidebar .main-side-nav a > .fa,
  .sg-offcanvas-sidebar .main-side-nav a > .fas,
  .sg-offcanvas-sidebar .main-side-nav a > img.mr10 {
    transition: none;
  }
  .sg-offcanvas-sidebar .main-side-nav-card:hover,
  .sg-offcanvas-sidebar .main-side-nav > li > a:hover,
  .sg-offcanvas-sidebar .main-side-nav > li.sidebar-collapse-item > a:hover,
  .sg-offcanvas-sidebar .main-side-nav ul a:hover {
    transform: none;
  }
  .sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon svg,
  .sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon img,
  .sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon svg,
  .sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon img {
    transform: none;
  }
}


/* ============================================
   ADVANCED ICONS UI - UNIFIED SIZE & COLOUR
   ============================================ */

/* Sidebar: all icons same size and colour (overrides inline styles) */
.sg-offcanvas-sidebar .main-side-nav .main-icon,
.sg-offcanvas-sidebar .main-side-nav .main-icon *,
.sg-offcanvas-sidebar .main-side-nav .fa,
.sg-offcanvas-sidebar .main-side-nav .fas,
.sg-offcanvas-sidebar .main-side-nav .far,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon *,
.sg-offcanvas-sidebar .main-side-nav a > .fa,
.sg-offcanvas-sidebar .main-side-nav a > .fas,
.sg-offcanvas-sidebar .main-side-nav a > .far {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.sg-offcanvas-sidebar .main-side-nav .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav .main-icon svg *,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon svg * {
  fill: currentColor !important;
  color: inherit !important;
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav .main-icon,
body.night-mode .sg-offcanvas-sidebar .main-side-nav .main-icon *,
body.night-mode .sg-offcanvas-sidebar .main-side-nav .fa,
body.night-mode .sg-offcanvas-sidebar .main-side-nav .fas,
body.night-mode .sg-offcanvas-sidebar .main-side-nav .far {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

/* Override inline icon colours so all sidebar icons match */
.sg-offcanvas-sidebar .main-side-nav [style*="color"] {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

/* Sidebar: single icon pill size for all (main + sub-menu) */
.sg-offcanvas-sidebar .main-side-nav a > .main-icon,
.sg-offcanvas-sidebar .main-side-nav a > .fa,
.sg-offcanvas-sidebar .main-side-nav a > .fas,
.sg-offcanvas-sidebar .main-side-nav a > .far,
.sg-offcanvas-sidebar .main-side-nav a > img.mr10 {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  margin-right: 12px !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.08) 0%, rgba(130, 94, 228, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.22s ease,
              box-shadow 0.22s ease,
              color 0.2s ease;
  flex-shrink: 0;
}

/* Single inner icon size for all sidebar icons */
.sg-offcanvas-sidebar .main-side-nav a > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav a > .main-icon img {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  object-fit: contain;
}

.sg-offcanvas-sidebar .main-side-nav a > .fa,
.sg-offcanvas-sidebar .main-side-nav a > .fas,
.sg-offcanvas-sidebar .main-side-nav a > .far {
  font-size: 1rem !important;
}

.sg-offcanvas-sidebar .main-side-nav a > img.mr10 {
  padding: 0;
  object-fit: contain;
  max-width: 18px !important;
  max-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .main-icon,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .fa,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .fas,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .far,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a > img.mr10 {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.14) 0%, rgba(130, 94, 228, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Sidebar: icon pill on hover - subtle */
.sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon,
.sg-offcanvas-sidebar .main-side-nav a:hover > .fa,
.sg-offcanvas-sidebar .main-side-nav a:hover > .fas,
.sg-offcanvas-sidebar .main-side-nav a:hover > .far,
.sg-offcanvas-sidebar .main-side-nav a:hover > img.mr10 {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.18) 0%, rgba(130, 94, 228, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: var(--link-color);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > .fa,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > .fas,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > .far,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > img.mr10 {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.25) 0%, rgba(130, 94, 228, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Sidebar: icon pill on active item - clear but not heavy */
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .fa,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .fas,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .far,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > img.mr10 {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.22) 0%, rgba(130, 94, 228, 0.16) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: var(--link-color);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a > .main-icon,
body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a > .fa,
body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a > .fas,
body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a > .far,
body.night-mode .sg-offcanvas-sidebar .main-side-nav > li.active > a > img.mr10 {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.32) 0%, rgba(130, 94, 228, 0.24) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sub-menu: same icon size and colour as main nav */
.sg-offcanvas-sidebar .main-side-nav ul a > .main-icon,
.sg-offcanvas-sidebar .main-side-nav ul a > .fa,
.sg-offcanvas-sidebar .main-side-nav ul a > .fas,
.sg-offcanvas-sidebar .main-side-nav ul a > .far,
.sg-offcanvas-sidebar .main-side-nav ul a > img.mr10 {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  margin-right: 10px !important;
  border-radius: 10px;
}

.sg-offcanvas-sidebar .main-side-nav ul a > .main-icon svg,
.sg-offcanvas-sidebar .main-side-nav ul a > .main-icon img {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}

.sg-offcanvas-sidebar .main-side-nav ul a > .fa,
.sg-offcanvas-sidebar .main-side-nav ul a > .fas,
.sg-offcanvas-sidebar .main-side-nav ul a > .far {
  font-size: 1rem !important;
}

.sg-offcanvas-sidebar .main-side-nav ul a > img.mr10 {
  max-width: 18px !important;
  max-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}

/* Global icon wrap utility - use .icon-wrap on a span wrapping an icon */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.12) 0%, rgba(130, 94, 228, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.icon-wrap:hover {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.22) 0%, rgba(130, 94, 228, 0.16) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(94, 114, 228, 0.2);
  transform: scale(1.05);
}

.icon-wrap-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
}

.icon-wrap-lg {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
}

/* Icon wrap variants by context */
.icon-wrap-primary {
  background: linear-gradient(135deg, rgba(94, 114, 228, 0.2) 0%, rgba(130, 94, 228, 0.14) 100%);
}

.icon-wrap-success {
  background: linear-gradient(135deg, rgba(45, 206, 137, 0.18) 0%, rgba(45, 206, 137, 0.1) 100%);
}

.icon-wrap-info {
  background: linear-gradient(135deg, rgba(17, 205, 239, 0.18) 0%, rgba(17, 205, 239, 0.1) 100%);
}

.icon-wrap-warning {
  background: linear-gradient(135deg, rgba(251, 99, 64, 0.18) 0%, rgba(251, 99, 64, 0.1) 100%);
}

.icon-wrap-danger {
  background: linear-gradient(135deg, rgba(245, 54, 92, 0.18) 0%, rgba(245, 54, 92, 0.1) 100%);
}


/* ============================================
   HEADER ICONS - UNIFIED SIZE & COLOUR
   ============================================ */

/* All header icons: same colour (match sidebar theme) */
.main-header .header-icon,
.main-header .header-icon *,
.main-header .main-icon,
.main-header .main-icon *,
.main-header .navbar-wrapper .fa,
.main-header .navbar-wrapper .fas,
.main-header .navbar-wrapper .far,
.main-header .navbar-wrapper a .header-icon,
.main-header .navbar-wrapper a .main-icon,
.main-header .navbar-wrapper a .animated-icon {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.main-header .header-icon svg,
.main-header .header-icon svg *,
.main-header .main-icon svg,
.main-header .main-icon svg *,
.main-header .navbar-wrapper .header-icon svg,
.main-header .navbar-wrapper .main-icon svg {
  fill: currentColor !important;
  color: inherit !important;
}

body.night-mode .main-header .header-icon,
body.night-mode .main-header .header-icon *,
body.night-mode .main-header .main-icon,
body.night-mode .main-header .main-icon *,
body.night-mode .main-header .navbar-wrapper .fa,
body.night-mode .main-header .navbar-wrapper .fas,
body.night-mode .main-header .navbar-wrapper .far {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

/* Override inline colours in header */
.main-header [style*="color"],
.main-header .navbar-wrapper [style*="color"] {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

/* Single icon size for navbar bar icons (plus, notifications, messages, cart, etc.) */
.main-header .navbar-wrapper > ul > li > a > .header-icon,
.main-header .navbar-wrapper > ul > li > a > .main-icon,
.main-header .navbar-wrapper > ul > li > a > .animated-icon,
.main-header .navbar-wrapper > ul > li > a > svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-header .navbar-wrapper > ul > li > a > .header-icon svg,
.main-header .navbar-wrapper > ul > li > a > .main-icon svg,
.main-header .navbar-wrapper > ul > li > a > .animated-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain;
}

/* Menu icon (hamburger) - same size */
.main-header .menu-icon .header-icon,
.main-header .menu-icon .header-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

/* Dropdown items in header (Create post, Sign in, etc.): same 22px icon size */
.main-header .navbar-wrapper .dropdown-menu .main-icon,
.main-header .navbar-wrapper .dropdown-menu .header-icon,
.main-header .navbar-wrapper .dropdown-menu .animated-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  margin-right: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.main-header .navbar-wrapper .dropdown-menu .main-icon svg,
.main-header .navbar-wrapper .dropdown-menu .header-icon svg,
.main-header .navbar-wrapper .dropdown-menu .animated-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

/* Live notifications / messages / requests - icon size */
.main-header .js_live-notifications > a > .animated-icon,
.main-header .js_live-messages > a > .animated-icon,
.main-header .js_live-requests > a .animated-icon,
.main-header .js_live-requests > a .fa {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

.main-header .js_live-notifications > a > .animated-icon svg,
.main-header .js_live-messages > a > .animated-icon svg {
  width: 22px !important;
  height: 22px !important;
}


/* Buttons: icon alignment and size */
.btn .fa,
.btn .fas,
.btn .far,
.btn .fab,
.btn i[class^="fa"] {
  margin-right: 8px;
  font-size: 1em;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn .fa:last-child,
.btn .fas:last-child,
.btn .far:last-child,
.btn i[class^="fa"]:last-child {
  margin-right: 0;
  margin-left: 8px;
}

.btn:hover:not(:disabled):not(.disabled) .fa,
.btn:hover:not(:disabled):not(.disabled) .fas,
.btn:hover:not(:disabled):not(.disabled) .far,
.btn:hover:not(:disabled):not(.disabled) i[class^="fa"] {
  opacity: 1;
  transform: scale(1.08);
}

.btn-icon .fa,
.btn-icon .fas,
.btn-icon .far,
.btn-icon i[class^="fa"] {
  margin-right: 0;
  margin-left: 0;
  font-size: 1.15em;
}

/* Card headers / blocks: icon treatment */
.card-header .fa,
.card-header .fas,
.card-header .far,
.card-title .fa,
.card-title .fas {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-header:hover .fa,
.card-header:hover .fas,
.card-header:hover .far,
.card-title:hover .fa,
.card-title:hover .fas {
  opacity: 1;
  transform: scale(1.05);
}

/* List / nav icons outside sidebar - subtle pill when in .with-nav */
.card-body.with-nav .main-icon,
.card-body.with-nav .fa,
.card-body.with-nav .fas {
  transition: transform 0.2s ease, color 0.2s ease;
}

.card-body.with-nav a:hover .main-icon,
.card-body.with-nav a:hover .fa,
.card-body.with-nav a:hover .fas {
  transform: scale(1.06);
  color: var(--link-color);
}

@media (prefers-reduced-motion: reduce) {
  .icon-wrap,
  .icon-wrap:hover,
  .btn .fa,
  .btn .fas,
  .btn:hover .fa,
  .btn:hover .fas,
  .card-header .fa,
  .card-header:hover .fa {
    transition: none;
  }
  .icon-wrap:hover,
  .btn:hover .fa,
  .btn:hover .fas,
  .card-header:hover .fa {
    transform: none;
  }
}


/* ============================================
   ANIMATED ICONS - ADVANCED UI/UX
   ============================================ */

:root {
  --icon-anim-duration: 2.2s;
  --icon-anim-duration-fast: 1.4s;
  --icon-anim-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --icon-anim-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sidebar: refined animations inside icon pill (subtle, no overflow) */
.sg-offcanvas-sidebar .main-side-nav a > .animated-icon {
  transform-origin: center center;
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.pulse {
  animation: sidebarIconPulse var(--icon-anim-duration) var(--icon-anim-ease) infinite;
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .animated-icon.pulse {
  animation: sidebarIconPulseHover 1s var(--icon-anim-ease) infinite;
}

@keyframes sidebarIconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

@keyframes sidebarIconPulseHover {
  0%, 100% { transform: scale(1.06); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.95; }
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.bounce {
  animation: sidebarIconBounce var(--icon-anim-duration-fast) var(--icon-anim-ease-bounce) infinite;
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .animated-icon.bounce {
  animation: sidebarIconBounceHover 0.8s var(--icon-anim-ease-bounce) infinite;
}

@keyframes sidebarIconBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

@keyframes sidebarIconBounceHover {
  0%, 50%, 100% { transform: translateY(0) scale(1.02); }
  25% { transform: translateY(-4px) scale(1.05); }
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.typing {
  animation: sidebarIconTyping 1.6s var(--icon-anim-ease) infinite;
}

@keyframes sidebarIconTyping {
  0%, 25%, 100% { transform: translateY(0); }
  12% { transform: translateY(-2px); }
  37% { transform: translateY(-1px); }
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.heartbeat {
  animation: sidebarIconHeartbeat 1.8s var(--icon-anim-ease) infinite;
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .animated-icon.heartbeat {
  animation: sidebarIconHeartbeatHover 1.2s var(--icon-anim-ease) infinite;
}

@keyframes sidebarIconHeartbeat {
  0%, 100% { transform: scale(1); }
  14%, 28% { transform: scale(1.08); }
  21%, 35% { transform: scale(1); }
}

@keyframes sidebarIconHeartbeatHover {
  0%, 100% { transform: scale(1.02); }
  20%, 40% { transform: scale(1.12); }
  30%, 50% { transform: scale(1.02); }
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.wave {
  animation: sidebarIconWave 1.4s var(--icon-anim-ease) infinite;
}

@keyframes sidebarIconWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(6deg); }
  75% { transform: rotate(-6deg); }
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.rotate {
  transition: transform 0.4s var(--icon-anim-ease-bounce);
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .animated-icon.rotate {
  transform: rotate(12deg);
}

/* Sparkle: subtle scale + opacity (works inside pill; pseudo dots stay small) */
.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle {
  animation: sidebarIconSparkle 2.5s var(--icon-anim-ease) infinite;
}

.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle::before,
.sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle::after {
  width: 3px;
  height: 3px;
  background: rgba(94, 114, 228, 0.9);
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle::before,
body.night-mode .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle::after {
  background: rgba(255, 255, 255, 0.85);
}

@keyframes sidebarIconSparkle {
  0%, 90%, 100% { transform: scale(1); opacity: 1; }
  45%, 55% { transform: scale(1.06); opacity: 0.95; }
}

/* Glow on hover - data attribute on icon (sidebar link hover = pill + icon glow) */
.sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon[data-hover-animation="glow"],
.sg-offcanvas-sidebar .main-side-nav a:hover > [data-hover-animation="glow"] {
  filter: drop-shadow(0 0 6px rgba(94, 114, 228, 0.5));
}

.sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon[data-hover-animation="glow"] svg,
.sg-offcanvas-sidebar .main-side-nav a:hover > [data-hover-animation="glow"] svg {
  filter: drop-shadow(0 0 4px rgba(94, 114, 228, 0.4));
}

body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon[data-hover-animation="glow"],
body.night-mode .sg-offcanvas-sidebar .main-side-nav a:hover > [data-hover-animation="glow"] {
  filter: drop-shadow(0 0 8px rgba(94, 114, 228, 0.6));
}

/* Active item: pause idle animation, keep icon clear */
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.pulse,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.bounce,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.typing,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.heartbeat,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.wave,
.sg-offcanvas-sidebar .main-side-nav > li.active > a > .animated-icon.sparkle {
  animation: none;
  transform: scale(1);
}

/* Global: advanced hover for any .animated-icon with glow */
[data-hover-animation="glow"]:hover .animated-icon,
.animated-icon[data-hover-animation="glow"]:hover {
  transition: filter 0.3s var(--icon-anim-ease), transform 0.3s var(--icon-anim-ease);
}

[data-hover-animation="glow"]:hover .animated-icon,
.animated-icon[data-hover-animation="glow"]:hover {
  filter: drop-shadow(0 0 8px currentColor);
}

/* Icon entrance - subtle fade/scale when in view (optional, use .icon-enter) */
.icon-enter {
  animation: iconEnter 0.5s var(--icon-anim-ease-bounce) backwards;
}

.icon-enter.delay-1 { animation-delay: 0.05s; }
.icon-enter.delay-2 { animation-delay: 0.1s; }
.icon-enter.delay-3 { animation-delay: 0.15s; }
.icon-enter.delay-4 { animation-delay: 0.2s; }
.icon-enter.delay-5 { animation-delay: 0.25s; }

@keyframes iconEnter {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Button icons: subtle motion on hover */
.btn .animated-icon {
  transition: transform 0.25s var(--icon-anim-ease-bounce), filter 0.25s ease;
}

.btn:hover:not(:disabled):not(.disabled) .animated-icon {
  transform: scale(1.08);
}

.btn .animated-icon.pulse,
.btn .animated-icon.bounce {
  animation-duration: 2s;
}

/* Reduced motion: disable all icon animations */
@media (prefers-reduced-motion: reduce) {
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.pulse,
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.bounce,
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.typing,
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.heartbeat,
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.wave,
  .sg-offcanvas-sidebar .main-side-nav a > .animated-icon.sparkle {
    animation: none !important;
  }
  .sg-offcanvas-sidebar .main-side-nav a:hover > .animated-icon.rotate {
    transform: none;
  }
  [data-hover-animation="glow"]:hover .animated-icon,
  .animated-icon[data-hover-animation="glow"]:hover,
  .sg-offcanvas-sidebar .main-side-nav a:hover > .main-icon[data-hover-animation="glow"],
  .sg-offcanvas-sidebar .main-side-nav a:hover > [data-hover-animation="glow"] {
    filter: none;
  }
  .icon-enter {
    animation: none;
  }
  .btn:hover .animated-icon {
    transform: none;
  }
}


/* ============================================
   GLOBAL BUTTONS - PREMIUM UI
   ============================================ */

/* Base - shape, inner highlight, transition */
.btn {
  border-radius: 12px;
  cursor: pointer;
  border-width: 1px;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.28s ease,
              background-color 0.22s ease,
              border-color 0.22s ease,
              color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
  opacity: 0.8;
}

.btn:focus {
  outline: 0;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.45) !important;
  outline: none;
}

.btn:disabled,
.btn.disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.btn:hover:not(:disabled):not(.disabled) {
  transform: translateY(-3px);
}

.btn:active:not(:disabled):not(.disabled) {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* Primary - gradient + glow */
.btn-primary {
  background: linear-gradient(135deg, #5e72e4 0%, #6b7cf0 50%, #5e72e4 100%) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 6px 20px rgba(94, 114, 228, 0.4),
              0 2px 6px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.btn-primary:hover:not(:disabled):not(.disabled) {
  background: linear-gradient(135deg, #6b7cf0 0%, #7b8af5 50%, #6b7cf0 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 28px rgba(94, 114, 228, 0.5),
              0 4px 10px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-primary:active:not(:disabled):not(.disabled) {
  box-shadow: 0 4px 12px rgba(94, 114, 228, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.55) !important;
}

/* Secondary - soft elevation */
.btn-secondary {
  background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.btn-secondary:hover:not(:disabled):not(.disabled) {
  background: linear-gradient(180deg, #f5f6f8 0%, #eef0f2 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

body.night-mode .btn-secondary {
  background: linear-gradient(180deg, #2f3640 0%, #262d34 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .btn-secondary:hover:not(:disabled):not(.disabled) {
  background: linear-gradient(180deg, #363d48 0%, #2f3640 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(247, 250, 252, 0.5) !important;
}

body.night-mode .btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(38, 45, 52, 0.9) !important;
}

/* Success */
.btn-success {
  box-shadow: 0 4px 14px rgba(45, 206, 137, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-success:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 8px 24px rgba(45, 206, 137, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-success:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 206, 137, 0.5) !important;
}

/* Info */
.btn-info {
  box-shadow: 0 4px 14px rgba(17, 205, 239, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-info:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 8px 24px rgba(17, 205, 239, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-info:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 205, 239, 0.5) !important;
}

/* Warning */
.btn-warning {
  box-shadow: 0 4px 14px rgba(251, 99, 64, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-warning:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 8px 24px rgba(251, 99, 64, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-warning:focus-visible {
  box-shadow: 0 0 0 3px rgba(251, 99, 64, 0.5) !important;
}

/* Danger */
.btn-danger {
  box-shadow: 0 4px 14px rgba(245, 54, 92, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-danger:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 8px 24px rgba(245, 54, 92, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-danger:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 54, 92, 0.5) !important;
}

/* Sizes */
.btn-sm {
  border-radius: 10px;
}

.btn-sm::before {
  border-radius: 10px 10px 0 0;
}

.btn-lg {
  border-radius: 14px;
  padding: 14px 32px;
}

.btn-lg::before {
  border-radius: 14px 14px 0 0;
}

/* Icon buttons */
.btn-icon {
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon::before {
  border-radius: 12px 12px 0 0;
}

.btn-icon:hover:not(:disabled):not(.disabled) {
  transform: translateY(-3px) scale(1.03);
}

.btn-icon:active:not(:disabled):not(.disabled) {
  transform: translateY(-1px) scale(1);
}

/* Outline - border glow on hover */
.btn-outline-primary {
  background: transparent !important;
  border-width: 2px;
}

.btn-outline-primary:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 4px 16px rgba(94, 114, 228, 0.3) !important;
}

.btn-outline-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.45) !important;
}

.btn-outline-secondary {
  background: transparent !important;
  border-width: 1px;
}

.btn-outline-secondary:hover:not(:disabled):not(.disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

/* Link button - underline animation */
.btn-link {
  border: none;
  box-shadow: none !important;
  text-decoration: none;
}

.btn-link:hover:not(:disabled):not(.disabled) {
  text-decoration: underline;
  transform: none;
}

/* Loading state (add .btn-loading for spinner later if needed) */
.btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before {
    transition: none;
  }
  .btn:hover:not(:disabled):not(.disabled),
  .btn-icon:hover:not(:disabled):not(.disabled) {
    transform: none;
  }
  .btn:active:not(:disabled):not(.disabled),
  .btn-icon:active:not(:disabled):not(.disabled) {
    transform: none;
  }
}

/* ============================================
   MERIT SECTION - DASHBOARD ADVANCED UI
   ============================================ */

.sg-offcanvas-sidebar .merit-dashboard-panel,
.sg-offcanvas-sidebar .merit-categories-widget,
.sg-offcanvas-sidebar .merit-balance-widget,
.sg-offcanvas-sidebar .merit-top-users-widget {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px rgba(94, 114, 228, 0.1),
              0 4px 16px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sg-offcanvas-sidebar .merit-dashboard-panel:hover,
.sg-offcanvas-sidebar .merit-categories-widget:hover,
.sg-offcanvas-sidebar .merit-balance-widget:hover,
.sg-offcanvas-sidebar .merit-top-users-widget:hover {
  box-shadow: 0 16px 48px rgba(94, 114, 228, 0.14),
              0 6px 20px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.sg-offcanvas-sidebar .merit-dashboard-panel::before,
.sg-offcanvas-sidebar .merit-balance-widget::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(94, 114, 228, 0.4) 30%,
    rgba(124, 58, 237, 0.35) 70%,
    transparent 100%);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  z-index: 0;
}

body.night-mode .sg-offcanvas-sidebar .merit-dashboard-panel,
body.night-mode .sg-offcanvas-sidebar .merit-categories-widget,
body.night-mode .sg-offcanvas-sidebar .merit-balance-widget,
body.night-mode .sg-offcanvas-sidebar .merit-top-users-widget {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.night-mode .sg-offcanvas-sidebar .merit-dashboard-panel:hover,
body.night-mode .sg-offcanvas-sidebar .merit-categories-widget:hover,
body.night-mode .sg-offcanvas-sidebar .merit-balance-widget:hover,
body.night-mode .sg-offcanvas-sidebar .merit-top-users-widget:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 114, 228, 0.08);
}
