/* Scanner admin styles */

.scc-admin-page {
    width: 95%;
    box-sizing: border-box;
}

.scc-page-header {
    margin-bottom: 12px;
}

.scc-page-header p {
    margin-top: 6px;
}

.scc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.scc-stat-card {
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
}

.scc-stat-label {
    color: #646970;
    margin-bottom: 4px;
}

.scc-stat-number {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: #1d2327;
}

.scc-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.scc-toolbar-main {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.scc-search-wrap {
    flex: 0 0 220px; /* fixed narrow width on the right */
    order: 2;        /* always rendered after the tabs */
    min-width: 0;
}

.scc-search-wrap input[type="search"] {
    width: 100%;
}

.scc-filter-tabs {
    display: inline-flex; /* shrinks to content width — no stretching */
    order: 1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.scc-scan-filter-tab {
    flex: 1;              /* equal width for every tab */
    border: 0;
    border-right: 1px solid #c3c4c7;
    background: #f6f7f7;
    cursor: pointer;
    padding: 6px 16px;
    white-space: nowrap;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.scc-scan-filter-tab:last-child {
    border-right: 0;
}

.scc-filter-tab-active {
    background: #2271b1;  /* WP admin blue — unmissable active state */
    color: #fff;
    font-weight: 600;
}

.scc-table-card {
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 16px;
}

.scc-admin-page .wp-list-table {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.scc-status-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.scc-status-active {
    background: #dff0d8;
    color: #2f5f2f;
}

.scc-status-disabled {
    background: #f2dede;
    color: #7a2f2f;
}

.scc-status-orphaned {
    background: #fcf8e3;
    color: #8a6d3b;
}

.scc-status-adopted {
    background: #d9edf7;
    color: #31708f;
}

.scc-status-registered {
    background: #e8f4f8;
    color: #0066cc;
}

.scc-activity-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.scc-activity-active {
    background: #dff0d8;
    color: #2f5f2f;
}

.scc-activity-disabled {
    background: #f2dede;
    color: #7a2f2f;
}

.scc-tag-code {
    font-family: monospace;
}

.scc-row-links {
    display: block;
    margin-top: 4px;
}

.scc-scan-actions-wrap {
    margin-bottom: 16px;
}

.scc-scan-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.scc-progress-bar {
    margin-top: 10px;
    width: 100%;
    max-width: 560px;
    height: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    background: #f0f0f1;
    overflow: hidden;
}

.scc-progress-fill {
    width: 0;
    height: 100%;
    background: #2271b1;
    transition: width 0.25s ease;
}

.scc-progress-text {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #f6f7f7;
    color: #50575e;
}

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

.scc-notice-container {
    margin-bottom: 16px;
}
