/*
*   this file includes presentation styles.
*   @giraykarasinir
*/

.jfPresentation {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #000;
  display: flex;
  flex-direction: column;

  &.black {
    background: #000;
  }

  &:before {
    top: 64px;
  }

  &-barContainer {
    position: absolute;
    bottom: 50px;
  }

  &-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: $transition;

    &.ReactModal__Overlay--after-open {
      opacity: 1;
    }

    &:not(.forPresentation) {
      background-color: rgba(#282828,.61);
    }
  }

  &-modal {
    width: 94%;
    max-width: 700px;
    margin: auto;
    background-color: $white;
    border-radius: 4px;
  }


  &-header {
    height: 64px;
    padding: 13.5px 15px;
    background-color: $white;
    border-bottom: 1px solid #B1B2C3;
  }

  &-logo {
    height: 100%;
  }

  &-tools {
    display: flex;

    .jfReportButton {
      & + .jfReportButton {
        margin-left: 10px;
      }

      &.forAction {
        margin-left: 15px;
      }
    }
  }

  .jfReport-viewport {
    overflow: hidden;
  }

  .jfReport-page {
    display: flex;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
    overflow: auto;
    touch-action: none;
    -webkit-user-drag: none;
    user-select: none;
  }

  .jfReport-canvas {
    position: relative;
    display: flex;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    height: 100%;
    min-width: 100%;

    .activePage {
      z-index: 5;
    }

    &:not(.noAnimation) {
      transition: .7s cubic-bezier(0.39, 0.575, 0.565, 1);
    }

    &.verticalSlide {
      flex-flow: column;
    }

    &.scaleAndFade .jfReport-page {
      position: absolute;
    }

    &.scaleAndSlide .jfReport-page,
    &.scaleAndFade .jfReport-page {
      transition: .7s cubic-bezier(0.39, 0.575, 0.565, 1);

      &:not(.activePage) {
        opacity: 0;
        transform: scale(1.3);
      }
      &.activePage {
        opacity: 1;
        transform: scale(1);
      }
    }

    // &.rotate .jfReport-page {
    //   transform-style: preserve-3d;
    //   transition: .7s cubic-bezier(0.39, 0.575, 0.565, 1);

    //   position: absolute;
    //   &:not(.activePage) {
    //     opacity: 0;
    //     transform: perspective(1000px) rotateY(90deg);
    //   }
    //   &.activePage {
    //     opacity: 1;
    //     transform: perspective(1000px) rotateY(0);
    //   }
    // }
  }

  .jfReport-pageContainer {
    flex-shrink: 0;
  }

  .zoomController {
    right: 22px;
    left: auto;
  }

  &-progressBar {
    height: 5px;
    background-color: #4277FF;
    transition: .3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  #printIframe {
    width: 0;
    height: 0;
    visibility: hidden;
    border: none;
  }
}


.jfReportInputSet {
  padding: 12px 7px 12px 14px;
  background-color: #FDFDFD;
  border: 1px solid #C5C5D0;
  border-radius: 4px;

  .urlContainer {
    flex: 1;
    margin: auto 14px;
    overflow: auto;
    font-size: 0.875rem;
  }

  .urlStatic, .urlSlug input[readonly] {
    color: #8D8FA8;
  }

  .urlSlug {
    flex: 1;
    input {
      color: inherit;
      background-color: transparent;
      border: none;
    }
  }

  .urlEdit {
    padding: 7px;

    &:hover {
      svg {
        fill: #2b3245;
      }
    }
  }
}

.jfReportPassword {
  .passwordToggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #8D8FA8;
    transition: .3s ease-in-out;
    font-size: 0.875rem;
    cursor: pointer;
    margin: 15px 0;
    font-weight: 500;
  }

  [type="password"] {
    letter-spacing: 6px;

    &::placeholder {
      letter-spacing: initial;
    }
  }

  .showPassword {
    position: absolute;
    right: 10px;
    top: calc(50% - 7px);
    padding: 0;

    .icon-eye {
      transition: fill .3s;
    }

    &:hover, &.isActive {
      .icon-eye {
        fill: #8D8FA8;
      }
    }
  }
}

.jfReportInput {
  padding: 16px 14px;
  background-color: #FDFDFD;
  border: 1px solid #C5C5D0;
  border-radius: 4px;
  color: #8D8FA8;
  font-size: 0.875rem;
  width: 100%;

  &::placeholder {
    color: rgba(#8D8FA8,.5);
  }

  &:hover {
    border-color: darken(#C5C5D0, 10);
  }

  &:focus {
    color: inherit;
    border-color: darken(#C5C5D0, 10);
  }

  &-holder {
    position: relative;
    margin-bottom: 20px;

    .inputIcon {
      position: absolute;
      top: calc(50% - 8px);
      left: 16px;
    }

    .jfReportInput {
      padding-left: 44px;
    }
  }
}

.fixedPresentationBar:not(.isFullscreen) {
  bottom: 50px;
  background: #2E354A;
  border-radius: 6px 6px 0 0;

  .jfPresentation {
    overflow: visible;
    background-color: #2E354A;
    border-radius: 6px 6px 0 0;

    .jfReport-hider {
      border-radius: 6px 6px 0 0;
    }

    &-progressBar {
      height: 3px;
    }

    &-barContainer {
      bottom: -50px;

      .forBar {
        border-radius: 0 0 6px 6px;
        max-width: unset;
        width: 100%;
        justify-content: space-between;

        .divider {
          opacity: 0;
        }
      }

      .jfReportButton {
        &.print {
          background: #A8AABF;
          .icon-print {
            fill: #fff;
          }
        }
        &.download {
          background: #01bd6f;
          .icon-download {
            fill: #fff;
          }
        }
      }
    }
  }
}
