/**======================================================================
=========================================================================
Template Name: Mantis Angular - Angular Admin Template
Author: codedThemes
Support: https://codedthemes.support-hub.io/
File: style.css
=========================================================================
=================================================================================== */

// main framework
@import './settings/color-variables';
@import '../../node_modules/bootstrap/scss/functions';
@import '../../node_modules/bootstrap/scss/variables';
@import './settings/bootstrap-variables';
@import './settings/theme-variables';
section {
  padding: 100px 0;
}

.title {
  margin-bottom: 50px;

  h2 {
    font-weight: 600;
  }

  h5 {
    font-weight: 500;
  }
}

.landing-page {
  overflow-x: hidden;

  @media (min-width: 1600px) {
    .container {
      max-width: 1200px;
    }
  }
}

.navbar {
  position: fixed;
  padding: 16px 0;
  width: 100%;
  z-index: 1099;
  top: 0;
  background: $gray-900;

  &.top-nav-collapse {
    box-shadow: 0 8px 6px -10px rgba(0, 0, 0, 0.5);
  }

  &.component-page {
    z-index: 1025;

    &.default {
      box-shadow: 0 1px 0px 0 rgba(0, 0, 0, 0.1);
    }
  }

  &.contact-us {
    background: transparent;
    .container {
      max-width: 1266px;
    }

    @media (max-width: 1199px) {
      .container {
        padding-left: 24px;
        padding-right: 24px;
        max-width: 100%;
      }
    }
    @media (max-width: 768px) {
      .container {
        padding: 0px;
        width: 100%;
        max-width: 100%;
      }
    }
    &.contact-nav {
      background: rgb(20, 20, 20);
      transition: ease-in-out;
    }
  }
}

.component-block {
  .list-group {
    list-style-type: none;
  }

  .component-block {
    padding: 100px 0 40px;
  }

  .component-live-link {
    a {
      color: $primary;

      &:hover {
        text-decoration: underline;
      }
    }
  }

  .component-list-card {
    box-shadow: var(--pc-sidebar-shadow);
    width: 100%;

    .card-body {
      overflow-y: auto;
      height: calc(100vh - 235px);
    }

    .list-group-item {
      position: relative;
      border: none;
      font-weight: 500;
      padding: 12px var(--bs-list-group-item-padding-x);

      &.list-group-item-action {
        color: var(--pc-sidebar-color);
        border-radius: var(--bs-border-radius);

        margin: 2px 0;

        &:after {
          content: '';
          position: absolute;
          top: 0;
          right: 0;
          width: 2px;
          height: 100%;
        }
        &.active {
          color: $primary;
          background-color: transparentize($primary, 0.9);
          &::after {
            background-color: $primary;
          }
        }
      }
    }
  }

  .component-offcanvas {
    @media (min-width: 1200px) {
      position: sticky;
      top: 100px;
      z-index: 1020;
    }
    @media (max-width: 1199.98px) {
      width: 300px;
    }

    &.show {
      .card {
        border: none;
      }

      .component-list-card {
        margin-bottom: 0;

        .card-body {
          height: calc(100vh - 150px);
        }
      }
    }
  }

  .footer {
    @media (max-width: 991.98px) {
      .top-footer {
        padding: 40px 0;
      }
    }

    .footer-bottom {
      padding: 22px 0;
    }

    .footer-link {
      li {
        &:last-child {
          a {
            margin-bottom: 0;
          }
        }
      }
    }

    .footer-sos-link {
      a {
        transition: all 0.08s cubic-bezier(0.37, 0.24, 0.53, 0.99);
        color: var(--bs-primary);

        &:not(:hover) {
          opacity: 0.9;
        }
      }
    }
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 40px 0;
  }
}

/* =======================================================================
 ===============     Ui kit copy model style      ====================== */
/* Code examples */

.pc-component {
  position: relative;

  &.card-body {
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  }
}

/* Modal */

.pc-modal {
  position: fixed;
  z-index: 1099;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #282c34;
  -webkit-transform-origin: 50% 0;
  -ms-transform-origin: 50% 0;
  transform-origin: 50% 0;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.pc-modal-opened {
  overflow: hidden !important;

  .pc-modal {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}

.pc-component {
  .pc-modal-content {
    margin: 25px -25px -25px;
    padding: 45px 25px 25px;
  }

  &.card-body {
    .pc-modal-content {
      margin: 25px -25px -25px;
      padding: 45px 25px 25px;
    }
  }
}
.card-border-outside {
  .pc-modal-content {
    margin-inline: 0;
    margin-bottom: 0;
  }
}

.pc-modal-content {
  max-width: 100vw;
  overflow: auto;
  position: relative;
  border-top: 1px solid var(--bs-border-color);

  > pre {
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
    margin-top: 20px;

    .hljs {
      &::-webkit-scrollbar {
        height: 4px;
        opacity: 0;

        &:hover {
          opacity: 1;
        }
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      &::-webkit-scrollbar-thumb {
        background: darken($body-bg, 05%);
      }

      &::-webkit-scrollbar-thumb:hover {
        background: darken($body-bg, 25%);
      }
    }

    > code {
      padding: 0;
      background: none;
      font-size: 16px;
    }
  }
}

.md-pc-modal-copy,
.pc-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: absolute;
  top: 15px;
  border-radius: 20px;
  padding: 0;
  width: 40px;
  height: 40px;
  color: var(--bs-body-color);
  z-index: 1;
  white-space: nowrap;

  &:hover {
    color: var(--bs-primary);
    background: var(--bs-primary-light);
  }
}

.pc-collapse {
  right: 25px;
}

.md-pc-modal-copy {
  right: 75px;

  &.copied::before {
    content: 'Copied!.';
    position: absolute;
    display: block;
    right: 100%;
    margin-right: 10px;
    font-size: 14px;
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.1);
    line-height: 24px;
    height: 24px;
    border-radius: var(--bs-border-radius);
    padding: 0 6px;
    top: 50%;
    margin-top: -12px;
  }
}

.pc-modal-close {
  display: block;
  position: fixed;
  top: 10px;
  right: 52px;
  color: $white;
  opacity: 0.2;
  font-size: 3rem;
  font-weight: 100;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: 1;

  &:hover {
    color: $white;
    opacity: 0.9;
  }
}

/* Code */

.cui-bottom-spacer {
  height: 12rem;
}

/* editor style for model */

.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  color: #6e7073;
  background: #fafafa;
}

.hljs-comment,
.hljs-quote {
  color: #a0a1a7;
  font-style: italic;
}

.hljs-doctag,
.hljs-formula,
.hljs-keyword {
  color: #a626a4;
}

.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
  color: #e45649;
}

.hljs-literal {
  color: #0184bb;
}

.hljs-addition,
.hljs-attribute,
.hljs-meta-string,
.hljs-regexp,
.hljs-string {
  color: #50a14f;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #c18401;
}

.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable {
  color: #986801;
}

.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title {
  color: #4078f2;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}
