/* Base */
.btn.button-primary,
.button-primary {
  background: #000; 
  color: #fff;
  padding: 11px;
  width: 320px;
  border: 1px solid #000;        /* kunci border biar gak berubah pas hover */
  border-radius: 5px;            /* opsional */
  cursor: pointer;
  display: inline-flex;          /* biar spinner & text center */
  align-items: center;
  justify-content: center;
  gap: .5rem;                    /* ruang buat spinner */
  line-height: 1.2;
  transition: background-color .2s ease, transform .06s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent; /* mobile */
}

/* Hover */
.btn.button-primary:hover,
.button-primary:hover {
  background: #222; 
  color: #fff;
  border-color: #222;            /* tetap 1px, cuma warnanya ikut */
}

/* Active (saat diklik/pressed) */
.btn.button-primary:active,
.button-primary:active {
  background: #111;              /* sedikit lebih gelap dari hover */
  color: #fff;
  border-color: #111;
  transform: translateY(1px);    /* feel “pressed”, tidak ganggu layout */
  box-shadow: none;
}

/* Focus keyboard (aksesibilitas) */
.btn.button-primary:focus-visible,
.button-primary:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.35);
}

/* Disabled / loading */
.btn.button-primary:disabled,
.button-primary:disabled,
.btn.button-primary[disabled],
.button-primary[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* (opsional) kecilkan spinner biar rapi di tombol */
.button-primary .spinner-border {
  width: 1rem; 
  height: 1rem;
}
