/* ===== Efek hover menu Hisab ===== */

/* Transisi halus */
.uw-card, .uw-item, .uw-sum, .uw-ico, .uw-pill, .uw-btn, .uw-thumb img, .uw-img, .uw-submit {
  transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

/* Kartu terangkat */
.uw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(74, 42, 10, .22) !important;
}

/* Item menu: highlight + geser ke kanan */
.uw-item { position: relative; }
.uw-item:hover,
.uw-item:focus-visible {
  background: linear-gradient(90deg, #f0e0cc, #faf3ea) !important;
  border-left-color: #a8672a !important;
  padding-left: 24px !important;
  color: #4a2a0a !important;
  font-weight: 600 !important;
  outline: none;
}
.uw-item:hover .uw-ico,
.uw-item:focus-visible .uw-ico {
  transform: scale(1.3) rotate(-8deg);
  color: #a8672a;
}
.uw-item::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  font-size: 20px;
  color: #724111;
  transition: all .28s ease;
}
.uw-item:hover::after,
.uw-item:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Judul sub-menu */
.uw-sum:hover {
  background: linear-gradient(90deg, #4a2a0a, #724111) !important;
  color: #fff !important;
  padding-left: 22px !important;
}
.uw-sum:hover .uw-ico { transform: scale(1.25) rotate(12deg); }

/* Tombol pill */
.uw-pill:hover {
  background: linear-gradient(135deg, #724111, #a8672a) !important;
  color: #fff !important;
  border-color: #724111 !important;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 14px rgba(74, 42, 10, .28);
}

/* Tombol Unduh Template & Login */
.uw-btn:hover,
.uw-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(74, 42, 10, .35);
  filter: brightness(1.12);
}
.uw-btn:active,
.uw-submit:active,
.uw-pill:active { transform: translateY(0) scale(.97); }

/* Gambar */
.uw-thumb { overflow: hidden; }
.uw-thumb:hover img { transform: scale(1.07); filter: brightness(1.05); }
.uw-img:hover { transform: scale(1.04); }

/* Input saat fokus */
.uw-input:focus {
  outline: none;
  border-color: #724111 !important;
  box-shadow: 0 0 0 3px rgba(114, 65, 17, .2);
}

/* Hormati pengaturan "kurangi animasi" */
@media (prefers-reduced-motion: reduce) {
  .uw-card, .uw-item, .uw-sum, .uw-ico, .uw-pill, .uw-btn,
  .uw-thumb img, .uw-img, .uw-submit, .uw-item::after {
    transition: none !important;
    transform: none !important;
  }
}
