/* ================================
 * Back to Top – Softer Color Theme
 * ================================ */

#back-to-top {
  /* Hidden by default */
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
  
  position: fixed !important;
  bottom: 1.75rem !important;
  right: 1.75rem !important;
  z-index: 99999 !important;

  /* Pill shape */
  padding: 0.6rem 1rem !important;
  border-radius: 999px !important;

  /* Softer, neutral look */
  background: rgba(15, 23, 42, 0.92) !important;            /* deep navy/slate, lembut sikit */
  color: #f9fafb !important;                                /* almost white */
  border: 1px solid rgba(148, 163, 184, 0.8) !important;    /* soft grey border */
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(10px);

  /* Text */
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-align: center !important;

  /* Layout inside button */
  display: flex !important;
  align-items: center;
  gap: 0.4rem;

  cursor: pointer !important;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease !important;
}

/* Visible after scroll */
#back-to-top.is-visible {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto;
}

/* Icon circle – lembut sikit */
.back-to-top__icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);   /* light grey */
  background: rgba(15, 23, 42, 0.9);            /* sama tone tapi slightly pekat */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.back-to-top__label {
  white-space: nowrap;
}

/* Hover / active – subtle je */
#back-to-top:hover {
  background: rgba(15, 23, 42, 1) !important;
  border-color: rgba(209, 213, 219, 1) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45) !important;
  transform: translateY(-2px);
}

#back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3) !important;
}
