body {
    font-family: Arial, sans-serif;
    width: 260px;
    padding: 10px;
    background: #111;
    color: #eee;
}
h1 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}
button {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    background: #7c3aed;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

button:hover {
    background: #a78bfa;
    opacity: 0.9;
}

button:active {
    background: #5b21b6;
    opacity: 0.7;
}


.result {
    padding: 10px;
    background: #1e1e1e;
    border-radius: 6px;
    color: #eee;
    font-size: 13px;
    line-height: 1.4;
}
.label {
    color: #a78bfa;
}

.nav {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.nav button {
    flex: 1;
}

button:disabled {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal {
  position: fixed;
  margin: auto;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #111;
  padding: 12px;
  border-radius: 8px;
  width: 90%;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.modal-actions button {
  flex: 1;
}

#toast {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #111;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#toast.show {
    opacity: 1;
}