/* ============================================
   TamRank 404 Monitor Page
   ============================================ */
/* variables.css komt binnen via de tamrank-variables-late dependency (zie register_common_styles). */

/* Limit bar component lives in admin.css (shared with redirects page) */

/* ─── Page Layout ──────────────────────────── */

/* Layout via .tr-page-wrap in tamrank-admin-global.css */

.tr-404-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--tr-space-6);
    flex-wrap: wrap;
    gap: var(--tr-space-4);
}

.tr-404-page-title {
    font-size: var(--tr-text-xl);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.tr-404-page-subtitle {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-500);
    margin: var(--tr-space-1) 0 0 0;
}

.tr-404-header-actions {
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
}

/* ─── Stats Grid ───────────────────────────── */

.tr-404-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tr-space-4);
    margin-bottom: var(--tr-space-6);
}

.tr-404-stat-card {
    background: var(--tr-color-white);
    border-radius: var(--tr-radius-lg);
    padding: var(--tr-space-5);
    box-shadow: var(--tr-shadow-sm);
    transition: all var(--tr-transition-base);
    border: 2px solid transparent;
    text-align: center;
}

.tr-404-stat-card:hover {
    box-shadow: var(--tr-shadow-md);
    transform: translateY(-2px);
}

.tr-404-stat-card--error {
    border-color: var(--tr-color-error-bg);
}

.tr-404-stat-card--warning {
    border-color: var(--tr-color-warning-bg);
}

.tr-404-stat-card--info {
    border-color: var(--tr-color-info-bg);
}

.tr-404-stat-card--success {
    border-color: var(--tr-color-success-bg);
}

.tr-404-stat-value {
    font-size: var(--tr-text-3xl);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-900);
    line-height: var(--tr-leading-tight);
}

.tr-404-stat-card--error .tr-404-stat-value {
    color: var(--tr-color-error);
}

.tr-404-stat-card--warning .tr-404-stat-value {
    color: var(--tr-color-warning);
}

.tr-404-stat-card--info .tr-404-stat-value {
    color: var(--tr-color-info);
}

.tr-404-stat-card--success .tr-404-stat-value {
    color: var(--tr-color-success);
}

.tr-404-stat-label {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-500);
    margin-top: var(--tr-space-1);
    font-weight: var(--tr-font-medium);
}

/* ─── Redirect Suggestion Banner ───────────── */

/* Verschijnt alleen op PRO-installs (suggesties zijn PRO-gated). De class werd
   in de markup gebruikt maar had geen stijl, waardoor de "View suggestions"-knop
   strak tegen de stats-grid eronder plakte. Zelfde familie als .tr-limit-bar. */
.tr-404-suggestion-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tr-space-4);
    flex-wrap: wrap;
    padding: var(--tr-space-4) var(--tr-space-5);
    margin-bottom: var(--tr-space-6);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--tr-radius-md);
}

.tr-404-suggestion-banner p {
    margin: 0;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-600);
}

.tr-404-suggestion-banner p:first-child {
    color: var(--tr-color-slate-900);
}

.tr-404-suggestion-banner p strong {
    color: var(--tr-color-primary);
    font-weight: var(--tr-font-bold);
}

.tr-404-suggestion-banner .tr-btn {
    flex-shrink: 0;
}

/* ─── Toolbar ──────────────────────────────── */

.tr-404-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-4);
    margin-bottom: var(--tr-space-5);
}

.tr-404-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tr-space-4);
    flex-wrap: wrap;
}

/* View tabs: uses shared .tr-underline-nav + .tr-underline-tab from common/tabs.css */

/* Filter pills */
.tr-404-filter-pills {
    display: flex;
    gap: var(--tr-space-2);
    flex-wrap: wrap;
}

.tr-404-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-2);
    padding: var(--tr-space-2) var(--tr-space-4);
    border-radius: var(--tr-radius-full);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-slate-500);
    background: var(--tr-color-surface);
    border: none;
    text-decoration: none;
    transition: all var(--tr-transition-base);
    cursor: pointer;
    font-family: var(--tr-font-family);
}

.tr-404-pill:hover {
    background: var(--tr-color-slate-200);
    color: var(--tr-color-slate-700);
}

.tr-404-pill.active {
    background: var(--tr-color-slate-800);
    color: var(--tr-color-white);
}

.tr-404-pill-count {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-400);
}

.tr-404-pill.active .tr-404-pill-count {
    color: var(--tr-color-slate-400);
}

/* Search */
.tr-404-search {
    position: relative;
}

.tr-404-search .tr-input {
    padding: 13px var(--tr-space-4) 13px var(--tr-space-10) !important;
    width: 240px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--tr-radius-lg) !important;
    font-size: 14px !important;
    color: var(--tr-color-slate-800) !important;
    background: var(--tr-color-white) !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
    box-sizing: border-box;
    min-height: unset;
    height: auto;
    line-height: var(--tr-leading-normal);
    -webkit-appearance: none;
    appearance: none;
}

.tr-404-search .tr-input:focus {
    border-color: var(--tr-color-primary) !important;
    box-shadow: var(--tr-shadow-focus) !important;
    outline: none !important;
}

.tr-404-search-icon {
    position: absolute;
    left: var(--tr-space-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--tr-color-slate-400);
    pointer-events: none;
}

/* ─── Data Table ───────────────────────────── */

.tr-404-table-wrap {
    background: var(--tr-color-white);
    border-radius: var(--tr-radius-lg);
    box-shadow: var(--tr-shadow-sm);
    /* Horizontale scroll wanneer de tabel breder is dan de container (bv. wanneer
       een add-on een extra kolom toevoegt), zodat de Actions-kolom nooit wordt
       afgekapt. Een eventuele overlay wordt via position:fixed buiten deze
       scroll-context geplaatst, dus die wordt niet geclipt. Hoeken worden op de
       cellen zelf afgerond i.p.v. via overflow-clipping. */
    overflow-x: auto;
}

.tr-404-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Ronde hoeken op de cellen (vervangt de overflow:hidden-clipping) */
.tr-404-table th:first-child { border-top-left-radius: var(--tr-radius-lg); }
.tr-404-table th:last-child { border-top-right-radius: var(--tr-radius-lg); }
.tr-404-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--tr-radius-lg); }
.tr-404-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--tr-radius-lg); }

.tr-404-table th {
    background: var(--tr-color-slate-800);
    color: var(--tr-color-white);
    padding: var(--tr-space-3) var(--tr-space-4);
    text-align: left;
    font-size: var(--tr-text-xs);
    font-weight: var(--tr-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tr-404-table th.tr-th-center {
    text-align: center;
}

.tr-404-table td {
    padding: var(--tr-space-3) var(--tr-space-4);
    border-bottom: 1px solid var(--tr-color-slate-100);
    font-size: var(--tr-text-sm);
    vertical-align: middle;
}

.tr-404-table tbody tr:last-child td {
    border-bottom: none;
}

.tr-404-table tbody tr {
    transition: background var(--tr-transition-fast);
}

.tr-404-table tbody tr:hover td {
    background: var(--tr-color-slate-100);
}

.tr-404-table tbody tr.selected td {
    background: var(--tr-color-primary-light);
}

/* Checkbox column */
.tr-404-table th:first-child,
.tr-404-table td:first-child {
    width: 40px;
    text-align: center;
}

/* De huid komt van .tr-check in tamrank-admin-global.css (op elke plugin-pagina
   geladen). Hier stond een `accent-color: var(--tr-color-primary)`, maar die
   deed niets: WP-admin zet zelf `appearance: none` op admin-checkboxes, dus het
   vakje wordt getekend in plaats van gekleurd en het aangevinkte blauw kwam van
   WP's eigen `input[type="checkbox"]:checked`. Blijft over: het vakje midden in
   zijn 40px-kolom houden, want .tr-check zet `margin: 0` waar WP core een
   negatieve marge had. */
.tr-404-checkbox {
    vertical-align: middle;
}

/* URL column */
.tr-404-url {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-800);
    background: var(--tr-color-slate-100);
    padding: var(--tr-space-1) var(--tr-space-2);
    border-radius: var(--tr-radius-sm);
    display: inline-block;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

/* Hits column */
.tr-404-hits {
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-900);
    text-align: center;
}

.tr-404-hits--high {
    color: var(--tr-color-warning);
}

/* Date column */
.tr-404-date {
    color: var(--tr-color-slate-500);
    white-space: nowrap;
    font-size: var(--tr-text-xs);
}

/* Redirect button in table */
.tr-404-redirect-btn {
    font-family: var(--tr-font-family);
    font-size: var(--tr-text-xs);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-primary);
    background: var(--tr-color-primary-light);
    border: none;
    border-radius: var(--tr-radius-sm);
    padding: var(--tr-space-2) var(--tr-space-3);
    cursor: pointer;
    transition: all var(--tr-transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-1);
    white-space: nowrap;
}

.tr-404-redirect-btn:hover {
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
}

.tr-404-redirect-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.tr-404-redirect-btn.is-done {
    background: var(--tr-color-success-bg);
    color: var(--tr-color-success);
    cursor: default;
}

/* ─── Bulk Action Bar ──────────────────────── */

.tr-404-bulk-bar {
    display: none;
    position: sticky;
    bottom: var(--tr-space-4);
    background: var(--tr-color-slate-800);
    color: var(--tr-color-white);
    padding: var(--tr-space-3) var(--tr-space-5);
    border-radius: var(--tr-radius-lg);
    margin-top: var(--tr-space-4);
    align-items: center;
    justify-content: space-between;
    gap: var(--tr-space-4);
    box-shadow: var(--tr-shadow-xl);
    z-index: var(--tr-z-sticky);
    animation: tr-404-bulk-slide-up 0.2s ease-out;
}

.tr-404-bulk-bar.is-visible {
    display: flex;
}

.tr-404-bulk-bar-left {
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-medium);
}

.tr-404-bulk-bar-actions {
    display: flex;
    align-items: center;
    gap: var(--tr-space-3);
}

.tr-404-bulk-redirect {
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    border: none;
    padding: var(--tr-space-2) var(--tr-space-4);
    border-radius: var(--tr-radius-md);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    cursor: pointer;
    transition: background var(--tr-transition-fast);
}

.tr-404-bulk-redirect:hover {
    background: var(--tr-color-primary-hover);
}

.tr-404-bulk-ignore {
    background: none;
    border: none;
    color: var(--tr-color-slate-300);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-medium);
    cursor: pointer;
    padding: var(--tr-space-2) var(--tr-space-3);
    transition: color var(--tr-transition-fast);
}

.tr-404-bulk-ignore:hover {
    color: var(--tr-color-white);
}

.tr-404-bulk-close {
    background: none;
    border: none;
    color: var(--tr-color-slate-400);
    font-size: var(--tr-text-xl);
    line-height: 1;
    cursor: pointer;
    padding: var(--tr-space-1) var(--tr-space-2);
    margin-left: auto;
    transition: color var(--tr-transition-fast);
}

.tr-404-bulk-close:hover {
    color: var(--tr-color-white);
}

.tr-404-bulk-count {
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    padding: var(--tr-space-1) var(--tr-space-3);
    border-radius: var(--tr-radius-full);
    font-weight: var(--tr-font-bold);
    font-size: var(--tr-text-xs);
    min-width: 20px;
    text-align: center;
}

@keyframes tr-404-bulk-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── Slide-in Redirect Panel ──────────────── */

.tr-404-panel-overlay {
    position: fixed;
    inset: 32px 0 0 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--tr-z-modal-bg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--tr-transition-slow);
}

.tr-404-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.tr-404-panel {
    position: fixed;
    top: 32px;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--tr-color-white);
    z-index: var(--tr-z-modal);
    box-shadow: var(--tr-shadow-xl);
    transform: translateX(100%);
    transition: transform var(--tr-transition-slow);
    display: flex;
    flex-direction: column;
}

.tr-404-panel.is-open {
    transform: translateX(0);
}

.tr-404-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tr-space-5) var(--tr-space-6);
    border-bottom: 1px solid var(--tr-color-slate-200);
    flex-shrink: 0;
}

.tr-404-panel-title {
    font-size: var(--tr-text-lg);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-900);
    margin: 0;
}

.tr-404-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tr-color-surface);
    border-radius: var(--tr-radius-md);
    cursor: pointer;
    color: var(--tr-color-slate-600);
    transition: all var(--tr-transition-fast);
    font-size: var(--tr-text-lg);
    line-height: 1;
}

.tr-404-panel-close:hover {
    background: var(--tr-color-slate-200);
    color: var(--tr-color-slate-800);
}

.tr-404-panel-body {
    padding: var(--tr-space-6);
    flex: 1;
    overflow-y: auto;
}

.tr-404-panel-field {
    margin-bottom: var(--tr-space-6);
}

.tr-404-panel-label {
    display: block;
    font-size: var(--tr-text-xs);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--tr-space-2);
}

/* Source URL box */
.tr-404-panel-source-box {
    background: var(--tr-color-base);
    border: 1px solid var(--tr-color-slate-200);
    border-radius: var(--tr-radius-md);
    padding: var(--tr-space-3) var(--tr-space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tr-404-panel-source-url {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-404-panel-source-meta {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-400);
    margin-top: var(--tr-space-2);
}

/* Target input — matches dashboard modal style */
.tr-404-panel-target-input {
    width: 100% !important;
    padding: 13px var(--tr-space-4) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--tr-radius-lg) !important;
    font-size: 14px !important;
    color: var(--tr-color-slate-800) !important;
    background: var(--tr-color-white) !important;
    font-family: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
    box-sizing: border-box;
    min-height: unset;
    height: auto;
    line-height: var(--tr-leading-normal);
    -webkit-appearance: none;
    appearance: none;
}

.tr-404-panel-target-input:focus {
    border-color: var(--tr-color-primary) !important;
    box-shadow: var(--tr-shadow-focus) !important;
    outline: none !important;
}

/* Radio buttons for redirect type */
.tr-404-panel-radio {
    display: flex;
    align-items: flex-start;
    gap: var(--tr-space-3);
    padding: var(--tr-space-3) 0;
    cursor: pointer;
}

.tr-404-panel-radio input[type="radio"] {
    display: none;
}

.tr-404-panel-radio-dot {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: var(--tr-radius-full);
    border: 2px solid var(--tr-color-slate-300);
    margin-top: 2px;
    transition: all var(--tr-transition-fast);
    position: relative;
}

.tr-404-panel-radio input[type="radio"]:checked ~ .tr-404-panel-radio-dot {
    border-color: var(--tr-color-primary);
    background: var(--tr-color-primary);
}

.tr-404-panel-radio input[type="radio"]:checked ~ .tr-404-panel-radio-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: var(--tr-radius-full);
    background: var(--tr-color-white);
}

.tr-404-panel-radio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tr-404-panel-radio-content strong {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-slate-800);
}

.tr-404-panel-radio-desc {
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-400);
}

/* Shown under the To field for any status outside 3xx - the twin of
   .tr-redir-add-note on the Redirects screen, which lives in a stylesheet this
   page does not load. Flows below the input instead of being positioned over
   it, because the panel has room for it. */
.tr-404-panel-note {
    display: block;
    margin-top: var(--tr-space-2);
    font-size: var(--tr-text-sm);
    line-height: 1.4;
    color: var(--tr-color-slate-400);
}

.tr-404-panel-note[hidden] {
    display: none;
}

/* Divider */
.tr-404-panel-divider {
    border-top: 1px dashed var(--tr-color-slate-200);
    margin: var(--tr-space-2) 0;
}

/* Advanced toggle */
.tr-404-panel-advanced {
    margin-top: var(--tr-space-2);
}

.tr-404-panel-advanced summary {
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-medium);
    color: var(--tr-color-slate-600);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--tr-space-2);
}

.tr-404-panel-advanced summary::before {
    content: '▸';
    font-size: var(--tr-text-lg);
    transition: transform var(--tr-transition-fast);
}

.tr-404-panel-advanced[open] summary::before {
    transform: rotate(90deg);
}

.tr-404-panel-advanced summary::-webkit-details-marker {
    display: none;
}

.tr-404-panel-advanced-options {
    padding-top: var(--tr-space-2);
}

/* Locked PRO radio option */
.tr-404-panel-radio.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.tr-404-panel-radio-pro {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--tr-font-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--tr-color-slate-200);
    color: var(--tr-color-slate-500);
    padding: 1px 6px;
    border-radius: var(--tr-radius-sm);
    margin-left: var(--tr-space-2);
    vertical-align: middle;
}

/* Footer */
.tr-404-panel-footer {
    padding: var(--tr-space-5) var(--tr-space-6);
    border-top: 1px solid var(--tr-color-slate-200);
    display: flex;
    align-items: center;
    gap: var(--tr-space-4);
    flex-shrink: 0;
}

.tr-404-panel-save-btn {
    flex: 1;
}

.tr-404-panel-cancel-link {
    background: none;
    border: none;
    color: var(--tr-color-slate-500);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-medium);
    cursor: pointer;
    padding: var(--tr-space-2) var(--tr-space-3);
    transition: color var(--tr-transition-fast);
}

.tr-404-panel-cancel-link:hover {
    color: var(--tr-color-slate-700);
}

/* Bulk redirect list in panel */
.tr-404-panel-bulk-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--tr-space-1);
}

.tr-404-panel-bulk-item {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-700);
    background: var(--tr-color-slate-100);
    padding: var(--tr-space-1) var(--tr-space-3);
    border-radius: var(--tr-radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Empty State ──────────────────────────── */

.tr-404-empty {
    text-align: center;
    padding: var(--tr-space-12) var(--tr-space-6);
    background: var(--tr-color-success-bg);
    border-radius: var(--tr-radius-lg);
}

.tr-404-empty-icon {
    margin-bottom: var(--tr-space-3);
}

.tr-404-empty-icon svg {
    color: var(--tr-color-success);
}

.tr-404-empty-title {
    font-size: var(--tr-text-lg);
    font-weight: var(--tr-font-bold);
    color: var(--tr-color-slate-800);
    margin: 0 0 var(--tr-space-1) 0;
}

.tr-404-empty-text {
    color: var(--tr-color-primary);
    font-weight: var(--tr-font-medium);
    margin: 0;
    font-size: var(--tr-text-sm);
}

/* Inline Tip styles moved to admin.css (shared component) */

/* ─── Pagination ───────────────────────────── */

.tr-404-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--tr-space-5);
    padding: var(--tr-space-3) 0;
    font-size: var(--tr-text-sm);
    color: var(--tr-color-slate-500);
}

.tr-404-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--tr-space-2);
    border-radius: var(--tr-radius-md);
    text-decoration: none;
    font-weight: var(--tr-font-medium);
    color: var(--tr-color-slate-600);
    transition: all var(--tr-transition-base);
}

.tr-404-pagination .page-numbers:hover {
    background: var(--tr-color-surface);
    color: var(--tr-color-slate-800);
}

.tr-404-pagination .page-numbers.current {
    background: var(--tr-color-primary);
    color: var(--tr-color-white);
    font-weight: var(--tr-font-bold);
}

/* ─── Danger Ghost Button ──────────────────── */

.tr-btn-danger-ghost {
    font-family: var(--tr-font-family);
    font-size: var(--tr-text-sm);
    font-weight: var(--tr-font-semibold);
    color: var(--tr-color-error);
    background: transparent;
    border: 1.5px solid var(--tr-color-error);
    border-radius: var(--tr-radius-md);
    padding: var(--tr-space-2) var(--tr-space-4);
    cursor: pointer;
    transition: all var(--tr-transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--tr-space-2);
}

.tr-btn-danger-ghost:hover {
    background: var(--tr-color-error);
    color: var(--tr-color-white);
}

.tr-btn-danger-ghost:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ─── Responsive ───────────────────────────── */

@media (max-width: 900px) {
    .tr-404-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-404-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .tr-404-search .tr-input {
        width: 100%;
    }

    .tr-404-url {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .tr-404-stats {
        grid-template-columns: 1fr;
    }

    .tr-404-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
