$blue: #177ddc;
$green: #4aac16;
$red: #a33;
$dark: #191c24;
$radius: 2px;
$black: #161616;
$yellow: #e09634;

body {
  font-family: monospace;
  //font-size: 13px;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
 
    &-inner {
      line-height: 1.5rem;
      // padding-top: 1.5rem;
    }
  }
}

.bots-actions {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: $dark;
  margin-bottom: 1rem;

  .ant-space {
    flex-wrap: wrap;
  }
}

.logo {
  font-weight: 100;
  font-size: 1.3rem;
  padding: 1rem;

  span {
    color: var(--red);
  }
}

.ant-notification-notice {
  background-color: $dark;
}

.ant-notification-notice-icon .mdi-icon {
  font-size: 2rem;
}

.ant-notification-notice-success .mdi-icon {
  color: $green;
}

.ant-notification-notice-error .mdi-icon {
  color: $red;
}

.ant-notification-notice-close .anticon {
  color: #ffffff;
}

.ant-btn > span {
  vertical-align: middle;
}

.ant-layout-sider-collapsed .logo {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.ant-message-notice-content {
  background-color: $dark;
}

.panel {
  &-select {
    width: 100%;
  }

  &-user {
    //width: 180px;
    //height: 100%;
    padding: 1rem;
    background-color: darken($dark, 3%);
    position: relative;

    &-inner {
      display: flex;
      align-items: center;
      height: 100%;
    }

    &-image {
      flex: 0 0 40px;
      max-width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: $blue;
      //background-position: center;
      //-webkit-background-size: contain;
      //background-size: contain;
      //background-repeat: no-repeat;
      border-radius: 50%;
    }

    &-body {
      padding-left: .65rem;
      position: relative;
      flex: 1;
    }

    &-name {
      font-weight: bold;
      line-height: 1.2;
    }

    &-login {
      font-size: .7rem;
      line-height: 1;
      color: #a0a0a0;
    }
  }

  &-menu {
    &-item {
      margin: 0 !important;
      height: 45px !important;
      line-height: 45px !important;
      padding: 0 1rem !important;

      & .anticon {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #151515;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        //font-size: 1rem;
        color: #fff;
      }
    }
  }

  &-drop {
    position: relative;
    cursor: pointer;
    width: 64px;
    //margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;

    &-newcount {
      position: absolute;
      top: 10px;
      right: 10px;
      text-align: center;
      font-size: 11px;
      font-weight: bold;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: $green;
      line-height: 20px;
    }

    &:hover {
      background-color: #161616;
    }

    & .anticon {
      font-size: 28px;
    }

    &-list {
      max-width: 550px;
      max-height: 300px;
      overflow-y: auto;
      background-color: lighten($dark, 3%);
      border: 5px solid #2e3342;
      margin-top: -5px;

      & th, td {
        font-size: .7rem;
      }
    }
  }

  &-header {
    padding: 1rem;
    position: relative;

    &::before,
    &::after {
      position: absolute;
      content: '';
      height: 0;
      left: 0;
      right: 0;
    }

    &::before {
      border-bottom: 1px solid lighten($dark, 5%);
      bottom: 0;
    }

    &::after {
      border-bottom: 1px solid darken($dark, 5%);
      bottom: 1px;
    }

    h2 {
      margin: 0;
      font-size: 20px;
      line-height: 16px;
    }
  }

  &-content {
    padding: 1rem;
  }
}

.header {
  &-col {
    display: flex;
  }

  &-inner {
    height: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
  }

  &-burger {
    display: none;
  }
}

.header-logo {
  display: none;
}

.bot-btn {
  & .anticon {
    display: block;
  }
}

.bots {
  &-list {
    display: flex;

    &-404 {
      display: flex;
      justify-content: center;
      flex: 1;
      margin-bottom: 1rem;
      padding: 1rem;
      background-color: lighten($dark, 1%);
    }
  }
}

.bot-col {
  &.selected {
    & .bot-item {
      border: 2px solid $blue;
    }
  }
}

.stat {
  &-flex {
    display: flex;
    align-items: center;
    grid-column-gap: 5px;
  }

  &-content {
    flex: 0 0 calc(100% - 30px);
    max-width: calc(100% - 30px);
  }

  &-icon {
    flex: 0 0 30px;
    max-width: 30px;
    height: 30px;

    .anticon {
      font-size: 30px;
    }
  }

  &-value-name {
    font-size: .6rem;
  }
}

.header-stats {
  display: flex;
  grid-column-gap: 9px;
  align-items: center;
  padding: 0 10px;

  &-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  &-style {
    .ant-skeleton-title {
      margin: 0;
    }

    .ant-statistic-content {
      font-size: inherit;

      &-suffix {
        text-transform: lowercase;
      }
    }
  }

  &-card {
    min-width: 100px;

    &.online {
      .stat-flex {
        color: $green;
      }
    }

    &.offline {
      .stat-flex {
        color: #E0D234;
      }
    }

    &.new {
      .stat-flex {
        color: $yellow;
      }
    }
  }

  &-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    grid-column-gap: 3px;
  }

  //&-icon {
  //  display: flex;
  //  align-items: center;
  //  justify-content: center;
  //  flex: 0 0 20px;
  //  max-width: 20px;
  //  height: 35px;
  //
  //  i {
  //    line-height: 35px;
  //    font-size: 28px;
  //  }
  //}

  &-name {
    line-height: 1;
    font-size: 11px;
  }

  &-count {
    font-size: .9rem;
    line-height: .9rem;
    font-weight: bold;

    .app-spinner {
      margin-top: 3px;
      width: 12px;
      line-height: 1;
    }
  }
}

.bot-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 1rem;
  background-color: darken($dark, 2%);
  margin-bottom: 1rem;
  height: calc(100% - 1rem);
  border: 2px solid transparent;
  transition: all .3s ease;

  position: relative;

  &-head {
    display: flex;
    align-items: center;
    grid-column-gap: 15px;

    &-content {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      flex: 1;
      white-space: nowrap;
      // overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  &-version {
    width: 30px;
    height: 45px;
    text-align: center;
    line-height: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    &-value {
      position: relative;
      font-weight: 500;
      font-size: 16px;
      flex: 1;
      width: calc(100% + 2px);
      margin-left: -1px;
      margin-right: -1px;
      background-color: darken($dark, 2%);
      color: $dark;
      display: flex;
      align-items: center;
      justify-content: center;
      // line-height: 65%;
      // color: rgba(255,255,255, .5)

      &::before,
      &::after {
        position: absolute;
        content: '';
        top: 0;
        height: 16px;
        width: 5px;
        border-radius: 5px;
        background-color: #fff;
      }

      &::before {
        left: -7px;
      }

      &::after {
        right: -7px;
      }
    }

    i {
      font-size: 28px;
      color: #fff;
      height: 23px;
    }
  }

  &-comment {
    padding: .5rem 1rem;
    background-color: lighten($dark, 1%);
  }

  &:hover {
    transform: scale(1.02);
  }

  &-tags {
    margin-bottom: 1rem;
  }

  &-permissions {
    display: flex;
    justify-content: space-between;
    padding: 0 10px 10px;

    & .md-icon {
      display: block;
    }

    svg {
      font-size: 22px;
      fill: #ffffff;
    }
  }

  &-info {
    line-height: 1.2;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &-name {
    font-weight: bold;
    color: $blue;
    cursor: pointer;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &-connect {
    //font-size: 11px;
    &-info {
      display: flex;
      align-items: flex-start;

      &:not(:last-child) {
        margin-bottom: 4px;
      }
    }

    &-badge {
      background-color: lighten($dark, 5%);
      padding: 1px 3px;
      // width: 24px;
      flex: 0 0 24px;
      max-width: 24px;
      border-radius: 3px;
      font-style: normal;
      text-align: center;
      font-family: monospace;
      margin-right: 5px;
    }
  }

  &-status {
    color: #666;
  }

  &-select {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: darken($dark, 2%);
  }

  &-top {
    display: flex;
    align-items: center;
  }

  &-icon {
    flex: 0 0 40px;
    max-width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    &::before {
      position: absolute;
      content: '';

      top: 0;
      left: 0;

      width: 14px;
      height: 14px;
      border-radius: 50%;
    }

    & .anticon {
      font-size: 28px;
    }
  }

  &-country {
    display: flex;
    align-items: center;

    &-image {
      width: 40px;
      height: 40px;
      background-repeat: no-repeat;
      background-position: center;
      background-size: 18px;
    }

    span {
      flex: 1;

      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  &-actions {
    display: flex;
    justify-content: space-between;

    &-col {
      flex: 1;
      display: flex;

      &:last-child {
        justify-content: flex-end;
      }
    }
  }

  &-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &:hover {
      color: $blue;
    }

    &-more {
      background-color: lighten($dark, 5%);
      border-radius: 3px;

      &:hover {
        color: inherit;
        background-color: $dark;
      }
    }

    & .anticon {
      font-size: 20px;
    }
  }

  &-like {
    color: $red;
  }
}

.bot-item.online {
  .bot-item-icon {
    &::before {
      background-color: $green;
    }
  }

  .bot-item-status {
    color: $green;
  }

  &-version {
    i {
      color: $blue;
    }

    &-value {
      background-color: $blue;

      &::before,
      &::after {
        background-color: $blue;
      }
    }
  }

  &-icon::before {
    background-color: $green;
  }

  &-status,
  &-connect-last {
    color: $green;
  }
}

.offline {
  .bot-item-icon {
    &::before {
      background-color: $yellow;
    }
  }

  .bot-item-status {
    color: $yellow;
  }
}

.uninstalled {
  .bot-item-icon {
    &::before {
      background-color: $red;
    }
  }

  .bot-item-status {
    color: $red;
  }
}

.ant-layout-header {
  line-height: normal !important;
}

.commands-menu {
  padding: 1rem 0.25rem;

  & .ant-btn {
    margin: 0 !important;
    padding: 0 1rem !important;
    height: 30px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    color: inherit;

    & .anticon {
      flex: 0 0 20px;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    &-disabled {
      display: none;
    }
  }
}

.commands-modal {
  & .ant-form {
    &-item {
      margin-bottom: .5rem;
    }
  }

  & .ant-modal {
    &-confirm {
      &-content {
        margin: 0 !important;
        padding-top: 1rem;
      }
    }

    &-body {
      padding: 0
    }
  }
}

.bots-filter {
  padding: 15px 15px 0;
}

.inject {
  background-color: #161616;

  &-card {
    padding: 1rem;
    background-color: darken($dark, 2%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  &-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    overflow: hidden;

    h2 {
      margin: 0;
    }
  }

  &-data {
    display: flex;
    flex-direction: column;
    grid-column-gap: 5px;
  }

  &-action {
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;

    .ant-btn {
      text-align: left;
    }
  }

  &-app {
    display: flex;
    align-items: center;
    grid-column-gap: 5px;

    &-name {
      span {
        color: rgba(255, 255, 255, .5)
      }
    }
  }

  &-body {
    padding: .5rem 1rem;
  }

  &-name {
    font-family: monospace;
    color: rgba(255, 255, 255, .5);
    font-size: .8rem;
  }

  &-actions {
    padding: .5rem 1rem;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
  }

  &-data {
    &-inner {
      .ant-input-group {
        margin-bottom: 5px;

        input {
          border-radius: 0;
        }

        .ant-btn {
          border-top-left-radius: 0;
          border-bottom-left-radius: 0;
        }
      }
    }
  }
}

.app-icon {
  background-color: rgba(140, 140, 140, 0.5);
  -webkit-background-size: contain;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  flex: 0 0 16px;
  max-width: 16px;
  width: 16px;
  height: 16px;
}

.injection {
  padding: 10px 0;

  &-info {
    &-type {
      flex: 0 0 16px;
      max-width: 16px;
      height: 16px;

      .type-icon {
        font-size: 15px;
        color: $blue;
        line-height: 16px;
      }
    }
  }

  &-slider {
    position: relative;
    cursor: move;
  }

  h3 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: .5rem;
    color: #a0a0a0;

    span {
      //font-weight: normal;
      margin-left: 3px;
      color: #c0c0c0;
      font-size: .7rem;
      padding: 0 3px;
      background-color: #444;
      border-radius: 3px;
    }
  }

  &-info {
    display: flex;
    align-items: center;
    grid-column-gap: 5px;
    //pointer-events: none;
  }

  &-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
  }

  &-inner {
    display: flex;
    //flex-direction: column;
    align-items: center;
    grid-column-gap: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
  }

  &-type {
    width: 16px;
    height: 18px;
    color: lighten($blue, 15%);

    & .anticon {
      display: block;
    }
  }

  &-app {
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;

    &-name {
      display: inline-block;
      font-size: 12px;
      line-height: 1.2;
      //text-align: center;
      //pointer-events: none;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  &-tooltip-inner {
    font-size: .8rem;

    span {
      text-transform: capitalize;
    }
  }

  &-inner {
    &.clicked-data {
      color: $green;
    }

    &.has-data {
      cursor: pointer;
      color: $red;

      & .injection-app-name {
        font-weight: bold;
        animation-name: inject-has-data;
        animation-iteration-count: infinite;
        animation-direction: alternate;
        animation-duration: 1s;
        animation-timing-function: ease-in-out;

        @keyframes inject-has-data {
          from {
            color: #ffffff;
          }

          to {
            color: #ff0000;
          }
        }
      }
    }
  }
}

.botinfo {
  &-flag {
    max-width: 16px;
    margin-left: 3px;
  }

  &-icon {
    font-size: 1.5em;
    color: $green;
  }

  &-list {
    margin: 0;
    padding: 0;
    list-style: none;

    &-item {
      display: flex;
      align-items: center;
      font-weight: 300;
      border-bottom: 1px solid lighten($dark, 5%);

      &-span {
        padding: 3px 7px;
        flex: 1;

        &.span-flex {
          display: flex;
          align-items: center;
        }

        & .ant-space > .ant-space-item {
          line-height: 1;
        }
      }

      b {
        font-weight: 500;
        letter-spacing: -.5px;
      }
    }
  }
}

.permissions {
  svg {
    font-size: 18px;
    fill: #444;
  }
}

.botinfo {
  &-info {
    margin: 1rem 0;
  }

  &-table {
    text-align: left;
    width: 100%;
    border-collapse: collapse;

    caption {
      font-weight: bold;
      caption-side: top;
      color: #fff;
      text-transform: uppercase;
    }

    th,
    td {
      padding: 10px;
    }

    td {
      color: lighten($dark, 40%);
      font-size: .8rem;
      padding-top: 5px;
      padding-bottom: 5px;
    }

    th {
      border-bottom: 1px solid lighten($dark, 6%);

      & .anticon svg {
        width: 1.6rem;
        height: 1.6rem;
        fill: $blue
      }

      &.disabled {
        opacity: .3;

        & .anticon svg {
          fill: #fff;
        }
      }
    }
  }
}

.menu-item-command {
  & .anticon {
    font-size: 1.2rem;
  }
}

.code {
  font-family: monospace;
  font-size: 11px;
  max-width: 300px;
  color: $green;
  padding: 5px;
  background-color: lighten($dark, 4%);
  white-space: pre;
  overflow-y: auto;
}

.command {
  &-span {
    color: #777;
  }

  &-processed {
    color: $green;
  }
}

.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: -6px;
}

.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
  background-color: $blue;
  width: 6px;
  height: 6px;
}

.swiper {
  &-container {
    padding-bottom: 10px;
  }

  &-button {
    &-prev,
    &-next {
      padding: 0;
      width: 20px;
      height: 20px;
      line-height: 16px;
      top: 0;
      margin-top: 0;
      z-index: 11;

      &::after {
        font-size: 16px;
        font-weight: bold;
        color: $blue;
      }
    }

    &-prev {
      left: 0px;
    }

    &-next {
      right: 0px;
    }
  }
}

.sim-card {
  display: flex;
  cursor: pointer;
  height: 100%;

  &:hover {
    & .sim-card-inner {
      background-color: rgba($blue, .2);
    }
  }

  &.disabled {
    opacity: .5;
    color: #c0c0c0
  }

  &-inner {
    flex: 1;
    display: flex;
    background-color: transparent;
    padding: .5rem;
    border-radius: 3px;
    transition: all .2s ease;
  }

  &-icon {
    flex: 0 0 28px;
    max-width: 28px;
    height: 28px;

    & .anticon svg {
      width: 28px;
      height: 28px;
    }
  }

  &-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding-left: 5px;
  }

  &-name {
    font-weight: bold;
  }

  &-provider {
    font-size: .7rem;
    margin-top: 3px;
    color: rgba(255, 255, 255, .5)
  }

  &-radio {
    display: none;

    &:checked {
      & ~ .sim-card-inner {
        background-color: $blue;
      }
    }
  }
}

.menu-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  color: $blue;
  margin-right: 5px;
  font-size: 14px;

  i, i::before {
    display: block;
    height: 10px;
    line-height: 10px;
  }

  &-list {
    height: 0; // 82px for transition
    transition: all .4s ease-in-out;
    overflow: hidden;

    .menu-link {
      //padding: 2px 5px;
      font-size: 13px;
      line-height: 1;
      margin-bottom: 2px;
      height: 30px;
    }
  }
}

.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected,
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-danger.ant-menu-item-selected {
  background-color: transparent
}

.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon,
.ant-menu-dark .ant-menu-item-selected .anticon {
  color: rgba(255, 255, 255, .65);
}

.ant-menu-dark .ant-menu-item-selected .ant-menu-item-icon + span,
.ant-menu-dark .ant-menu-item-selected .anticon + span {
  color: rgba(255, 255, 255, .65);
}

.table-paragraph .ant-skeleton-paragraph {
  margin-bottom: 0;
}

.ant-table {
  background-color: lighten($dark, 5%) !important;

  &-title {
    font-weight: bold;
    font-size: 1rem;
    //text-transform: capitalize;
    background-color: $dark;
    text-transform: uppercase;
    color: $blue;
  }
}

.select-tags {
  & .ant-select-selection-item {
    background-color: $blue;
  }
}

.ant-table-thead > tr > th {
  background: lighten($dark, 5%) !important;
  border-bottom-color: lighten($dark, 10%);
}

.ant-table-tbody {
  & > tr {
    & > td {
      background: $dark;
      border-bottom-color: lighten($dark, 10%);
    }

    &:hover > td {
      background: lighten($dark, 3%) !important;
    }
  }
}

.fm-wrapper {
  position: relative;

  .fm-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba($dark, .9);

    padding-top: 100px;

    display: flex;
    justify-content: center;
  }
}

.fm-btns {
  .ant-btn {
    margin-right: 5px;
  }
}

.error-message {
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background-color: $black;
}

.fm-text-viewer {
  width: 100%;
  padding: 5px;
  background-color: transparent;
  border: 1px solid lighten($dark, 5%);
  outline: none;
  margin-top: 15px;
}

.fm-table-downloaded {
  width: 100%;

  td, th {
    white-space: normal;
    padding: 5px 10px;
  }

  th {
    background-color: lighten($dark, 4%);
  }

  tr:nth-of-type(even) td {
    background-color: lighten($dark, 2%);
  }
}

.fm-table-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-side {
  flex: 0 0 200px;
  max-width: 200px;
  border-right: 1px solid lighten($dark, 6%);
  position: relative;
}


.ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle {
  margin-right: 5px;
}

.fm-tree {
  //max-height: 700px;
  //overflow-y: auto;

  &-title {
    padding: 8px;
    background-color: #232833;
    border-bottom: 1px solid #2e3342;
    margin-bottom: 15px;
  }
}

.fm-explorer {
  flex: 0 0 calc(100% - 200px);
  max-width: calc(100% - 200px);
  min-height: 400px;
}

.fm-content {
  display: flex;
  grid-column-gap: 15px;

  &-body {
    overflow: hidden;
    text-overflow: ellipsis;

    flex: 0 0 300px;
    max-width: 300px;
    white-space: nowrap;
  }

  &-flex {
    display: flex;
    grid-column-gap: 15px;
    align-items: center;
  }

  &-icon {
    flex: 0 0 30px;
    max-width: 30px;
  }

  &-inner {
    position: sticky;
    top: 0;
    left: 0;
  }
}

.fm-iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.fm-pdf {
  overflow: scroll;
  max-height: 400px;
}

.fm-file {
  &-preview {
    cursor: pointer;

    &-container {
      img, svg {
        max-width: 100%;
      }
    }
  }
}

.fm-textarea {
  width: 100%;
}

.fm-modal {
  .ant-modal {
    &-body {
      padding: 45px 15px 15px;
    }
  }
}

.fm-player {
  width: 100%;
}

//.quickAccess {
//  .anticon {
//    &.hide {
//      color: $green;
//    }
//  }
//}
//
//.anticon {
//  position: relative;
//  &.hide {
//    &::after {
//      position: absolute;
//      content: '+';
//      font-family: monospace;
//      height: 5px;
//      width: 5px;
//      bottom: 2px;
//      right: 2px;
//      transform: rotate(45deg);
//      font-size: 21px;
//    }
//  }
//}

.ant-select-selector,
.panel-select,
.ant-input,
.ant-input-affix-wrapper {
  border-color: lighten($dark, 10%) !important
}

.ant-select-dropdown,
.ant-picker-panel-container {
  background-color: $dark;
}

.ant-pagination-item,
.ant-pagination-prev .ant-pagination-item-link,
.ant-pagination-next .ant-pagination-item-link,
.ant-pagination-prev .ant-pagination-item-link,
.ant-pagination-next .ant-pagination-item-link {
  border-color: #2e3342;
}

.ant-pagination-item-active {
  border-color: $blue;
}

.ant-checkbox {
  &-inner {
    border-color: lighten($dark, 5%);
  }
}

.commands-menu {
  columns: 2;
  column-span: 0;
}

.ant-picker-cell-disabled::before {
  background-color: lighten($dark, 10%);
}

[class*="ant-layout"] {
  background-color: $dark;
}

.ant-modal-content,
.ant-modal-header,
.ant-modal-body,
.ant-menu.ant-menu-dark {
  background-color: $dark;
}

.ant-layout-content {
  background-color: #161616;
}

.ant-layout-footer {
  background-color: #161616;
}

.site-layout {
  background-color: #161616;

  & .site-layout-background {
    background-color: $dark;
  }
}

.ant-form-item {
  margin-bottom: 1rem;
}

.PhoneInputCountrySelect {
  color: #333;
}

.PhoneInputInput {
  outline: none;
}

.modal-injects {
  & .ant-modal-body {
    padding: 0 !important;
  }

  & .ant-modal-header {
    padding-left: 8px;
  }
}

.ant-modal .ant-table.ant-table-bordered .ant-table-container {
  border-color: #303030;
  border-style: solid;
  border-width: 0 0 0 1px;
}

.ant-modal .ant-table.ant-table-small thead > tr > th {
  background-color: #272727;
}

.trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ant-menu-inline-collapsed {
  & .panel-menu-item {
    padding: 0 30px !important;

    & .anticon {
      width: auto;
      height: auto;
      background-color: transparent;
    }
  }
}

.ant-tooltip-inner,
.ant-tooltip-arrow-content::before {
  background: $blue;
}

.app-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column-gap: 15px;

  i {
    animation-name: spin;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    color: $blue;

    @keyframes spin {
      from {
        transform: rotate(0deg)
      }
      to {
        transform: rotate(360deg)
      }
    }
  }
}

.menu {
  &-logo {
    align-items: center;
    display: flex;
    font-size: 1.4rem;
    font-weight: 100;
    height: 64px;
    padding: 0 1rem;

    i {
      color: $blue;
    }

    sup {
      color: rgba(255, 255, 255, .5);
      font-size: .8rem;
      position: relative;
      top: -12px;
      margin-left: 5px;
    }

    &-title {
      font-size: 28px;
      line-height: 40px;
      font-weight: normal;
      font-family: "Clarendon LT Std", sans-serif;
    }

    &-subtitle {
      font-size: 10px;
      line-height: 9px;
      font-family: "Mulish", sans-serif;
    }

    .ant-divider-inner-text {
      line-height: 1;
      padding-left: 12px;
      padding-right: 12px;
    }
  }

  &-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, .5);
    padding: .4rem 1rem;

    &-counter {
      background-color: rgba(lighten($green, 20%), .1);
      padding: 0 5px;
      border-radius: 5px;
      font-size: .8rem;
      color: rgba(lighten($green, 50%), .7);
    }

    &.active {
      background-color: darken($blue, 20%) !important;
      color: #fff;

      & .menu-link-counter {
        background-color: darken($blue, 10%);
        color: white;
      }

      & .anticon {
        color: #fff !important;
        background-color: darken($blue, 10%);
      }
    }

    &:hover {
      color: #fff;
      background-color: rgba($blue, .2);

      & .anticon {
        color: #fff;
      }
    }

    & .anticon {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, .5);
      transition: all .3s ease;

      background-color: lighten($dark, 5%);
      width: 35px;
      height: 35px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &-group {
      display: flex;
      align-items: center;
    }

    &-counter {
      //background-color: $blue;
      //border-radius: 5px;
      //margin-left: 5px;
      //padding: 2px 3px;
      //font-size: 11px;
      //font-weight: bold;
    }
  }
}

.filter {
  &-favorite {
    &.active {
      color: #f00;
    }
  }

  &-deleted {
    &.active {
      color: #ff6100;
    }
  }

  &-blacklisted {
    &.active {
      color: #7e00ff;
    }
  }
}

.log-data {
  margin: 0;
  padding: 0;
  list-style: none;

  &-item {
    display: flex;
    margin-bottom: 5px;
  }

  &-span {
    padding: 1px 5px;

    &:first-child {
      background-color: lighten($dark, 25%);
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
    }

    &:last-child {
      background-color: lighten($dark, 8%);
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
      font-family: monospace;
    }
  }
}

.stat {
  &-card {
    background-color: darken($dark, 2%);
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    height: calc(100% - 1rem);
    margin-bottom: 1rem;

    position: relative;

    &-chart {
      flex-direction: column;
    }

    &.has-new-data.lost {
      & .stat-value sup {
        color: $red !important;
      }
    }

    &.has-new-data::before,
    &.has-new-data::after {
      position: absolute;
      content: '';
      top: 1rem;
      right: 1rem;
    }

    &.has-new-data::before {
      width: 30px;
      height: 30px;
      background-color: lighten($dark, 3%);
      background-image: url("data:image/svg+xml,%3Csvg enable-background='new 0 0 24 24' id='Layer_1' version='1.0' viewBox='0 0 24 24' xml:space='preserve' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cpolyline fill='none' points='5,6 18,6 18,19 ' stroke='%234aac16' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline fill='none' stroke='%234aac16' stroke-miterlimit='10' stroke-width='2' x1='4.8' x2='18' y1='19.2' y2='6'/%3E%3C/svg%3E");
      -webkit-background-size: 24px;
      background-size: 24px;
      background-position: calc(100% - 2px) 2px;
      background-repeat: no-repeat;
      border-radius: 5px;
    }

    &.has-new-data.lost::before {
      background-image: url("data:image/svg+xml,%3Csvg enable-background='new 0 0 24 24' id='Layer_1' version='1.0' viewBox='0 0 24 24' xml:space='preserve' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cpolyline fill='none' points='5,6 18,6 18,19 ' stroke='%23a33' stroke-miterlimit='10' stroke-width='2'/%3E%3Cline fill='none' stroke='%23a33' stroke-miterlimit='10' stroke-width='2' x1='4.8' x2='18' y1='19.2' y2='6'/%3E%3C/svg%3E");
      transform: rotate(180deg);
    }
  }

  &-head {
    padding: .5rem 1rem;
    text-align: center;

    h2 {
      margin: 0;
    }

    h4 {
      color: rgba(255, 255, 255, .5);
      font-weight: 300;

      b {
        font-weight: 500;
      }
    }
  }

  &-color {
    flex: 0 0 48px;
    max-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background-color: #0d4980;
  }

  &-body {
    padding: .7rem 1rem;
    flex: 0 0 calc(100% - 48px);
    max-width: calc(100% - 48px);

    &-inner {
      flex: 1;
      max-width: 100%;
    }
  }

  &-chart {
    //display: flex;
    //justify-content: center;
    padding: 1rem;
  }

  &-value {
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;

    & sup {
      font-weight: normal;
      color: $green;
      vertical-align: middle;
      font-size: .9rem;
    }
  }

  &-name {
    position: relative;
    color: rgba(255, 255, 255, .4);
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    &::before {
      position: absolute;
      content: '';
      top: -4px;
      left: 0;
      width: 15px;
      height: 1px;
      background-color: rgba(255, 255, 255, .4);
    }
  }
}

.ant-select-item.ant-select-item-group {
  display: none;
}

.table-col {
  &-item {
    word-break: break-word;

    h3 {
      margin-bottom: 0;
      font-size: inherit;
      font-weight: bold;
    }

    &:first-child {
      display: none;
    }

    &:last-child {
      font-family: monospace;
    }
  }
}

.dynamic-delete-button {
  position: relative;
  top: 4px;
  margin: 0 8px;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
}

.dynamic-delete-button:hover {
  color: #777;
}

.dynamic-delete-button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.scrollToTop {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  transform: scale(1.5)
}

figure.worldmap__figure-container {
  background-color: transparent !important;

  path {
    stroke: #fff !important;
  }
}

.quickAccess {
  svg {
    fill: #ffffff;
    cursor: pointer;
    width: 18px;
    height: 18px;
  }
}

.md-icon {
  width: 20px;
  height: 20px;

  &-custom-size {
    width: 22px !important;
    height: 22px !important;
    margin-top: -2px;
  }
}

.custom-select {
  & .css-1s2u09g-control,
  & .css-1pahdxg-control {
    background-color: $dark !important;
    border-color: lighten($dark, 10%) !important;
  }

  & .css-1okebmr-indicatorSeparator {
    background-color: lighten($dark, 10%) !important;
  }

  & .css-qc6sy-singleValue {
    color: #fff;
  }

  & .css-26l3qy-menu {
    background-color: $dark;
  }
}

.toggle-tag {
  padding: .3rem 1rem;
  margin-bottom: 1rem;
  font-size: inherit;
  background-color: lighten($dark, 3%);

  &.ant-tag-checkable-checked {
    border-color: $blue;
    background-color: $blue;

    & .toggle-tag-counter {
      background-color: darken($blue, 10%);
      color: white;
    }
  }

  &-counter {
    padding: 0 5px;
    background-color: lighten($dark, 10%);
    border-radius: 3px;
  }
}

.bot-comment {
  background-color: lighten($dark, 2%);

  & .ant-collapse {
    &-item {
      border-bottom-color: lighten($dark, 8%)
    }

    &-content-box {
      color: lighten($dark, 40%)
    }
  }
}

.keylogger-radio {
  & .ant-radio-button-wrapper {
    border-color: lighten($dark, 10%);

    &:not(:first-child):before {
      background-color: lighten($dark, 10%);
    }
  }
}

.log-comment {
  padding: .5rem;
  color: lighten($dark, 40%);
  background-color: lighten($dark, 1%);
  font-size: 11px;
  margin-top: 5px;
}

.icon-bot {
  font-size: 20px;
  display: block;
}

.icon-button {
  cursor: pointer;
}

.icon-flex {
  display: flex;
}

.icon-type {
  color: lighten($blue, 10%);
  font-size: 15px;
}

.swiper-pagination {
  z-index: 5 !important;
  bottom: -5px !important;

  &-bullet {
    background-color: darken($blue, 10%);
  }
}

.table-head-sorter {
  cursor: pointer;
}

.charts-loading-container {
  background-color: lighten($dark, 3%) !important;
}

.css-tjxl2d-Control {
  height: 32px !important;
}

.css-319lph-ValueContainer {
  padding: 1px 8px !important;
}

.css-tlfecz-indicatorContainer {
  padding: 5px 8px !important;
}

.command {
  &-item {
    display: flex;
    align-items: center;
    grid-column-gap: 10px;
    flex-wrap: wrap;

    &.form {
      margin-bottom: 15px;
    }
  }

  &-save {
    display: flex;
    justify-content: flex-end;
  }

  &-name {
    flex: 1;
    color: #c0c0c0;

    & .anticon {
      font-size: 20px;
    }
  }

  &-form-item {
    margin-bottom: 0;

    & .ant-form-item-control-input-content {
      display: flex;
    }
  }

  &-form {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 37px;

    & .ant-form-item-label {
      padding-bottom: 0;
    }
  }
}

.user-info {
  margin: 0;
  padding: 0;
  list-style: none;

  li {
    padding: 8px 0;

    &:not(:last-child) {
      border-bottom: 1px solid rgba(180, 180, 180, .15);
    }
  }
}

.custom-icon {
  font-size: 20px;
  // cursor: pointer;
}

.sub-info-icon {
  font-size: 20px;
}

#search_logs_type {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#search_logs_type .ant-checkbox-wrapper + .ant-checkbox-wrapper {
  margin-left: 0;
}

.stat {
  &-prefix {
    margin-right: 5px;
    font-size: 24px;
    vertical-align: middle;
  }

  &-group {
    margin-bottom: 2rem;

    &-filter {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 1rem;

      &-inner {
        padding: 1rem;
        background-color: darken($dark, 2%);
        display: flex;
        grid-column-gap: 15px;
      }
    }
  }

  &-etc {
    .ant-statistic-content {
      color: #c9c637;
    }
  }

  &-group {
    background-color: $dark;
    padding: 1rem;
  }

  &-online {
    .ant-statistic-content {
      color: $blue;
    }
  }

  &-offline {
    .ant-statistic-content {
      color: $yellow;
    }
  }

  &-new {
    .ant-statistic-content {
      color: #177ddc;
    }
  }

  &-dead {
    .ant-statistic-content {
      color: $red;
    }
  }

  &-no-permissions {
    .ant-statistic-content {
      color: #a0a0a0;
    }
  }

  &-deleted-app {
    .ant-statistic-content {
      color: $red;
    }
  }

  &-card {
    .ant-card-body {
      padding: 1rem;
    }

    &-style {
      margin-bottom: 15px;
    }
  }

  &-block {
    background-color: $dark;
  }
}

.leaflet {
  &-tile {
    filter: invert(94%) !important;
  }

  &-container {
    height: 100%;

    .bot-pin {
      border-radius: 50%;
      background-color: $blue;
      border: 2px solid #000;
    }
  }
}