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

.main-sidebar,
.main-sidebar .sidebar {
  background: #79b8b9 !important;
}

/* ============================= */
/* NAV LINK STYLE */
/* ============================= */

.nav-sidebar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* Sliding background pill */
.nav-sidebar .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #429394;
  border-radius: 14px;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* Hover animation */
.nav-sidebar .nav-link:hover::before {
  transform: translateX(0);
}

/* Keep content above pill */
.nav-sidebar .nav-link i,
.nav-sidebar .nav-link p {
  position: relative;
  z-index: 1;
}

/* ============================= */
/* ICON STYLE (BIGGER) */
/* ============================= */

.nav-sidebar .nav-icon {
  width: 35px;
  height: 35px;
  min-width: 35px;

  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;

  display: inline-block;
  transition: transform 0.3s ease;
}

/* Icon hover motion */
.nav-sidebar .nav-link:hover .nav-icon {
  transform: scale(1.08);
}

/* ============================= */
/* TEXT STYLE (BIGGER) */
/* ============================= */

.nav-sidebar .nav-link p {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.nav-sidebar .nav-link:hover p {
  transform: translateX(4px);
}

/* ============================= */
/* COLORS */
/* ============================= */

.main-sidebar * {
  color: #000 !important;
}

.nav-header {
  opacity: 0.7;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-top: 15px;
}

/* ============================= */
/* USER PANEL */
/* ============================= */

.user-panel {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;

  padding: 26px 16px 14px 16px !important;
  margin: 0 !important;
}

.sidebar-profile-pic {
  width: 75px;
  height: 75px;
  min-width: 75px;

  border-radius: 50%;
  overflow: hidden;

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

  flex-shrink: 0;

  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 2px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.sidebar-profile-pic i {
  font-size: 64px;
  color: #000;
}

.sidebar-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-profile-pic i {
  font-size: 52px;
  color: #000;
}

/* Name + Role container */
.user-panel .info {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 6px;
  margin: 0 !important;
}

/* Username */
.user-panel .info a {
  font-weight: 700;
  font-size: 20px !important;
  line-height: 1.2;
  margin: 0;
}

/* Role badge */
.user-panel .badge {
  align-self: flex-start;

  padding: 4px 14px;
  font-size: 12px !important;
  font-weight: 700;

  border-radius: 20px;
  background: rgba(0, 0, 0, 0.15);
}



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

.nav-icon.dashboard-icon {
  background-image: url("../img/dashboard_icon.png");
}

.nav-icon.inventory-icon {
  background-image: url("../img/inventory_icon.png");
}

.nav-icon.stockinandout-icon {
  background-image: url("../img/stockinandout_icon.png");
}

.nav-icon.lowstock-icon {
  background-image: url("../img/lowstock_icon.png");
}

.nav-icon.pos-icon {
  background-image: url("../img/pos_icon.png");
}

.nav-icon.reports-icon {
  background-image: url("../img/reports_icon.png");
}

.nav-icon.auditlogs-icon {
  background-image: url("../img/auditlogs_icon.png");
}

.nav-icon.users-icon {
  background-image: url("../img/users_icon.png");
}

.nav-icon.logout-icon {
  background-image: url("../img/logout_icon.png");
}

.nav-icon.profile-icon {
  background-image: url("../img/profile_icon.png");
}

/* Slightly bigger sidebar items */
.nav-sidebar .nav-link {
  gap: 14px !important;
  padding: 9px 18px !important;
}

.nav-sidebar .nav-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}

.nav-sidebar .nav-link p {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.nav-header {
  font-size: 13px !important;
  letter-spacing: 1px !important;
}

.user-panel .info a {
  font-size: 17px !important;
}

.user-panel .badge {
  font-size: 13px !important;
}

/* Sidebar full height */
.main-sidebar .sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Sidebar menu full height */
.nav-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Push bottom section down */
.bottom-account-section {
  margin-top: auto;
  padding-bottom: 12px;
}

/* Line above Profile Settings */
.bottom-account-section .nav-separator {
  border-top: 1.5px solid #000000;

   margin-top: 10px;
  margin-left: 14px;
  margin-right: 14px;

  padding-top: 18px; /* adds gap below line */

  list-style: none;
}

/* Profile picture beside name and role */
.user-panel {
  align-items: center !important;
  gap: 12px !important;
}

.sidebar-profile-pic {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-profile-pic i {
  font-size: 42px;
  color: #000;
}

/* ============================= */
/* ALL SIDEBAR SEPARATOR LINES */
/* ============================= */

/* Line below user panel */
.user-panel + nav {
  border-top: 1.5px solid rgba(0, 0, 0, 0.55);

  margin-top: 6px;
  margin-left: 14px;
  margin-right: 14px;

  padding-top: 10px;
}

/* Line above Profile Settings */
.bottom-account-section .nav-separator {
  border-top: 1.5px solid rgba(0, 0, 0, 0.55);

  margin-top: 10px;
  margin-left: 14px;
  margin-right: 14px;

  padding-top: 18px;

  list-style: none;
}

/* Line between Profile Settings and Logout */
.bottom-account-section .nav-item + .nav-item {
  border-top: 1.5px solid rgba(0, 0, 0, 0.55);

  margin-top: 10px;
  margin-left: 14px;
  margin-right: 14px;

  padding-top: 10px;
}