/*
 * SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and CLA-assistant contributors
 *
 * SPDX-License-Identifier: Apache-2.0
 */

.modal.fade .modal-dialog {
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);
  opacity: 0;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear;
}

.modal.fade.in .modal-dialog {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear;
}

.modal-header {
  padding: 15px 35px;
}

.modal-body {
  padding: 15px 15px;
}

.modal-primary {
  background-color: $gray-lighter;
  color: $gray-darkest;
}

.modal-primary-2nd {
  background-color: $brand-primary-2nd;
  color: $gray-lighter;
}

.modal-title {
  text-align: center;
  font-size: 26px;
  margin-top: 20px;
}

.modal-dialog {
  .icon {
    width: 300px;
    border: none;
  }

  p {
    font-size: 16px;
  }

  ul > li {
    padding-top: 15px;
  }

  button {
    margin-left: 10px;
    font-size: 16px;
  }

  .btn-cancel {
    font-weight: 200;
  }
}

.confirm-add .modal-dialog {
  width: 550px;

  p {
    color: $green;
  }
}

.link-success .modal-dialog {
  width: 455px;

  button {
    margin-left: 0px;
  }
}

.howto .modal-body .free-space {
  padding: 35px 15px 0px 15px;
}

.howto .modal-body .free-space:last-child {
  padding-bottom: 20px;
}

.howto .modal-body .btn,
.validatePr .modal-body .btn {
  margin: 20px 10px 0px 0px;
}

.validatePr .modal-body .btn-info {
  height: 45px;
  width: 100%;
}

.edit-linked-item .modal-body.container {
  width: initial;
}

.edit-linked-item .modal-body {
  .side-note {
    font-size: 12px;
  }

  .center-text {
    margin-bottom: 10px;
    text-align: center;
  }

  .wildcard {
    vertical-align: text-top;
    font-size: medium;
  }
}

.migrate-repository .model-body.container {
  width: 50%;
}

.migrate-repository .modal-body {
  .center-text {
    margin-bottom: 10px;
    text-align: center;
  }

  button {
    margin-left: 0px !important;
  }
}

.report .modal-body,
.get-badge .modal-body,
.upload .modal-body,
.edit-linked-item .modal-body,
.migrate-repository .modal-body,
.validatePr .modal-body {
  padding: 15px 35px;

  .close-button {
    margin-right: -15px;
  }

  .export-button {
    margin: 30px 0px;
  }

  .form-group {
    margin-bottom: 10px;
    padding-left: 0px;
  }
}

.report .modal-body,
.get-badge .modal-body {
  button {
    margin: 0;
  }

  .selectize-input {
    height: 100%;
  }
}

.validatePr .title {
  text-align: center;
  font-size: 26px;
  margin: 20px;
}

.small-light-text {
  font-size: 12px;
  color: gray;
}

.small-green-text {
  font-size: 12px;
  color: green;
}

.big-bold-text {
  font-size: 24px;
  font-weight: bold;
}

.modal-container {
  display: flex;
  flex-direction: column;
}

// Header styles
.modal-header {
  padding: 20px;
  border-bottom: 1px solid gray;
}

.modal-flex-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.left-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    max-height: 70%;
    max-width: 70%;
  }
}

.vertical-separator {
  width: 1px;
  height: 100%;
  background-color: gray;
}

.right-content {
  flex: 2;
  padding: 20px;

  h2 {
    font-size: 20px;
    font-weight: bold;
  }
}