#wpwrap {
  background-color: #f1f1f1;
}

/* progress bar */

.progress-container {
  width: 100%;
  /* max-width: 400px; */
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #007aff;
  text-align: center;
  transition: width 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-label {
  color: white;
  font-weight: bold;
}

.text-overflow-wrap{
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 90%;
}

.item-count {
  background-color: #007aff33;
  border-radius: 15px;
  padding: 0px 8px;
  font-weight: 400;
  font-size: 0.825rem;
}

.replacement input[type="text"]:focus {
  box-shadow: unset !important;
  outline: 0px solid transparent !important;
}

.linksy-datatable-table{
  min-width: 900px;
  
  .table-row{
    background: #fff;
  }
  tbody td{
    background: #ffffff;
  }
}

.search-mode-bar{
  width: 140px;
  min-width: unset !important;

  &:focus-within{
    width: 40%;
    min-width: inherit !important;
  }
}

.dropdown-search-container{
  width: 100%;
}

#database-replace, #anchor-replace, #link-replace, #title-replace, #url-replace {
  .item-direct-links {
    display: flex;
    gap: 5px;
    visibility: hidden;
    bottom: -25px;
    padding: 2px 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 2px #cecece;

    a {
      font-weight: 400;
      font-size: 14px;
      display: inline-block;
      text-decoration: none;

      &:not(:hover) {
        color: #000000;
      }
    }
  }
  
  .item-title:hover .item-direct-links {
    visibility: visible;
  }

  .columns {
    .column {
      border-radius: 8px;
      background: #f6f8fa;
      border: 1px solid #dfdede;

      &.expanded{
        h4 {
          text-wrap: wrap;
          word-wrap: break-word;
          margin-top: 0;
          margin-bottom: 27px;
        }

        &:hover h4 {
          margin-bottom: 0;
        }

        .link-anchor-container {
          padding: 0.8rem;

          &:hover{
            background-color: #efefef;

            .item-links{
              display: flex;
            }
          }

          div a,
          h5 {
            word-wrap: break-word;
            word-break: break-word;
            white-space: break-spaces;
          }
        }
      
        .sticky-buttons-container {
          background-color: #f6f5f5;
          border-radius: 0 0 8px 8px;
        }
      }

      .column-name {
        border-bottom: 1px solid #dfdede;
      }

      .action-buttons {
        font-weight: 400 !important;
      }

      .column-name,
      .action-buttons {
        padding: 1rem;
      }

      .toggle-caret {
        left: 95%;
      }
    }
  }
}

#link-replace .sar-plain-table{
  .linksy-datatable-table{
    tbody td{
      width: 50%;
    }
  }
}
.sar-plain-table {
  .linksy-datatable-table{
    .first-column{
      width: 400px;
    }
    tbody td{
      &:has(.columns.w-100) {
        width: 50%;
      }
    }

    .sources-targets-container{
      .target-text{
        margin: 0;
        color: #353941;
        padding: 5px 20px;
        background: #eaf4ff;
        font-weight: 400;
      }
    }
  }
}

.linksy-page-header {
  .linksy-page-header-tabs {
    .linksy-tabbar li {
      white-space: nowrap;
    }
  }

  .linksy-tooltip [tooltip][flow^="left"]::after{
    top: 150px;
  }
}

.linksy-datatable table tbody tr {
  td {
    .url-container, .column-item-container{
      .item-links {
        position: absolute;
        display: none;
        z-index: 2;
        padding: 2px 10px;
        border-radius: 10px;
        background-color: #ffffff;
        box-shadow: 0 2px 2px #cecece;
        
        a, li {
          font-size: 14px;
          font-weight: 400;
          text-decoration: none;
    
          &:not(:hover) {
            color: #000000;
          }
        }
    
        .link {
          font-weight: 400;
          font-size: 14px;
          display: flex;
          gap: 3px;
          align-items: center;
          white-space: nowrap;
          text-decoration: none;
      
          &:not(:hover) {
            color: #000000;
          }
        }
      }
    }
  }
}

.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.is-disabled .btn-app {
  display: none;
}

.default-placeholder {
  padding: 8px !important;
  gap: 0.5rem !important;
}

.filter-search .default-placeholder {
  padding: 4px 5px !important;
}

.linksy-search.cancelable .cancelable-icon {
  font-size: 1.2rem;
}

.filter-search {
  border-radius: 5px;
  border: 1px solid #d8d8d8;
}

.search-option .linksy-dropdown,
.filter-search .linksy-dropdown {
  padding: 0 !important;
  border-right: 1px solid #d8d8d8 !important;
}

.linksy-dropdown:not(.options),
.replacement input,
.search-bar {
  height: 35px !important;
}

.linksy-dropdown .linksy-dropdown-input{
  padding: 0 !important;
}

.action-dropdown .linksy-dropdown-input div {
  justify-content: space-between;
}

.filter-contain-dropdown {
  &.rounded-end-0{
    .linksy-dropdown-input{
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }
  }
}

.search-option .linksy-dropdown .linksy-dropdown-body {
  min-width: 170px;
}

.action-dropdown .linksy-dropdown .linksy-dropdown-body,
.search-option .linksy-dropdown .linksy-dropdown-body {
  max-height: unset;
  min-width: 150px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.linksy-dropdown-body .dropdown-items-container ul li label {
  font-size: 0.875rem !important;
  text-wrap: nowrap !important;
}

.filter-search .linksy-dropdown-body .dropdown-items-container li span {
  text-align: left;
  width: 100%;
}

.filter-search .linksy-dropdown .linksy-dropdown-body {
  font-size: 0.8em;
  line-height: 1.2em;
}

.daterangepickerinput {
  max-width: 170px !important;
}

.linksy-dropdown .linksy-dropdown-body .item {
  text-align: left !important;
  padding: 8px !important;
}

.cat-dropdown .linksy-dropdown-input div {
  justify-content: space-between !important;
  width: 100%;
}

.cat-dropdown .linksy-dropdown-input div span {
  padding: unset !important;
}

.cat-dropdown .dropdown-items-container {
  margin-top: 10px;
}

.search-option .linksy-dropdown .linksy-dropdown-body,
.action-dropdown .linksy-dropdown .linksy-dropdown-body {
  font-size: 0.875rem;
  overflow: unset !important;
}

.items-column-actions{
  .default-placeholder{
    padding: 0 8px !important;
  }
}

.search-option .linksy-search input {
  padding-left: 0 !important;
}

.search-option .linksy-dropdown {
  display: flex;
  align-items: center;
}

.bg-none {
  background: none;
}

.btn-app i {
  margin-right: 5px;
}

.search-option .btn-app {
  border-radius: 0 5px 5px 0 !important;
}

.search-bar .btn-app:nth-child(2) {
  display: none;
}

.search-option .linksy-dropdown,
.search-option .linksy-search {
  align-items: center;
}

.linksy-search {
  min-width: 200px !important;
  padding-right: 8px !important;
  height: 35px !important;
}

.linksy-search input {
  border-radius: 0 !important;
}

.filter-reset i {
  font-size: 1.4rem;
}

button {
  transition: all 0.1s;
}

.search-item:first-child:hover button,
.search-item:first-child:hover {
  color: #007aff;
}

.action-dropdown .linksy-dropdown-body .item:not(:first-child):hover {
  color: initial !important;
}

.select-filter {
  width: 350px;
  min-width: 150px;
}

.cursor {
  cursor: pointer;
}

/* Data-table */
.linksy-datatable .filter-search {
  min-width: 50%;
}

.filter-search .linksy-search {
  display: flex;
  font-size: 0.7em;
  font-weight: normal;
}

.filter-search .linksy-search i {
  color: #007aff;
}

.tabbar {
  margin: 0;
  padding: 0;
  display: flex;
  position: relative;
  align-items: center;
}

.tabbar li {
  margin: 0 20px;
}

.tabbar li:first-child {
  margin-left: 0;
}

.tabbar li:last-child {
  margin-right: 0;
}

.tabbar li button {
  border: none;
  display: block;
  font-size: 24px;
  font-weight: 400;
  padding-bottom: 10px;
  background: transparent;
}

.tabbar li.active button {
  border-bottom: 3px solid #007aff;
  border-radius: 0;
}

.filters {
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.filters>div select,
.filters>div input,
.filters>div .cat-dropdown {
  max-height: 40px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  border: none;
  background-color: #fff;
}

.filters>div .cat-dropdown {
  min-width: 90px;
  padding: 11px 10px;
}

.filters>div span {
  font-size: 16px;
}

.filters>div input:focus {
  box-shadow: none;
}

.item-header {
  margin-top: -50px;
}

.tag {
  display: flex;
  padding: 5px 15px;
  margin-right: 20px;
  border-radius: 5px;
  justify-content: center;
  font-weight: 600;
  color: #000;
  width: 85px !important;
  max-height: 36px;
}

.source-tag {
  background: #ff660081;
}

.options a {
  width: 100%;

  &:hover {
    text-decoration: underline !important;
  }
}

.options .linksy-dropdown-body {
  min-width: unset;
}

.anchor-tag {
  background: #ffcc0081;
}

.link-container {
  .link-tag {
    background: #007bff7d;
    min-width: 85px;

  }
}

.link-tag-anchor,
.source-tag-text,
.anchor-tag-text {
  a {
    overflow-wrap: anywhere;
  }

  .fa-edit {
    display: none;
    cursor: pointer;
  }

  &:has(.fa-edit):hover {
    background-color: #f1f2f4;

    .fa-edit {
      display: inline;
    }
  }
}

.edit-button button {
  padding: 4px 11px;
  height: 35px;
}

.score {
  width: 28px;
  height: 28px;
  margin-left: 20px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

tbody td {
  white-space: nowrap;
}


.search-bar .linksy-btn-primary {
  border-radius: 0 4px 4px 0 !important;
}

/* Broken Link Tab */
#broken-links {
  .linksy-search {
    max-width: 315px;
    height: 35px;
  }

  .find-and-replace {
    max-width: 450px;
  }

  .broken-links-tabbar {
    display: flex;
    align-items: center;
    border-radius: 24px;
  
    ul {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      width: 100%;
      gap: 5px;
  
      li {
        box-shadow: 0px 1px 3px #d3cfcf;
        padding: 5px 0;
        margin: 0;
        border-radius: 24px;
        flex-grow: 1;
        min-width: 120px;
        cursor: pointer;
  
        label {
          border: none;
          display: block;
          font-size: 0.875rem;
          font-weight: 500;
          padding: 0;
          background: transparent;
        }
  
        .count {
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 0px 8px;
          height: 20px;
          border-radius: 50px;
          color: #000000;
          background-color: #cccccc70;
        }
  
        &.active {
          background-color: #ffffff;
          box-shadow: 0px 2px 2px #d3cfcf;
  
          label {
            color: #007aff;
          }
  
          .count {
            color: #ffffff;
            background-color: #007aff;
          }
        }
      }
    }
  }

  .search-option {
    .search-option-item {
      font-size: 1rem;

      label:hover {
        color: #007aff;
        text-decoration: underline;
      }
    }
  }

  .search-option .search-option-item,
  .link-options .link-option-item {
    &:not(:last-child) {
      border-right: 1px solid #000;
    }
  }

  .linksy-datatable-table{
    min-width: 1000px;
  }
  
  .linksy-datatable table tbody tr {
    &:last-child{
      td{
        padding-bottom: 30px;
      }
    }

    td {
      vertical-align: top;
      font-size: 18px;
    }

    .details-container{
      ul{
        margin-top: 30px;
        margin-bottom: 0;
      }
    }

    td:not(:last-child) {
      overflow-wrap: break-word;
      text-wrap: pretty;
    }

    td:last-child {
      width: max-content;
    }

    td:nth-child(1) {
      max-width: 480px;
      min-width: 450px;

      .url-container,
      .url-edit-form {
        max-width: 450px;
      }

      .url-edit-form {
        label {
          width: 70px;
        }
      }

      button {
        padding: 4px 11px;
        height: 35px;
      }
    }

    td:nth-child(1),
    td:nth-child(2) {
      &:hover {
        .item-links {
          display: flex;
        }
      }
    }

    td:nth-child(1),
    td:nth-child(3) {
      font-weight: 400;
    }

    td:nth-child(3) {
      max-width: 250px;
    }

    td:nth-child(4) {
      .http-status{
        border: 1px solid #cecece;
        max-width: fit-content;
        background-color: #ffffff;

        span{
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 90px;
        }
      }
    }
  }
}

.linksy-page-container{
  .content-box.right{
    background: linear-gradient(176.44deg, #5c8f91 2.92%, #275471 23.02%, #1d3557 42.98%, #0b132b 71.92%, #080f25 99.66%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    overflow: hidden;

    .sidebar-tmls-image-section {
      flex: 1 1 300px;
      display: flex;
      background:  url('https://linksyai.com/wp-content/uploads/2025/04/link-building-illustration.jpg') center no-repeat;
      background-size: cover;
      justify-content: center;
      background-color: #fff;
    }
    .sidebar-tmls-text-section {
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      max-width: 400px;
    }
    .sidebar-tmls-text-section h1 {
      font-size: 1.8em;
      margin: 0 0 15px;
      color: white;
      font-weight: 600;
    }
    .sidebar-tmls-button {
      background-color: #ffcc00;
      color: #000;
      padding: 12px 25px;
      border: none;
      border-radius: 25px;
      font-weight: bold;
      font-size: 1em;
      cursor: pointer;
      transition: all 0.3s ease;
      width: fit-content;
    }
    .sidebar-tmls-button:hover {
      background-color: #ffd60a;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
  }
}
/* Rescan Links */
#rescan-links{
  min-height: 80vh;

  .content-box.left{
    max-height: fit-content;
  }

  .linksy-modal{
    .linksy-modal-dialog{
      max-width: 520px;
    }

    .linksy-modal-content{
      ol{
        list-style-type: disc;
      }
    }
  }
}

/* Database */
#database-replace thead td {
  background: #ffffff !important;
}

#database-replace thead td:last-child div {
  display: block;
  text-align: center;
}

#database-replace tbody td {
  white-space: nowrap;
  background: #ffffff;
}

#database-replace tbody td:last-child {
  width: 75%;
}

#database-replace {
  min-height: 100vh;

  .linksy-modal{
    .linksy-modal-dialog{
      max-width: 600px;

    }
    
    .linksy-modal-body{
      textarea[readonly] {
        height: 35px;
        background-color: transparent;
      }
    }
  }

  .database-dropdown{
    height: 35px;

    .linksy-dropdown-body{
      min-width: 250px;

      .dropdown-items-container{
        ul li{
          span{
            overflow-wrap: break-word;
            white-space: normal;
            max-width: 90%;
          }
        }
      }
    }
  }

  .linksy-search{
    min-width: 200px
  }

  .linksy-datatable-table{
    min-width: 900px;
  }

  .more-options-container{
    width: 150px;
    z-index: 2;
    box-shadow: 0px 1px 3px #cececea8;
    border-radius: 8px;
  }
}

#database-replace .action-dropdown div.linksy-dropdown-body,
#database-replace .position-sticky div.linksy-dropdown-body {
  max-height: unset !important;
  overflow: unset !important;
}

#database-replace .column .linksy-dropdown-body {
  max-width: 230px !important;
}

#database-replace .linksy-dropdown .choose-action {
  font-size: 16px !important;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: 0.2s all linear;
}

#database-replace .linksy-button .select-checkbox {
  line-height: 26px;
}

#database-replace .linksy-datatable-table .header-margin {
  margin-right: 1rem !important;
}

#database-replace .actions-button button {
  height: 35px;
  font-size: 13px;
}

#database-replace div.linksy-datatable .pages button.linksy-btn-white {
  font-size: 14px;
}


@media (max-width: 768px) {
  .linksy-page-header{
    .linksy-page-header-tabs {
      .linksy-tabbar li {
        margin: 0 !important;
        font-size: 0.875rem;
      }
    }
  }
}

@media (min-width: 992px) {
  #database-replace{
    .dropdown-search-container{
      width: 65%;
    }

    .replacement.input{
      width: 30% !important;
    }
  }

  .linksy-page-container {
    .content-box.right{
      width: 40%;
      min-width: 350px;
      max-width: 350px;

      .sidebar-tmls-image-section{
        height: 300px;
      }
    }
  }
}