/* ==========================================================================
   Overlay Chat — custom styles (di luar utilitas Tailwind)
   ========================================================================== */

.btn-option {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(203 213 225);
  background: rgb(248 250 252);
  color: rgb(51 65 85);
  cursor: pointer;
  transition: all .15s ease;
}
.dark .btn-option {
  border-color: rgb(51 65 85);
  background: rgb(30 41 59);
  color: rgb(203 213 225);
}
.btn-option:hover { border-color: rgb(56 189 248); }
.btn-option.active,
.btn-option[aria-pressed="true"] {
  background: rgb(2 132 199);
  border-color: rgb(2 132 199);
  color: #fff;
}
.btn-option:disabled { opacity: .4; cursor: not-allowed; }

.checkerboard {
  background-image:
    linear-gradient(45deg, rgba(100,116,139,.35) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100,116,139,.35) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(100,116,139,.35) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(100,116,139,.35) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: rgba(100,116,139,.12);
}

/* Preview SVG menyesuaikan lebar panel tanpa mengubah ukuran export */
#svgContainer svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Chip kode warna Growtopia */
.color-chip {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(100,116,139,.5);
  font: 700 10px/1 ui-monospace, monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 0 2px #000, 0 0 2px #000;
  color: #fff;
}
.color-chip:hover { outline: 2px solid rgb(56 189 248); }

/* Tab pesan */
.msg-tab {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 .4rem;
}

/* Toast notifikasi */
#toast {
  transition: opacity .2s ease, transform .2s ease;
}
#toast.hidden-toast {
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
}
