
.destination-does-not-exist {
	background-color: #ff000045;
}

.exclude-pages-page-type {
	font-style: italic;
}
.exclude-pages-cell {
	vertical-align: top;
}

.closeable-ul {
	box-sizing: border-box;
	max-height: 12em;
	overflow: auto;
}
/* Style the list (remove margins and bullets, etc) */
.closeable-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style the list items */
.closeable-ul li {
  border: 1px solid #ddd;
  margin-top: -1px; /* Prevent double borders */
  background-color: #f6f6f6;
  text-decoration: none;
  font-size: 1.2em;
  color: black;
  display: block;
  position: relative;
}

/* Add a light grey background color on hover */
.closeable-ul li:hover {
  background-color: #eee;
}

/* Style the close button (span) */
.closeable-ul .close {
	background: #eee;
  cursor: pointer;
  position: absolute;
  top: 50%;
  right: 0%;
  padding: 0px 16px;
  transform: translate(0%, -50%);
}

.closeable-ul .close:hover {background: #bbb;}


.hide-when-true {
	display: none;
}

/* Make the pagination links easier to click for steveraven */
.pagination-link {
	border-radius: 0 3px 3px 0;
    border-style: solid;
    border-width: 1px;
    box-sizing: border-box;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    text-decoration-line: none;
}

.displaying-num {
    padding-left: 10px;
}

/* This is for the redirect page search dropdown. */
.indent-depth-0.ui-menu-item {
    padding-left: 10px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-1.ui-menu-item {
    padding-left: 20px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-2.ui-menu-item {
    padding-left: 30px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-3.ui-menu-item {
    padding-left: 40px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-4.ui-menu-item {
    padding-left: 50px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-5.ui-menu-item {
    padding-left: 60px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-6.ui-menu-item {
    padding-left: 70px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-7.ui-menu-item {
    padding-left: 80px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-8.ui-menu-item {
    padding-left: 90px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.indent-depth-9.ui-menu-item {
    padding-left: 100px;
    width: -moz-available;          /* WebKit-based browsers will ignore this. */
    width: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    width: stretch;
}
.ui-autocomplete li {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 1em;
    padding: 0px 10px;
    max-height: 400px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    padding-left: 0px;
}
ul .ui-autocomplete-category {
    font-weight: bold;
    margin: .8em 0 .2em;
    line-height: 1.5;

    /** custom **/
    display: flex;
    color: gray;
    font-weight: normal;
    padding-left: 0px;
}

/* This hides the last empty element when the data is truncated and the final element is added only
    so that the final category will be added. */
.hide-me-please {
    display: none;
}
ul .ui-autocomplete-category.data-overflow-category {
    color: black;
    font-weight: bold;
    font-style: italic;        
}

/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/
.lefty-tooltip {
    position: relative;
    border-bottom: 1px dotted black;
}

.lefty-tooltip .lefty-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 15px;

    /* Position the tooltip */
    position: absolute;
    width: 350px;
    top: 100%;
    left: -200px;
    margin-left: -60px;
    z-index: 1;
}

.lefty-tooltip:hover .lefty-tooltiptext {
    visibility: visible;
}
/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/

/* Include a space after the apply button so that the Trash button isn't right next to it. */
#captured_404s_bulk_apply {
    margin-right: 10px;
}

/* -- - - - - -- - - - - - -- - - - - - - - - - - - - - -*/
.ui-autocomplete {
    max-height: 400px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
  }

/* ============================================
   Options Page Chips Navigation
   ============================================ */

/* Chips container with save button */
.abj404-chips-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 12px 0;
    background: var(--abj404-surface, #fff);
    border-bottom: 1px solid var(--abj404-border, #ccd0d4);
}

/* Chips navigation */
.abj404-chips-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

/* Save button in chips container */
.abj404-save-button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Make chips container sticky on desktop */
@media (min-width: 783px) {
    .abj404-chips-container {
        position: sticky;
        top: var(--chips-top-with-tabs, 78px); /* Calculated dynamically by JavaScript */
        z-index: 100;
        padding: 12px 16px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: top 0.3s ease-in-out;
    }

    /* When tabs are hidden, chips move up to just below admin bar */
    .abj404-chips-container.tabs-are-hidden {
        top: var(--admin-bar-height, 32px); /* Calculated dynamically by JavaScript */
    }
}

/* Individual chip button */
.abj404-chip {
    appearance: none;
    border: 1px solid var(--abj404-border, #8c8f94);
    background: var(--abj404-surface, #fff);
    color: var(--abj404-text, #2c3338);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.15s ease-in-out;
}

.abj404-chip:hover {
    background: var(--abj404-surface-muted, #f6f7f7);
    border-color: var(--abj404-text-muted, #50575e);
}

.abj404-chip:focus {
    outline: 2px solid var(--abj404-focus, #2271b1);
    outline-offset: 1px;
}

/* Active/pressed chip state (section visible) */
.abj404-chip[aria-pressed="true"] {
    background: var(--abj404-bg-muted, #f0f6fc);
    border-color: var(--abj404-accent, #2271b1);
    box-shadow: inset 0 0 0 1px currentColor;
    opacity: 0.9;
}

/* Dimmed chip state (section hidden) */
.abj404-chip[aria-pressed="false"] {
    opacity: 0.5;
}

.abj404-chip[aria-pressed="false"]:hover {
    opacity: 0.7;
}

/* Active chip state (section currently in viewport) - Scroll Spy */
.abj404-chip.active {
    background: var(--abj404-accent, #2271b1);
    border-color: var(--abj404-accent, #2271b1);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
    opacity: 1;
    transform: scale(1.05);
}

.abj404-chip.active:hover {
    background: var(--abj404-accent, #135e96);
    box-shadow: 0 3px 12px rgba(34, 113, 177, 0.4);
}

/* Active chip - make dot brighter/white */
.abj404-chip.active .abj404-chip-dot {
    background: #fff !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Chip color dots */
.abj404-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Color scheme for different chips - using theme-neutral colors */
.abj404-chip.chip-autooptions .abj404-chip-dot {
    background: #00a32a; /* WordPress green for automatic/good */
}

.abj404-chip.chip-generaloptions .abj404-chip-dot {
    background: #0073aa; /* WordPress blue for general settings */
}

.abj404-chip.chip-advancedoptions .abj404-chip-dot {
    background: #826eb4; /* Purple for advanced */
}

.abj404-chip.chip-suggestoptions .abj404-chip-dot {
    background: #d63638; /* WordPress alert color for suggestions/attention */
}

/* Options sections */
.abj404-options-section {
    display: none;
}

.abj404-options-section.visible {
    display: block;
}

/* Scroll margin to account for sticky elements */
.abj404-options-section {
    scroll-margin-top: 48px; /* Admin bar (32px) + chips (~16px) */
}

@media (min-width: 783px) {
    .abj404-options-section {
        scroll-margin-top: 80px; /* Admin bar + chips + padding */
    }
}

/* Section header with hide button */
.abj404-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abj404-section-header span {
    flex: 1;
}

/* Hide button (X) in section header */
.abj404-section-hide {
    appearance: none;
    background: none;
    border: none;
    color: var(--abj404-text-muted, #646970);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    margin: 0 0 0 12px;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.abj404-section-hide:hover {
    background: var(--abj404-surface-muted, #f0f0f1);
    color: var(--abj404-text, #2c3338);
}

.abj404-section-hide:focus {
    outline: 2px solid var(--abj404-focus, #2271b1);
    outline-offset: 1px;
}

.abj404-section-hide:active {
    transform: scale(0.95);
}

/* Mobile adjustments */
@media (max-width: 782px) {
    .abj404-chips-container {
        top: 46px; /* Mobile admin bar height */
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .abj404-chip {
        font-size: 12px;
        padding: 5px 10px;
    }

    .abj404-save-button {
        width: 100%;
    }
}

/* ============================================
   Save Loading Overlay
   ============================================ */

/* Overlay backdrop */
.abj404-save-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay content box */
.abj404-save-overlay-content {
    background: var(--abj404-surface, #fff);
    padding: 32px 48px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}

/* WordPress-style spinner */
.abj404-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid var(--abj404-border, #ddd);
    border-top-color: var(--abj404-accent, #2271b1);
    border-radius: 50%;
    animation: abj404-spin 0.8s linear infinite;
}

@keyframes abj404-spin {
    to { transform: rotate(360deg); }
}

/* Save message text */
.abj404-save-message {
    margin: 0;
    font-size: 16px;
    color: var(--abj404-text, #2c3338);
    font-weight: 500;
}

/* Error state */
.abj404-save-overlay.error .abj404-spinner {
    display: none;
}

.abj404-save-overlay.error .abj404-save-overlay-content {
    border-left: 4px solid #d63638;
}

.abj404-save-overlay.error .abj404-save-message {
    color: #d63638;
}

/* ============================================
   Hiding Header (Scroll Direction)
   ============================================ */

/* Add spacing for fixed tabs so they don't cover page header */
.wrap {
    padding-top: 50px; /* Space for fixed nav-tab-wrapper */
}

/* WordPress plugin tabs - smooth transition */
.nav-tab-wrapper {
    position: fixed;
    top: var(--admin-bar-height, 32px); /* Calculated dynamically by JavaScript */
    left: 160px; /* WordPress admin menu width */
    right: 0;
    z-index: 101; /* Above chips (100) and content */
    background: #f0f0f1;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Hide tabs when scrolling down */
.nav-tab-wrapper.tabs-hidden {
    transform: translateY(-100%);
}

/* Mobile admin bar and folded menu */
@media screen and (max-width: 960px) {
    .nav-tab-wrapper {
        left: 36px; /* Folded menu width */
    }
}

@media screen and (max-width: 782px) {
    .nav-tab-wrapper {
        left: 0;
    }
}
