.application.dialog.prismrpg {
  color: var(--color-dark-1);

  input,
  select {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--color-dark-6);
    color: var(--color-dark-2);
  }
}

.prismrpg-roll-dialog {
  fieldset {
    padding: 4px;
  }
  .goto-token-button {
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left: 0.5rem;
    max-width: 8rem;
    background-color: var(--color-dark-6);
    color: var(--color-dark-2);
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
  }

  .dialog-weapon-options {
    margin-top: 8px;

    .dialog-save {
      margin: 4px 0;

      label {
        display: flex;
        align-items: center;
        cursor: pointer;

        input[type="checkbox"] {
          margin-right: 8px;
          cursor: pointer;
        }
      }

      select {
        margin-left: 8px;
        min-width: 10rem;
      }
    }
  }
}

.prismrpg-range-defense-dialog {
  width: 18rem;

  fieldset {
    padding: 4px;
  }
  .fieldset-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  select {
    margin-left: 0.5rem;
    min-width: 12rem;
    max-width: 12rem;
  }
  .field-section {
    display: flex;
    align-items: center;
    justify-content: left;
  }
  .field-name {
    width: 5rem;
    min-width: 5rem;
    max-width: 5em;
  }
}

.dialog-form {
  .form-footer {
    button {
      min-width: 14rem;
      min-height: 3.2rem;
    }
  }
}

.dialog-modifier {
  display: flex;
  justify-content: center;
  align-items: center;
  select {
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-dark-2);
    width: 60px;
    text-align: center;
  }
}

.dialog-favor {
  display: flex;
  justify-content: center;
  align-items: center;
  select {
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-dark-2);
    width: 120px;
    text-align: center;
  }
}

.main,
.dialog-damage,
.dialog-resource,
.dialog-challenge,
.dialog-save {
  margin-bottom: 0px;
  padding-bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-secondary);
  font-size: calc(var(--font-size-standard) * 1);
  color: var(--color-dark-1);
  select {
    min-width: 8rem;
    max-width: 8rem;
    margin-left: 1rem;
  }
}

&.dice-roll {
  flex-direction: column;

  .dice-total,
  .dice-formula {
    padding-top: 4px;
  }
  .dice-total {
    margin-bottom: 4px;
  }
  .message-header {
    font-family: var(--font-primary);
  }
  img {
    border: 0px;
  }
  .intro-chat {
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    .intro-img {
      padding: 4px;
      width: 80px;
      align-self: center;
    }
    .intro-right {
      display: flex;
      flex-direction: column;
      .introText {
        font-family: var(--font-secondary);
        font-size: calc(var(--font-size-standard) * 1);
        width: 210px;
        margin-left: 20px;
      }
    }
  }
  .result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--font-size-standard) * 1);
    text-shadow: 0 0 10px var(--color-shadow-primary);
  }

  // Roll Damage button in weapon attack messages
  .damage-roll-button {
    margin-top: 0.5em;
    margin-bottom: 0.25em;

    .roll-damage-button {
      background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
      color: white;
      border: 1px solid #6b0000;
      border-radius: 3px;
      padding: 4px 10px;
      font-weight: 600;
      cursor: pointer;
      font-size: 0.85em;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      transition: all 0.2s ease;

      &:hover {
        background: linear-gradient(135deg, #a00000 0%, #ff1744 100%);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transform: translateY(-1px);
      }

      i {
        margin-right: 4px;
        font-size: 0.9em;
      }
    }
  }
}
