/* #toplevel_page_wp-internal-links .wp-first-item {
  display: none;
} */

.linkcluster_page_laci_internal_links_dashboard #wpcontent {
  background: #ffffff;
}

.notice,
.warring,
.updated {
  display: none !important;
}

.laci-notice {
  display: block !important;
}

.laci-internal-links-popup {
  background: #fff;
  padding: 20px;
}

.laci-internal-links-popup table {
  width: 100%;
  border-collapse: collapse;
}

.laci-internal-links-popup th,
.laci-internal-links-popup td {
  padding: 10px;
  border: 1px solid #ddd;
}

.laci-internal-links-popup th {
  background: #f1f1f1;
  text-align: left;
}

.laci-dashboard-page .logo {
  background-color: #0a0b53;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 5px;
  width: auto;
}

.laci-dashboard-page .logo h2 {
  margin: 0;
  font-weight: normal;
  color: #fff;
  font-weight: bold;
}

.laci-dashboard-page .wrap {
  width: 100%;
}

.laci-dashboard-page .wp-list-table {
  border-spacing: 2px;
  border: none;
}

.laci-dashboard-page .wp-list-table thead {
  background: #f0f0f1;
}

.laci-dashboard-page .wp-list-table th {
  border: none;
  border-radius: 5px;
}

.laci-dashboard-page .wrap-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.laci-dashboard-page .wrap-search-and-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.laci-dashboard-page .wrap-filters {
  display: flex;
  align-items: center;
  gap: 16px;
}

.laci-dashboard-page .laci-count-link {
  color: #fff;
  margin-top: 10px;
  text-decoration: underline;
  word-wrap: normal;
}

.laci-dashboard-page .laci-count-link:focus {
  outline: none;
  box-shadow: none;
}

.laci-dashboard-page td.bg-green {
  background: #6bc623;
}

.laci-dashboard-page td.bg-gray {
  background: #c3c4c7;
}

.laci-dashboard-page .laci-post-type {
  font-weight: initial;
  color: #50575e;
}

.laci-copy-link {
  cursor: copy;
}

#main_category_meta_box h2.ui-sortable-handle {
  padding-left: 16px !important;
}

#main_category_meta_box h2.ui-sortable-handle p {
  font-size: 13px;
  margin-bottom: 0;
  color: #1e1e1e;
  font-weight: 500;
}

#laci_add_key_word_meta_box .laci-list-key-word__item {
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  float: left;
  margin-right: 10px;
  line-height: 1.8em;
  cursor: pointer;
}

#laci_add_key_word_meta_box
  .laci-list-key-word__item
  .dashicons.remove::before {
  cursor: pointer;
  font-size: 16px;
}

.laci-list-key-word__item .remove {
  color: #2271b1;
  cursor: pointer;
}

.laci-dashboard-page #the-list tr {
  background: #f6f7f7 !important;
}

.laci-dashboard-page #the-list tr:hover {
  background: #ffffff !important;
}

/* .laci-dashboard-page table td {
  border-bottom: 1px solid #808080;
  border-top: 1px solid #808080;
} */

.laci-dashboard-page table tr .inbound_links,
.laci-dashboard-page table tr .outbound_links,
.laci-dashboard-page table tr .inbound_links_in_category,
.laci-dashboard-page table tr .outbound_links_in_category,
.laci-dashboard-page table tr .link_back_to_category {
  text-align: center;
  vertical-align: middle;
}

.laci-dashboard-page .title-column,
.laci-dashboard-page .column-title {
  width: 50%;
  min-width: 50%;
}

.laci-dashboard-page .title-column {
  position: relative;
  vertical-align: middle;
}

.laci-dashboard-page .column-taxonomies,
.laci-dashboard-page .column-key_words {
  width: 11%;
  min-width: 11%;
}

.laci-dashboard-page .column-date_published {
  width: 7%;
  min-width: 7%;
  vertical-align: middle;
}

.laci-title-action {
  display: none;
  opacity: 0;
  vertical-align: bottom;
  border: 2px solid #2271b1;
  position: absolute;
  bottom: 30px;
  text-align: left;
  broder-radius: 5px;
  background: #fff;
}
.laci-link-assistant-item {
  background: #2271b1;
  cursor: pointer;
  padding: 5px 5px;
  color: #ffffff;
  border-radius: 3px;
  margin: 0 5px;
  display: inline-block;
  padding-bottom: 2px;
}

.laci-update-internal-link-item {
  background: #6bc623;
  cursor: pointer;
  padding: 5px 5px;
  color: #ffffff;
  border-radius: 3px;
  margin: 0 5px;
  display: inline-block;
  padding-bottom: 2px;
}

.laci-update-focus-keywords {
  background: #989aa1;
  cursor: pointer;
  padding: 5px 5px;
  color: #ffffff;
  border-radius: 3px;
  margin: 0 5px;
  display: inline-block;
  padding-bottom: 2px;
}

.laci-link-assistant-item:hover {
  background: #135e96;
}

.laci-update-internal-link-item:hover {
  background: #509e13;
}

.laci-update-focus-keywords:hover {
  background: #c3c4c7;
}

.laci-title-action-item a {
  color: #ffffff;
}

.laci-title-action-item .dashicons {
  font-size: 15px;
  vertical-align: text-top;
  margin-top: 1px;
}

.laci-title-action a {
  font-size: 14px !important;
  font-weight: 600;
  vertical-align: bottom;
  white-space: nowrap;
}

.title-column .laci-row-title-action.active .laci-title-action {
  opacity: 1;
  display: block;
}

.laci-row-title-action {
  cursor: pointer;
}

/* .laci-dashboard-page td.title-column:hover .laci-title-action {
  opacity: 1;
} */

.laci-dashboard-page .row-title {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  width: 300px;
}

.laci-dashboard-page p.search-box {
  float: inline-start !important;
  margin-right: 10px;
}

.laci-label-filter-number {
  display: inline-block;
  max-width: 500px;
  min-width: 210px;
  word-break: break-word;
}

.laci-filter-link-item {
  margin-bottom: 10px;
}

.laci-filter-link-group {
  position: relative;
  left: 0;
  display: flex;
  gap: 30px;
  width: max-content;
  margin-top: 20px;
}

.laci-key-words-title {
  text-align: center;
}

.laci-dashboard-page #taxonomies a,
.laci-dashboard-page #key_words a {
  width: 60%;
  position: relative;
}

.laci-categories-title .laci-categories-icon-edit,
.laci-key-words-title .laci-key-words-icon-edit {
  position: absolute;
  right: 20px;
}

.laci-dashboard-page tfoot {
  display: none;
}

.laci-category-change,
.laci-key-words-change {
  display: none;
}

.laci-display-block {
  display: block !important;
}

.laci-display-none,
.laci-categories-action-change,
.laci-key-words-action-change {
  display: none;
}

.laci-dashboard-page .manage-column a:focus {
  outline: none;
  box-shadow: none;
}

.laci-dashboard-page .laci-categories-cancel-change,
.laci-dashboard-page .laci-key-words-cancel-change {
  color: #b32d2e;
  vertical-align: -webkit-baseline-middle;
}

.laci-dashboard-page .laci-categories-cancel-change:hover,
.laci-dashboard-page .laci-key-words-cancel-change:hover {
  text-decoration: underline;
}
/* 
 key-words
*/
.laci-dashboard-page #key_words {
  position: relative;
}

.laci-dashboard-page tfoot .laci-key-words-icon-edit {
  display: none;
}

.laci-notification {
  position: fixed;
  top: 70px;
  right: 10px;
  background-color: #4caf50;
  color: white;
  padding: 15px;
  border-radius: 10px;
  transition: opacity 0.5s;
  z-index: 9999;
  font-weight: 500;
  font-size: 15px;
  animation: fadeIn 0.5s forwards, fadeOut 0.5s forwards 3s;
}

.laci-error {
  background-color: #f44336;
}

.button.laci-updating-message::after,
.laci-loading.laci-updating-message::after {
  color: #e10909;
  font-family: dashicons;
  display: inline-block;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  speak: never;
  text-decoration: inherit;
  text-transform: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 20px;
  height: 20px;
  font-size: 20px;
  vertical-align: top;
  text-align: center;
  transition: color 0.1s ease-in;
}

.button.laci-updating-message:after,
.laci-loading.laci-updating-message:after {
  margin: 4px 0px 0px 10px;
}

.button.laci-updating-message:after,
.laci-loading.laci-updating-message:after {
  animation: rotation 2s infinite linear;
}

.button.laci-updating-message:after,
.laci-loading.laci-updating-message:after {
  color: #1d2327;
  content: "\f463";
}

.button.laci-updating-message:after,
.laci-loading.laci-updating-message:after {
  display: inline-block;
  font: normal 20px/1 dashicons;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  vertical-align: top;
}

.laci-row-title-content {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.laci-row-title-content .laci-text-tooltip {
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  width: 80%;
  top: 0px;
  left: 10px;
  font-size: 10px;
}

.column-title .laci-row-title-content .laci-text-tooltip {
  top: -45px;
}

.laci-row-title-content:hover .laci-text-tooltip {
  visibility: visible;
}

.dashicons-info:hover .laci-text-tooltip {
  visibility: visible;
}

.laci-percent-updated {
  display: none;
  margin-left: 10px;
  font-weight: bold;
}

.update-internal-link {
  cursor: pointer;
}

.laci-dashboard-page th.column-inbound_links a,
.laci-dashboard-page th.column-inbound_links_in_category a,
.laci-dashboard-page th.column-outbound_links a,
.laci-dashboard-page th.column-outbound_links_in_category a,
.laci-dashboard-page th.column-link_back_to_category a {
  position: relative;
  display: flex;
}

.laci-dashboard-page .column-inbound_links a .sorting-indicators,
.laci-dashboard-page .column-inbound_links_in_category a .sorting-indicators,
.laci-dashboard-page .column-outbound_links a .sorting-indicators,
.laci-dashboard-page .column-outbound_links_in_category a .sorting-indicators,
.laci-dashboard-page .column-link_back_to_category a .sorting-indicators {
  display: block;
}

.laci-category-text-item {
  text-decoration: underline !important;
}

.laci-title-action-group {
  display: inline-block;
}

.column-link_back_to_category {
  display: none;
}

@media only screen and (max-width: 2430px) {
  .laci-categories-title .laci-categories-icon-edit,
  .laci-key-words-title .laci-key-words-icon-edit {
    right: 0;
  }
}

@media only screen and (max-width: 2048px) {
  .laci-label-filter-number {
    display: inline-block;
    max-width: 120px;
    min-width: 100px;
    word-break: break-word;
  }

  .laci-categories-title .laci-categories-icon-edit,
  .laci-key-words-title .laci-key-words-icon-edit {
    right: 0;
  }
}

@media only screen and (min-width: 1500px) {
  .laci-dashboard-page .title-column,
  .laci-dashboard-page .column-title {
    width: 63%;
    min-width: 63%;
  }
  .laci-dashboard-page .column-taxonomies {
    width: 13%;
    min-width: 13%;
  }
}
@media only screen and (min-width: 2000px) {
  .laci-dashboard-page .title-column,
  .laci-dashboard-page .column-title {
    width: 50%;
    min-width: 50%;
  }
  .laci-dashboard-page .column-taxonomies {
    width: 15%;
    min-width: 15%;
  }
}

@media only screen and (max-width: 1660px) {
  .laci-filter-link-group {
    margin-top: 20px;
    left: 0;
  }

  .laci-title-action-group {
    padding-top: 5px;
  }
}

@media only screen and (max-width: 1440px) {
  .laci-dashboard-page .wrap-filters {
    display: inline-block;
  }
}

.laci-update-post-container {
  width: 100%;
  background: #6bc623;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: bold;
  color: #ffffffff;
  margin-top: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.laci-update-post-container .laci-action-update-post-to-db {
  cursor: pointer;
}

.laci-action-update-post-to-db:hover {
  color: #2271b1;
}

.laci-update-post-container .dashicons-image-rotate {
  font-size: 15px;
}

.laci-update-post-container .laci-time-updated {
  margin-left: 10px;
}

.laci-icon-update-post {
  vertical-align: sub;
}

.laci-internal-link-info-container .laci-row-title,
.laci-internal-link-info-container .laci-text-tooltip,
.laci-internal-link-info-container .laci-post-type,
.laci-internal-link-info-container .laci-update-focus-keywords,
.laci-internal-link-info-container .wp-list-table tfoot {
  display: none;
}

.laci-related-box-container {
  padding: 30px 10px;
  background: #dbdee0;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
}

.laci-related-box-text {
  color: #2271b1;
}

#laci_add_key_word_meta_box .laci-list-key-word {
  display: list-item;
  height: 100%;
}
#laci_add_key_word_meta_box {
  display: inline-block;
}

.external-links-count {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 2px 5px;
  border-radius: 3px;
}

.laci-domain-group {
  margin-bottom: 20px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.laci-link-details {
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border-left: 3px solid #0073aa;
}

/* External Links Table Column Widths */
.laci-external-links-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  table-layout: fixed;
}

.laci-external-links-table th {
  background: #f0f0f1;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #c3c4c7;
}

.laci-external-links-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f1;
}

/* Hover effect giống với bảng trong reports.php */
.laci-external-links-table tbody tr:hover {
  background: #f6f7f7;
}

.laci-external-links-table th,
.laci-external-links-table td {
  width: 25%;
}

.laci-external-links-table td:nth-child(2),
.laci-external-links-table td:nth-child(3),
.laci-external-links-table td:nth-child(4) {
  text-align: left;
}

.laci-external-links-table th:nth-child(2),
.laci-external-links-table th:nth-child(3),
.laci-external-links-table th:nth-child(4) {
  text-align: left;
}

.laci-external-links-table .domain-cell {
  font-weight: 700;
  color: #1d2327;
  font-size: 1.1em;
}

/* Hover effect cho domain cell */
.laci-external-links-table tbody tr:hover .domain-cell {
  color: #2271b1;
}

/* External Links Search Styles */
.wrap-search-and-filters .search-results-info {
  margin: 10px 0;
  padding: 10px;
  background: #fff;
  border-left: 4px solid #2271b1;
}

.wrap-search-and-filters .search-results-info span {
  font-weight: 600;
}

.wrap-search-and-filters .clear-search {
  margin-left: 10px;
  color: #d63638;
  text-decoration: none;
}

.wrap-search-and-filters .clear-search:hover {
  color: #d63638;
  text-decoration: underline;
}

#search_id-search-input {
  width: 300px;
  margin-right: 5px;
}

/* Broken Links Table Styles */
.laci-broken-links-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  table-layout: fixed;
}

.laci-broken-links-table th {
  background: #f0f0f1;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #c3c4c7;
}

.laci-broken-links-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f1;
}

.laci-broken-links-table tbody tr:hover {
  background: #f6f7f7;
}

.laci-broken-links-table .broken-url-cell {
  font-weight: 700;
  color: #d63638;
  font-size: 1.1em;
}

/* Status cell styles */
.laci-broken-links-table .status-cell {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.laci-broken-links-table .status-404 {
  background: #fcf0f1;
  color: #d63638;
}

.laci-broken-links-table .status-500 {
  background: #fcf9e8;
  color: #996800;
}

.laci-broken-links-table .status-timeout {
  background: #f0f6fc;
  color: #2271b1;
}

.laci-broken-links-table .status-unknown {
  background: #f6f7f7;
  color: #50575e;
}
