@import 'icons';
@import 'colors';
@import 'variables';
@import 'buttons';

.ngconfirm-theme-lorry {
  padding-bottom: 160px;
  padding-top: 160px;

  .ngdialog-overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .ngdialog-content {
    background: transparent;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    width: 780px;
    text-align: center;

    .dialog-content {
      margin-bottom: 20px;
      color: $white;
    }

    .dialog-footer {
      a {
        margin-left: 20px;
      }

      .footer-link {
        color: $white;
      }
    }
  }
}

.ngdialog-theme-lorry {
  padding-bottom: 160px;
  padding-top: 160px;

  &.notification {
    .ngdialog-content {
      width: 580px;
    }
  }

  .ngdialog-content {
    background: #fff;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    width: 780px;

    .ngdialog-close {
      cursor: pointer;
      position: absolute;
      right: 0;
      top: 0;
    }

    .ngdialog-close:before {
      background: transparent;
      color: $white;
      content: "\00D7";
      font-size: 26px;
      font-weight: 400;
      height: 30px;
      line-height: 26px;
      position: absolute;
      right: 15px;
      text-align: center;
      top: 15px;
      width: 30px;
    }

    .ngdialog-close:hover:before,
    .ngdialog-close:active:before {
      color: $lighter_grey;
    }

    .dialog-title,
    .dialog-instructions,
    .dialog-content,
    .dialog-footer {
      padding:20px;
    }

    .dialog-title {
      background-color: $medium_grey;
      color: $white;
      height: 60px;

      h2 {
        font-size: 1.1em;
      }
    }

    .dialog-tabs {
      padding: 20px 20px 0 20px;
      border-bottom: 1px solid $lighter_grey;

      .button-tab-selected {
        @extend .button-primary;
        background-color: $white;
        color: #333;
        border-top: 1px solid $lighter_grey;
        border-right: 1px solid $lighter_grey;
        border-left: 1px solid $lighter_grey;
        margin-right: 15px;

        &:hover {
          @include box-shadow(0, 0, 0, rgba( $white, 0.0 ));
          background-color: $white;
        }
      }

      .button-tab-deselected {
        @extend .button-primary;
        color: #666;
        background-color: $lighter_grey;
        border-top: 1px solid $lighter_grey;
        border-right: 1px solid $lighter_grey;
        border-left: 1px solid $lighter_grey;
        margin-right: 15px;

        &:hover {
          @include box-shadow(0, 0, 5px, rgba( $lighter_grey, 0.6 ));
          color: #333;
          background-color: darken( $lighter_grey, 5% );
        }
      }
    }

    .dialog-content,
    .dialog-instructions {
      color: $light_grey;

      a {
        color: $light_grey;
        text-decoration: underline;

        &:hover {
          color: $darker_grey;
        }

        &.current {
          color: $darker_grey;
          text-decoration: none;
          cursor: default;
        }
      }

      h3 {
        color: $darker_grey;
        font-weight: bold;
        font-size: 1.1em;
      }

    }

    .dialog-content {
      border-bottom: 1px solid $lighter_grey;
      overflow: auto;
      padding-top: 5px;

      .success {
        color: $white;
        background-color: $ctl_light_green;
        padding: 12px;
        margin-bottom: 20px;
      }

      .failure {
        color: $white;
        background-color: $dark_red;
        padding: 12px;
        margin-bottom: 20px;
      }

      .gist-uri {
        font-family: $monospace_font_family;
        background-color: $lightest_grey;
        padding: 12px;
        margin-bottom: 20px;
        border: none;
        width: 350px;
      }

      .clip-copy {
        float: right;
        margin: 10px 10px 20px;
        text-decoration: underline;
        position: relative;
        &:hover {
          text-decoration: underline;
          color: $light_grey;
          cursor: pointer;
        }
        &:before, &:after {
          content: '';
          width: 20px;
          height: 20px;
          position: absolute;
          display: block;
          left: -30px;
          top: 0;
        }
        &.copied {
          font-style: italic;
        }

        &:before {
          border-radius: 10px;
          background: $lighter_grey;
        }
        &.copied:before {
          background: $ctl_light_green;
        }

        &:after {
          background-size: 10px 10px;
        }
        &.checkmark:after {
          @extend .icon-checkmark-for-button;
          top: 3px;
          left: -28px;
        }
      }

      .footer-link {
        clear: both;
        float: left;
      }
    }

    .dialog-instructions {
      line-height: 1.2em;
      padding-bottom: 5px;
    }

    textarea {
      width: 740px;
      height: 300px;
      border-color: $lighter_grey;
      font-family: $monospace_font_family;
    }

    button,
    label.button-secondary {
      font-weight: normal;
      min-width: 7em;
    }

    label.button-secondary {
      cursor: pointer;
    }

    .importFileName {
      margin-left: 20px;
      font-family: $monospace_font_family;
    }

    input[type="file"] {
      position: fixed;
      top:-1000px;
    }

    input[type="text"] {
      width: 740px;
      border-color: $lighter_grey;
      font-family: $monospace_font_family;
    }

    .dialog-footer {
      position: relative;
      overflow: auto;

      button {
        margin-left: 20px;
        float: right;
      }
    }

  }

}
