@import 'scss/font-family.scss';
@import 'theme/variables.scss';

.modal-container {
  position: relative;
  width: 390px;
  height: auto;
  border-radius: 3px;
  gap: 4px;
  padding: 8px;
  box-shadow: 0px 0px 16px 0px #00000080;

  .trash-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 90px;
    height: 90px;
  }

  //HEADER
  .modal-header {
    width: 100%;
    height: auto;
    padding: 4px;

    .modal-header-content {
      gap: 12px !important;
      height: auto;
      width: 268px;

      &.top {
        padding: 2px 2px;
        gap: 6px;

        .exclamation-svg {
          padding: 2px;
          width: 18px;
          height: 18px;

          svg {
            width: 100%;
          }
        }

        .modal-title {
          font-weight: 800 !important;
          font-family: $font-family;
          line-height: 21.94px;
          color: $ta-black;
          font-size: 18px;
        }
      }

      &.bottom {
        .line {
          width: 100%;
          height: 1px;
          background: $bw-9;
          border: none;
          border-radius: 1px;
        }
      }
    }
  }

  //BODY
  .modal-body {
    width: 268px;
    height: auto;

    .modal-body-content {
      width: 100%;
      height: auto;

      .modal-body-content-comment {
        height: auto;
        padding: 4px;
        width: 100% !important;

        .title,
        .date {
          margin: 0;
          padding: 0;
        }

        .title {
          font-weight: 700 !important;
          font-size: 18px;
          line-height: 21.94px;
          font-family: $font-family;
          white-space: nowrap !important;
          overflow: hidden !important;
          text-overflow: ellipsis !important;
          color: $ta-black;
        }

        .date {
          font-weight: 500 !important;
          font-family: $font-family;
          line-height: 18px;
          font-size: 14px;
          color: $grey;
        }
      }

      .load-id {
        padding: 4px;
        margin-top: 4px;
      }

      .modal-body-content-id {
        width: 73px;
        height: 18px;
        background-color: $grey;
        padding: 4px 4px;
        border-radius: 2px;

        .id-title {
          font-weight: 700 !important;
          font-family: $font-family;
          color: $white-2;
          font-size: 11px;
          line-height: 14px;
        }
      }

      &.information {
        margin-top: 4px;
        padding: 4px;

        .information-title {
          font-weight: 500 !important;
          font-family: $font-family;
          font-size: 14px;
          color: $ta-black;
          line-height: 18px;
        }
      }
    }
  }

  //FOOTER
  .modal-footer {
    margin-top: 4px;
    width: 100%;

    .model-footer-content {
      width: 100%;

      .line-footer {
        width: 100%;
        height: 1px !important;
        border-radius: 1px;
        background: $bw-9;
        border: none;
        margin-bottom: 12px;
      }

      .btn-container {
        gap: 12px;
        outline: none;
      }

      .btn-cancel,
      .btn-confirm {
        font-weight: 700 !important;
        border-radius: 2px;
        width: 177px;
        height: 32px;
        border: none;
        font-size: 14px;
        font-family: $font-family;
      }

      .btn-cancel {
        border: none;
        background-color: $bw2;
        color: $ta-black;
        transition: background 0.2s ease-in-out;

        &:hover {
          background-color: $ta-black;
          color: $white-2;
        }
      }

      .btn-confirm {
        background-color: #df3c3c;
        color: $white-2;
        transition: background 0.2s ease-in-out;

        &:hover {
          background-color: #c20c0c;
          color: $white-2;
        }
      }
    }
  }
}

//Animation
@keyframes modalOpen {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-modal {
  animation: modalOpen 0.2s ease-in;
  opacity: 1;
  transform: scale(1) translateY(0px);

  .modal-dialog {
    width: 390px !important;
    max-width: none !important;
  }

  .modal-content {
    border: none !important;
    box-shadow: none !important;
    border-radius: 3px !important;
    --bs-modal-header-border-color: none;
    --bs-modal-footer-border-color: none;
    --bs-modal-padding: 0;
  }
}
