@import "variable";
// All license page css are here

.settings-main-content-wrap {
  padding: 20px;
  background: $dash-white;
  border-radius: 8px;
  overflow: hidden;

  h3 {
    margin: 0;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;

    &::before {
      position: absolute;
      left: -20px;
      right: -20px;
      bottom: -2px;
      content: "";
      background: #eff1f5;
      height: 1px;
    }
  }
}

.dnxte_dashb_license_status {
  h4 {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: $dash-main-title;
    position: relative;
    padding-bottom: 20px;

    &::before {
      position: absolute;
      left: -20px;
      right: -20px;
      bottom: -2px;
      content: "";
      background: #eff1f5;
      height: 1px;
    }

    .dnxte_dashb_license_stat_check {
      display: inline-block;
      background: #eff1f5;
      padding: 4px 8px;
      color: #7d89b0;
      border-radius: 4px;
      margin-left: 4px;
    }

    .dnxte_dashb_license_days_left {
      font-size: 14px;
      font-weight: 400;
      line-height: 20px;
      color: $dash-pra;
      text-align: center;
    }
  }

  p {
    margin: 0;
  }
}

// License Key
.settings-main-content-wrap {
  .dnxte_dashb_license_key_wrap {
    display: flex;
    position: relative;
    margin-top: 40px;

    &::before {
      position: absolute;
      left: -20px;
      right: -20px;
      top: -20px;
      content: "";
      background: #eff1f5;
      height: 1px;
    }

    .dnxte_dashb_license_keyleft {
      flex-basis: 8%;

      .dnxte_dashb_license_inner {
        display: flex;

        .dnxte_dashb_tool_tip {
          font-size: 14px;
          line-height: 16px;
          font-weight: 400;
          color: #5d6b98;

          svg {
            font-size: 20px;
            margin-left: 8px;
          }
        }
      }
    }

    .dnxte_dashb_license_keyright {
      display: flex;
      flex-direction: column;
      flex-basis: 27%;

      .dnxte_dashb_licensetype_box {
        border-width: 1px;
        border-style: solid;
        border-color: #dcdfea;
        border-radius: 4px;
        padding: 3px 16px;
        margin-bottom: 12px;

        &::placeholder {
          color: #7d89b0;
        }

        &:focus {
          border-color: #7a5af8;

          &::placeholder {
            color: $dash-active;
          }
        }
      }

      button[type="button"] {
        background: $dash-active;
        color: $dash-white;
        padding: 11px 16px;
        text-transform: capitalize;
        cursor: pointer;
        border: none;
        border-radius: 4px;
        margin-bottom: 10px;
      }

      .dnxte_dashb_license_pra {
        font-size: 12px;
        font-weight: 500;
        line-height: 120%;
        color: $dash-pra;
        text-align: center;
        margin: 0;

        a {
          color: $dash-active;
          text-decoration: none;
        }
      }
    }
  }

  // license key eye css
  .dnxte_dashb_key {
    .license-field {
      position: relative;

      .license-visibility {
        position: absolute;
        right: 10px;
        top: 8px;
      }
    }
  }
}

// license key area css
.settings-main-content-wrap {
  .dnxte_dashb_license_stat_check {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    padding: 3px 8px;
    border-style: solid;
    border-width: 1px;

    &.check_success {
      background: #e6fcf5;
      border-color: #12b886;
      color: $dash-success;
    }

    &.check_error {
      background: #ffe3e3;
      border-color: #e03131;
      color: #fa5252;
    }
  }

  .dnxte_dashb_license_days_left {
    color: $dash-success !important;
  }

  // Deactive area and license key area css
  .dnxte_dashb_license_key_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9fb;
    padding: 15px;
    border-radius: 4px;
    position: relative;
    max-width: 622px;
    width: 100%;
    gap: 10px;

    .dnxte_dashb_license_key_inner_left {
      display: flex;
      align-items: center;
      gap: 25px;
      width: 100%;

      .dnxte_dashb_key_wrap {
        svg {
          font-size: 40px;
        }
      }

      .dnxte_dashb_key {
        width: 100%;

        .dnxte_dashb_key_minititle {
          font-size: 12px;
          line-height: 16px;
          font-weight: 400;
          color: $dash-pra;
          text-transform: capitalize;
          margin: 0;
        }

        .license-visibility {
          cursor: pointer;

          > svg {
            font-size: 16px;
          }
        }

        input[type="password"],
        input[type="text"] {
          font-size: 12px;
          line-height: 14px;
          color: $dash-main-title;
          // border: none;
          border-width: 1px;
          border-style: solid;
          border-color: #dcdfea;
          outline: none;
          background: none;
          padding: 0 10px;
          width: 100%;
          height: 32px;

          &:focus {
            // border: none;
            border-color: $dash-active-two;
            // border: 1px solid $dash-active-two;
            outline: none;
            box-shadow: none;

            &::placeholder {
              color: $dash-main-title;
            }
          }
        }

        .dnxte_dashb_key_added_date {
          font-size: 12px;
          line-height: 14px;
          font-weight: 500;
          color: $dash-main-title;
          margin: 0;
        }
      }
    }

    .dnxte_dashb_license_key_inner_right {
      display: flex;
      column-gap: 10px;
      align-items: center;

      button {
        display: inline-block;
        font-size: 12px;
        font-weight: 600;
        line-height: 14px;
        padding: 8px 14px;
        border-radius: 2px;
        text-decoration: none;
        cursor: pointer;

        &:focus {
          box-shadow: none;
        }

        &:disabled {
          cursor: not-allowed;
        }

        &.deactivate {
          color: $dash-warning;
          border: 1px solid #e03131;
          background: #ffe3e3;
        }

        &.activate {
          color: #7a5af8;
          border: none;
          border-radius: 2px;
          padding: 9px 22px;
          background-color: #ebe9fe;

          &:not(:disabled) {
            color: $dash-white;
            background: $dash-active;
          }
        }
      }
      > a {
        text-decoration: none;
        color: $dash-main-title;
        &:hover {
          text-decoration: underline;
          color: $dash-active;
        }
      }
    }
  }
}

//
.settings-content-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;

  .license_left_menu {
    flex-basis: 20%;

    ul {
      background: $dash-white;
      padding: 16px;
      border-radius: 8px;
      margin-top: 0;

      li {
        display: flex;
        background: $dash-white;
        margin-bottom: 8px;
        border-radius: 4px;
        position: relative;
        transition: all 0.5s;

        a {
          font-size: 14px;
          line-height: 20px;
          font-weight: 400;
          padding: 8px;
          color: $dash-side-nav;
          text-decoration: none;
          text-decoration: none;
          width: 100%;
          transition: all 0.5s;

          &:focus {
            box-shadow: none;
            outline: none;
          }
        }

        &.active {
          background: #f2effe;

          &::before {
            position: absolute;
            content: "";
            left: 0;
            top: 0;
            bottom: 0;
            border-left: 3px solid #7a5af8;
            border-radius: 20px 0 0 20px;
          }

          a {
            color: $dash-main-title;
            font-weight: 500;
          }
        }

        &:hover {
          background: #f2effe;
        }
      }
    }
  }

  .settings-main-content-wrap {
    // flex-basis: 80%;
    flex-basis: 100%;
  }
}
