
.nostr-form {
  background-color: var(--form-bg);
  color: var(--form-text);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

  &__field {
    margin-bottom: 1.5rem;
  }

  &__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--form-text);
  }

  &__input,
  &__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--form-border);
    border-radius: 0.375rem;
    background-color: var(--form-bg);
    color: var(--form-text);
    transition: all 0.2s ease-in-out;

    &:focus {
      outline: none;
      border-color: var(--form-focus);
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }

    &--error {
      border-color: var(--form-error);
    }
  }

  &__textarea {
    resize: vertical;
    min-height: 100px;
  }

  &__error {
    display: block;
    margin-top: 0.5rem;
    color: var(--form-error);
    font-size: 0.875rem;
  }

  &__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--form-border);
    border-radius: 0.375rem;
    background-color: var(--form-bg);
  }

  &__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--form-tag-bg);
    color: var(--form-tag-text);
    border-radius: 9999px;
    font-size: 0.875rem;
    gap: 0.5rem;

    &:hover {
      background-color: var(--form-tag-hover);
    }
  }

  &__tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: none;
    background: none;
    color: var(--form-tag-text);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;

    &:hover {
      color: var(--form-error);
    }
  }

  &__tag-input {
    flex: 1;
    min-width: 120px;
    border: none;
    background: none;
    color: var(--form-text);
    padding: 0.25rem;
    font-size: 0.875rem;

    &:focus {
      outline: none;
    }
  }

  &__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
  }

  &__submit {
    padding: 0.75rem 1.5rem;
    background-color: var(--form-button-bg);
    color: var(--form-button-text);
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &:hover {
      background-color: var(--form-button-hover);
    }

    &:focus {
      outline: none;
      box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    }
  }
}