@import "../../../../assets/scss/variables";

:root {
  --overlay-bg: rgb(12, 52, 61, 0.3);
  --disabled-button-text-color: #fff;
  --disabled-button-bg: red;
}

:root[data-theme="dark"] {
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --disabled-button-text-color: #20262E;
  --disabled-button-bg: #40474F;
}

.actions-modal-overlay {
  $disabled-button-text-color: var(--disabled-button-text-color);
  $overlay-bg: var(--overlay-bg);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: $overlay-bg;
  z-index: 9999;
  //backdrop-filter: blur(5px);

  #action-modal {

    position: absolute;
    width: 1080px;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: $app-background;
    opacity: 1;
    padding: 45px 60px;
    overflow-y: auto;
    max-width: 85vw;
    max-height: 85vh; // required for overflow-y:auto to actually trigger — without a height limit the box just grows past the viewport instead of scrolling
    z-index: 99999;

    @media (max-width: 768px) {
      top: 50%;
      max-height: 90vh;
      padding: 30px 20px;
    }

    .title {
      font-size: 3rem;
      font-weight: 300;
      color: $title-color;
      margin-bottom: 25px;

      span {
        font-size: 2rem;
        font-weight: bold;
      }
    }

    .modal-close-btn {
      position: absolute;
      top: 45px;
      right: 30px;

      img {
        filter: var(--svg-default);
        width: 12px;
        height: 12px;
      }
    }

  }

  .action-modal--btn-container {
    button:first-child {
      align-items: center;
      flex-direction: row-reverse;

      img {
        width: 15px;
        height: 15px;
      }

      p {
        color: $app-background;
        font-weight: 700;
      }
    }

    button:last-child {
      align-items: center;
      background-color: $success-color;

      img {
        width: 21px;
        height: 16px;
      }

      p {
        color: var(--black-text-color);
        font-weight: 700;
      }
    }

    button {
      &.disabled {
        background-color: var(--disabled-button-bg);
        cursor: not-allowed;
        border: transparent;

        p {
          color: $disabled-button-text-color;

        }

        img {
          filter: var(--black-img);
        }
      }
    }

    p {
      margin-bottom: 0;
      font-size: 1.1rem;
      color: $app-background;
      margin-top: 4px;

    }
  }

}

.confirmation-modal {
  &.edit-managers,
  &.edit-speciality {
    #action-modal {
      overflow-y: visible !important;

      .options {
        position: unset !important;
      }
    }
  }
  &--image-container {
    text-align: center;
    margin-bottom: 13px;
  }

  &--title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: $bold;
  }

  &--text {
    text-align: center;
    margin: auto;
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: $regular;
  }
}

.delete-confirm-modal {

  &--image-container {
    text-align: center;
    margin-bottom: 1rem;
  }

  p {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .last-p {
    margin-bottom: 5rem;
    font-size: 1.4rem;
  }
}

.certify {
  filter: var(--svg-default)
}
