/* ========== Widget Container ========== */
.widget-menu {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 60px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 110px,
    var(--secondary-color) 100%
  );
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 2px 4px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: 0;            /* ← hilangkan padding vertikal */
  overflow: hidden;      /* ← clipping highlight */
  z-index: 100;
}

/* ========== Item Styles ========== */
.widget-menu .widget-item {
  width: 100%;           /* full-width */
  padding: 12px 0;       /* spasi atas-bawah */
  margin: 0;             /* hilangkan margin antar item */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: none;
  background: transparent;
  border-radius: 0;      /* reset semua sudut */
  transition: background 0.2s ease, color 0.2s ease;
}

/* Icon & Label */
.widget-menu .widget-item i {
  font-size: 1.4em;
  margin-bottom: 0.1em;
  transition: color 0.2s ease;
}
.widget-menu .widget-item span {
  font-size: 0.88em;
  transition: color 0.2s ease;
}

/* ========== Hover & Active ========== */
.widget-menu .widget-item:hover,
.widget-menu .widget-item.active {
  background: var(--hover-color) !important;
  color: #fff            !important;
  font-weight: 600;
  border-radius: 0;      /* reset semua sebelum override */
}
/* first-child: hanya sudut kanan atas */
.widget-menu .widget-item:first-child:hover,
.widget-menu .widget-item:first-child.active {
  border-top-right-radius: 16px;
}
/* last-child: hanya sudut kanan bawah */
.widget-menu .widget-item:last-child:hover,
.widget-menu .widget-item:last-child.active {
  border-bottom-right-radius: 16px;
}

/* ========== Responsive ≤480px ========== */
@media (max-width: 480px) {
  .widget-menu {
    width: 44px;
    transform: translateY(-100%);
  }
  .widget-menu .widget-item span {
    display: none;
  }
  .widget-menu .widget-item i {
    font-size: 1.05em;
  }
}
