﻿@layer utilities {
  .active-tab { color: #fff; }
}
.admin-sidebar {
  position: sticky;
  top: 0;
  width: 272px;
  height: 100vh;
  min-height: 560px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(116, 74, 194, 0.26), transparent 42%),
    linear-gradient(165deg, #17132d 0%, #111629 52%, #101a2d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 12px 0 36px rgba(27, 24, 55, 0.08);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 27px 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255, 205, 112, 0.42);
  border-radius: 13px;
  background: linear-gradient(145deg, #ffdb82, #e99b38);
  box-shadow: 0 5px 16px rgba(235, 164, 64, 0.24);
  color: #432b51;
  font-size: 23px;
}
.sidebar-brand h2 {
  color: #fff3d4;
  font-size: 15px;
  letter-spacing: 0.09em;
}
.brand-caption {
  margin-top: 4px;
  color: #a7a5bc;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sidebar-nav { padding: 21px 13px; }
.nav-section-label {
  padding: 0 12px;
  margin: 0 0 10px;
  color: #85839f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-section-label--secondary { margin-top: 28px; }
.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  margin: 3px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #c1c0d0;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 550;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.nav-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav-item:focus-visible,
.logout-button:focus-visible {
  outline: 2px solid #ffd479;
  outline-offset: 2px;
}
.nav-item.active-tab {
  border-color: rgba(255, 211, 125, 0.2);
  background: linear-gradient(105deg, rgba(237, 176, 79, 0.2), rgba(135, 101, 193, 0.2));
  box-shadow: inset 3px 0 #f6c66e, 0 5px 16px rgba(4, 7, 18, 0.12);
  color: #fff7e7;
}
.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.nav-icon--overview { background: rgba(250, 190, 83, 0.16); color: #ffd273; }
.nav-icon--orders { background: rgba(85, 191, 224, 0.15); color: #78d9f3; }
.nav-icon--returns { background: rgba(248, 128, 161, 0.15); color: #ff9fba; }
.nav-icon--reviews { background: rgba(190, 145, 255, 0.16); color: #c9a5ff; }
.nav-icon--products { background: rgba(98, 212, 177, 0.15); color: #76e3bd; }
.nav-icon--users { background: rgba(118, 159, 255, 0.16); color: #99b4ff; }
.nav-icon--updates { background: rgba(255, 170, 105, 0.15); color: #ffc08c; }
.nav-item.active-tab .nav-icon {
  border-color: rgba(255, 214, 137, 0.35);
  background: linear-gradient(145deg, #ffe09a, #eab15a);
  color: #483249;
}
.nav-label { flex: 1; line-height: 1.35; }
.nav-detail { color: #9291aa; font-weight: 450; }
.nav-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f6d794;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.nav-badge:not(.hidden) {
  border-color: rgba(255, 170, 150, 0.23);
  background: rgba(216, 92, 111, 0.2);
  color: #ffb1b8;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 13px 18px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.account-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 218, 147, 0.25);
  border-radius: 11px;
  background: linear-gradient(145deg, #6e598f, #3e426f);
  color: #ffe4ab;
  font-size: 13px;
  font-weight: 800;
}
.account-details { min-width: 0; flex: 1; }
.account-name {
  overflow: hidden;
  color: #f4f1fb;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-email {
  overflow: hidden;
  margin-top: 3px;
  color: #9c9bb2;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #c0bdd0;
  cursor: pointer;
  font-size: 16px;
  transition: color 160ms ease, background 160ms ease;
}
.logout-button:hover { background: rgba(248, 113, 113, 0.14); color: #ff9d9d; }
@media (max-width: 720px) {
  .admin-sidebar { width: 76px; min-height: 100vh; overflow-x: hidden; }
  .sidebar-brand { justify-content: center; padding: 18px 8px; }
  .sidebar-brand > div:last-child,
  .nav-section-label,
  .nav-label,
  .account-details { display: none; }
  .sidebar-nav { padding: 16px 9px; }
  .nav-item { justify-content: center; padding: 7px; }
  .nav-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .nav-badge { position: absolute; top: 1px; right: 0; padding: 3px 5px; font-size: 8px; }
  .sidebar-footer { justify-content: center; padding: 12px 6px; flex-wrap: wrap; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
