/* ==========================================================
   SIDEBAR
========================================================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(180deg,
      #0058FF,
      #003CB3);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1), box-shadow 0.28s ease;
  z-index: 1055;
  overflow-y: auto;
  box-shadow: none;
}

.sidebar.show {
  transform: translateX(0);
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.2);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 20px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-logo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 34px;
  position: relative;
}

.sidebar-logo img {
  position: absolute;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

.sidebar-logo i {
  position: absolute;
}

.sidebar-brand-name {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.sidebar-brand-unit {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-align: center;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 16px 18px;
}

.sidebar-menu li {
  margin-bottom: 5px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .2s ease, transform .2s ease;
}

.sidebar.show .sidebar-menu li {
  opacity: 1;
  transform: translateX(0);
}

.sidebar.show .sidebar-menu li:nth-child(1) {
  transition-delay: .05s;
}

.sidebar.show .sidebar-menu li:nth-child(2) {
  transition-delay: .09s;
}

.sidebar.show .sidebar-menu li:nth-child(3) {
  transition-delay: .13s;
}

.sidebar.show .sidebar-menu li:nth-child(4) {
  transition-delay: .17s;
}

.sidebar.show .sidebar-menu li:nth-child(5) {
  transition-delay: .21s;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff !important;
  text-decoration: none;
  border-radius: 15px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  font-weight: 600;
}

.sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  transform: translateX(3px);
}

.sidebar-menu li a.active {
  background: #ffffff;
  color: #004aad !important;
  box-shadow: 0 5px 15px rgba(2, 35, 90, .18);
  font-weight: 700;
}

.sidebar-menu i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

/* ==========================================================
   SIDEBAR BACKDROP
========================================================== */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================
   CONTENT — tidak bergeser saat sidebar terbuka
========================================================== */

.main-content {
  margin-left: 0;
  margin-top: 0;
  padding: 25px 30px;
  min-height: calc(100vh - 70px);
}

.navbar {
  margin-left: 0;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}