/* Demo Styles */
// Add spacing to Boostrap components for demo purpose
.template-demo {
  > .btn {
    @extend .mt-3;
    @extend .mr-2;
  }

  .slider-wrap {
    height: 100px;
  }

  > .btn-toolbar {
    @extend .mt-3;
    @extend .mr-3;
  }

  > .btn-group,
  >  .btn-group-vertical {
    @extend .mt-2;
    @extend .mr-2;
  }

  .progress {
    margin-top: 1.5rem;
  }

  .circle-progress {
    @extend .mt-2;
  }

  > h2,
   > h3,
   > h4,
   > h5,
   > h6,
  > h1 {
    border-top: 1px solid $border-color;
    padding: 0.5rem 0 0;
  }

  .ul-slider {
    &.noUi-horizontal {
      margin-top: 2rem;
    }

    &.noUi-vertical {
      margin-right: 2rem;
    }
  }

  > .dropdown {
    display: inline-block;
    @extend .mr-2;
    margin-bottom: 0.5rem;
  }

  nav {
    .breadcrumb {
      margin-bottom: 1.375rem;
    }

    &:last-child {
      .breadcrumb {
        margin-bottom: 0;
      }
    }
  }

  .editable-form {
    > .form-group {
      border-bottom: 1px solid $border-color;
      padding-bottom: 0.8rem;
      margin-bottom: 0.8rem;
    }
  }

  .circle-progress {
    padding: 15px;
  }

  .circle-progress-block {
    @extend .mb-3;
    @extend .px-2;
  }
}

.demo-modal {
  position: static;
  display: block;

  .modal-dialog {
    @extend .mt-0;

    &.modal-lg {
      max-width: 100%;
    }
  }
}

.loader-demo-box {
  @extend .border;
  @extend .border-secondary;
  @extend .rounded;
  width: 100%;
  height: 200px;
  @extend .d-flex;
  @extend .align-items-center;
}

.dropdown-menu-static-demo {
  height: 250px;
  margin-bottom: 20px;
  .dropdown-menu {
    z-index: 0;
  }
}

.rounded-legend {
  ul {
    li {
      list-style-type: none;
      color: $text-muted;
      font-size: .75rem;
      .legend-dots {
        width: 1rem;
        height: 1rem;
        border-radius: 100%;
        display: inline-block;
        vertical-align: text-bottom;
        margin-right: .5rem;
        .rtl & {
          margin-left: .5rem;
        }
      }
    }
  }
  &.legend-horizontal {
    @include display-flex;
    ul {
      li {
        display: inline-block;
        margin-right: 1.5rem;
        .rtl & {
          margin-right: auto;
          margin-left: 1.5rem;
        }
      }
    }
  }
  &.legend-top-right {
    ul {
      float: right;
      .rtl & {
        float: left;
      }
    }
  }
  &.legend-vertical {
    ul {
      li {
        margin-top: 1rem;
      }
    }
  }
}

.demo-chart {
  height: 300px;
  @media (max-width: 767px) {
    height: 200px;
  }
}

.chartjs-legend {
  ul {
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
    @include display-flex;
    @include align-items(center);
    @include flex-direction(row);
    @include flex-wrap(wrap);
    @include justify-content(start);
    li {
      margin-right: 8%;
      @include display-flex;
      @include align-items(center);
      span {
        height: 1rem;
        width: 1rem;
        margin-right: .4rem;
        display: inline-block;
        font-size: $default-font-size;
        border-radius: 100%;
      }
    }
  }
  .rtl & {
    ul {
      padding-right: 0;
      li {
        margin-right: 0;
        margin-left: 8%;
        span {
          margin-right: 0;
          margin-left: 1rem;
        }
      }
    }
  }
  &.analytics-legend {
    ul {
      padding-left: 0;
    }
  }
}

.documentation {
  padding-top: 0;
  max-width: 100%;
  .content-wrapper {
    padding-top: 0;
    min-height: calc(100vh - #{$footer-height});
  }
}
.doc-table-contents,
.doc-header {
  position: fixed;
}
.doc-header {
  padding-top: 24px;
  padding-bottom: 24px;
  z-index: 2;
  background: $content-bg;
  z-index: 999;
}

.doc-content {
  padding-top: 157px;
}

.doc-table-contents {
  overflow: auto;
  max-height: calc(100% - 157px);
  ul {
    li {
      margin-top: 10px;
    }
  }
}

.doc-credits {
  ul {
    li {
      margin-bottom: 10px;
      a {
        margin-left: .25rem;
      }
    }
  }
}

.demo-vector-map {
  width: 100%;
  height: 500px;
}

.sparkline-demo-chart {
  canvas{
    max-width: 100%;
  }
}

.layouts-preview-main-wrapper {
  background: #efefef;
  .layouts-preview-wrapper {
    .preview-item {
      a {
        position: relative;
        text-decoration: none;
        img {
          border-radius: 4px;
          -webkit-box-shadow: 0 25px 50px rgba(8,21,66,.06);
                  box-shadow: 0 25px 50px rgba(8,21,66,.06);
          -webkit-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
        }
        .item-title {
          height: 70px;
          margin-top: -69px;
          @extend .d-flex;
          @extend .align-items-center;
          @extend .justify-content-center;
          background: white;
          border-radius: 0 0 4px 4px;
          h4 {
            font-size: 1.2rem;
            color: #2e384d;
          }
        }
      }
      &:hover {
        a {
          img {
            -webkit-box-shadow: 0 5px 12px rgba(126,142,177,.2);
            box-shadow: 0 5px 12px rgba(126,142,177,.2);
          }
        }
      }
    }
  }  
}

.project-orders-table {
  thead {
    tr {
      th {
        &:first-child {
          padding-left: 1.9rem;
          padding-right: 1.9rem;
        }
        &:last-child {
          padding-right: 1.9rem;
        }
      }
    }
  }
  tbody {
    tr {
      td {
        &:first-child {
          padding-left: 1.9rem;
        }
        &:last-child {
          padding-right: 1.9rem;
        }
      }
    }
  }
}

.newsletter-card {
  .form {
    .form-group {
      .form-control {
        border-radius: 25px;
        border: 0;
        max-width: 85%;
        margin: 0 auto;
        height: 42px;
        &::placeholder {
          text-align: center;
          color: #001737;
        }
      }
    }
    button {
      padding: 14px 40px;
    }
  }
}

.profile-card {
  .avatar {
    @include display-flex();
    @include align-items(center);
    @include justify-content(center);
    // text-align: center;
    width: 87px;
    height: 87px;
    border-radius: 50px;
    border: 4px dashed rgba(255,255,255,.58);
    img {
      border-radius: 30px;
      width: 60px;
      height: 60px;
    }
  }
  .info {
    border-top: 1px solid rgba(255, 250, 250, .22);
  }
}