@use "../../../../styles/abstracts/variables" as *;

.admin__sidebar {
  height: 100vh;
  width: 280px;
  background: #09090b;
  border-right: 1px solid $col-border-lining;
  display: flex;
  flex-direction: column;
  position: fixed;
  color: $col-white;
}

/* ================= LOGO ================= */
.admin__sidebar__logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
}

.logoWrapper {
  width: 180px;
  height: 60px;

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

  overflow: hidden;

  img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
  }
}

/* ================= LINKS ================= */
.admin__sidebar__links {
  padding: 1.5rem 2rem 1rem 2rem;
    flex: 1;
    padding-left: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    /* Custom scrollbar */
    &::-webkit-scrollbar {
      width: 6px;
    }
    &::-webkit-scrollbar-track {
      background: #121212;
    }
    &::-webkit-scrollbar-thumb {
      background: #555;
      border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb:hover {
      background: #FF7000;
    }

    @media only screen and (max-width: 1000px) {
      padding: 1rem;
    }
}

/* ================= SECTION ================= */
.section {
  margin: 1.2rem 0 0.5rem;
  padding-left: 0.5rem;

  span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717b;
  }
}

/* ================= LINK ================= */
.link,
.active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.25s ease;
  position: relative;
  margin-bottom: .7rem;
}

.link {
  color: $col-white;
  opacity: 0.85;
}

.link:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ================= ACTIVE ================= */
.active {
  background: linear-gradient(135deg, #251a0e, #23140a);
  opacity: 1;
}

.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 50%;
  background: #ff7000;
  transform: translateY(-50%);
  border-radius: 4px;
}

.active-arrow {
  margin-left: auto;
  color: #ffb800;
}

/* ================= ICON ================= */
.icon,
.icon-active {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  background: #1a1a1b;
  color: #71717b;
}

.icon-active {
  background: #512d05;
  color: #ffb800;
}

/* ================= TEXT ================= */
.link-text {
  display: flex;
  flex-direction: column;
}

.link-label {
  font-size: 0.78rem;
  font-weight: 500;
}

.link-desc {
  font-size: 0.795rem;
  opacity: 0.6;
}

/* ================= LOGOUT ================= */
.logout {
  margin-top: 1.2rem;
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  color: #ff6b6b;
  font-weight: 600;
  cursor: pointer;
}

/* ================= FOOTER ================= */
.admin__sidebar__footer {
  border-top: 1px solid $col-border-lining;
  padding: 0.8rem 1rem;
  text-align: center;
}

.admin__badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffb800;
  letter-spacing: 0.08em;
}

.admin__role {
  display: block;
  font-size: 0.65rem;
  opacity: 0.6;
}
