@import url("/assets/stylesheets/nutte-tokens.css");

.component-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: var(--brand);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--brand-shadow-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.component-button:hover {
  background-color: var(--brand-hover);
  color: hsl(var(--primary-foreground));
  text-decoration: none;
}

.component-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.component-button:disabled,
.component-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.component-button--block {
  width: 100%;
}

.component-button--compact {
  padding-right: 12px;
  padding-left: 12px;
  white-space: nowrap;
}

.component-button--secondary {
  border-color: var(--warm-350);
  background-color: hsl(var(--background));
  color: var(--warm-800);
  box-shadow: none;
}

.component-button--secondary:hover {
  border-color: var(--brand);
  background-color: hsl(var(--background));
  color: var(--brand);
}

.component-button--danger {
  background-color: var(--danger);
  color: hsl(var(--destructive-foreground));
  box-shadow: none;
}

.component-button--danger:hover {
  background-color: var(--danger-hover);
  color: hsl(var(--destructive-foreground));
}
