/* =========================================
   PREMIUM MEMBER SIDEBAR (MODERN)
========================================= */

/* BRAND */
$primary: #5e3817;
$primary-2: #7a4b20;

$primary-soft: rgba(122, 75, 32, 0.08);
$primary-soft-strong: rgba(122, 75, 32, 0.16);
$primary-border: rgba(122, 75, 32, 0.2);

$text-dark: #1a1a1a;
$text-light: #6b6b6b;

$bg: #ffffff;
$bg-soft: #faf8f6;
$border: rgba(0, 0, 0, 0.06);
$text-muted: #6b6b6b;

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fbf9f7 100%
  );

  border-right: 1px solid $border;

  display: flex;
  flex-direction: column;
  z-index: 1000;

  transition: all 0.3s ease;

  @media (max-width: 1000px) {
    transform: translateX(-100%);
  }
}

/* =========================================
   HEADER
========================================= */

.sidebarHeader {
  padding: 1.6rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;

  h3 {
    font-size: 1rem;
    font-weight: 600;
    color: $text-dark;
    letter-spacing: -0.2px;
  }

  small {
    font-size: 0.75rem;
    color: $text-light;
  }
}

/* =========================================
   LINKS CONTAINER
========================================= */

.sidebarLinks {
  flex: 1;
  padding: 1rem 0.9rem;
  overflow-y: auto;

  display: flex;
  flex-direction: column;

  // /* SCROLLBAR */
  // &::-webkit-scrollbar {
  //   width: 5px;
  // }

  // &::-webkit-scrollbar-thumb {
  //   background: rgba(0, 0, 0, 0.08);
  //   border-radius: 20px;
  // }

  /* =========================================
   PREMIUM SCROLLBAR (THEMED)
========================================= */

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      rgba(122, 75, 32, 0.25),
      rgba(122, 75, 32, 0.45)
    );
    border-radius: 20px;
    transition: all 0.3s ease;
  }

  &::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      180deg,
      $primary,
      $primary-2
    );
  }

/* Firefox */
scrollbar-width: thin;
scrollbar-color: rgba(122, 75, 32, 0.45) transparent;
}

/* =========================================
   SECTION
========================================= */

.section {
  margin-bottom: 1.4rem;
}

.sectionTitle {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  margin: 0.7rem 0 0.6rem 0.6rem;
}

/* =========================================
   LINK
========================================= */

.link {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0.65rem 0.75rem;
  border-radius: 12px;

  margin-bottom: 0.45rem;

  text-decoration: none;
  color: $text-dark;

  transition: all 0.25s ease;

  position: relative;

  &:hover {
    background: $primary-soft;
    transform: translateX(4px);
  }
}

/* =========================================
   ICON
========================================= */

.icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;

  background: #f3f1ef;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(0, 0, 0, 0.45);

  transition: all 0.25s ease;
}

.link:hover .icon {
  background: $primary-soft;
  color: $primary;
}

.iconActive {
  @extend .icon;

  background: linear-gradient(
    135deg,
    $primary,
    $primary-2
  );

  color: #ffffff;

  box-shadow: 0 6px 18px rgba(122, 75, 32, 0.35);
}

/* =========================================
   TEXT
========================================= */

.linkText {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.linkLabel {
  font-size: 0.92rem;
  font-weight: 500;
  color: $text-dark;
}

.linkDesc {
  font-size: 0.77rem;
  color: $text-muted;
  transition: all 0.25s ease;
  font-weight: 500 !important;
  opacity: .85;
}

/* =========================================
   ACTIVE STATE (🔥 CLEAN + PREMIUM)
========================================= */

.active {
  @extend .link;

  background: linear-gradient(
    135deg,
    rgba(122, 75, 32, 0.14),
    rgba(122, 75, 32, 0.06)
  );

  border: 1px solid $primary-border;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.active::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 20%;
  height: 60%;
  width: 4px;
  border-radius: 10px;

  background: linear-gradient(
    180deg,
    $primary,
    $primary-2
  );
}

.active .linkLabel {
  color: $primary;
}

.activeArrow {
  margin-left: auto;
  color: $primary;
}

/* =========================================
   FOOTER (🔥 FIXED + PREMIUM CARD)
========================================= */

.sidebarFooter {
  margin: 1rem;
  padding: 0.9rem;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #ffffff,
    #f7f4f1
  );

  border: 1px solid $border;

  display: flex;
  align-items: center;
  gap: 12px;

  transition: all 0.25s ease;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.04);

  cursor: pointer;

  &:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

/* AVATAR */

.avatar {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    $primary,
    $primary-2
  );

  color: #ffffff;

  font-weight: 600;
  font-size: 0.8rem;

  display: flex;
  align-items: center;
  justify-content: center;

  letter-spacing: 0.05em;

  box-shadow: 0 6px 16px rgba(122, 75, 32, 0.3);
}

/* FOOTER TEXT (🔥 FIXED ISSUE HERE) */

.footerText {
  display: flex;
  flex-direction: column;

  h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: $text-dark; /* ✅ FIXED (was white before) */
    margin: 0;
  }

  small {
    font-size: 0.72rem;
    color: $text-light; /* ✅ FIXED */
  }
}


