input {
  font-size: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  margin: 0.25rem 0;
}

.rwx-text-label {
  /* Mimic default input field appearance */
  color: #444;
  background-color: #fefefe;
  /* Common input background color */
  border: 1px solid #eee;
  /* Common input border */
  padding: 0.5rem 1rem;
  /* Match common input padding */
  box-sizing: border-box;
  /* Ensures padding/border don't add to width */
  width: 100%;
  /* Adjust width as needed */
  border-radius: 0.25rem;
  /* Common input corner rounding */
  margin: 0.25rem 0rem;
}

#rwx-form button {
  padding: 0.5rem 1.5rem;
}

#rwx-form {
  margin-top: 2rem;
}

#rwx-form input {
  font-size: inherit;
  width: 100%;
  border-radius: 1rem;
  border: none;
  background-color: #f6f6f6;
  padding: 0.5rem 1rem;
}

#rwx-form label {
  padding-left: 1rem;
  margin-top: 1rem;
}

.form-shadow {
  padding: 2rem;
  border-radius: 0.25rem;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.15);
  /* Creates a shadow on the top border only */
  /* box-shadow: 0px -8px 15px -5px rgba(0, 0, 0, 0.1);  */
  background-color: white;
}

.rwx-button {
  font-size: inherit;
  position: relative;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: black;
  color: white;
  border: none;
  border-radius: 1.25rem;
  transition: color 0.3s ease-in-out;
  z-index: 1;
  overflow: hidden;

  &:disabled {
    cursor: not-allowed;
  }
}

#btnOk.rwx-button,
#btnClear.rwx-button {
  color: #444;
  height: 1.75rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-weight: 400;
  background-color: #fafafa;
  border-width: 1px;
  border-style: solid;
  border-color: color-mix(in srgb, #fafafa 90%, black);
}

#btnOk.rwx-button::after,
#btnClear.rwx-button::after {
  display: none;
}

#btnOk.rwx-button:not(disabled):hover,
#btnClear.rwx-button:not(disabled):hover {
  font-weight: 600;
  color: #fff;
  background-color: var(--rwx-color-edit);
  transition: background-color 0.7s ease;
}

#btnOk.rwx-button:not(disabled):hover::after,
#btnClear.rwx-button:not(disabled):hover::after {
  display: none;
}

.rwx-link-button {
  display: inline-block;
  vertical-align: middle;
  padding: 0.4rem 1rem;
}

/* Simple and elegant hover effect */
.rwx-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-color: var(--rwx-color-orange);
  /* A bright accent color */
  transition: width 0.3s ease-in-out;
}

.rwx-button:not(:disabled):focus::after,
.rwx-button:not(:disabled):hover::after {
  width: 100%;
  transition: width 0.3s ease-in-out;
}

.form-statusbar {
  line-height: 2rem;
  font-size: inherit;
  color: var(--rwx-color-error);
}