/* Shortcode Manager 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-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-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-section-label {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 8px 12px;
    color: #646970;
}

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

.scc-admin-page .tablenav {
    display: 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-tag-code {
    font-family: monospace;
}

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

.scc-admin-page .wp-list-table tbody tr:hover .scc-row-links {
    display: block;
}

.scc-core-warning {
    border: 1px solid #c3c4c7;
    border-left: 4px solid #ffb81c;
    padding: 15px;
    margin: 12px;
    background: #f6f7f7;
}

.scc-core-warning h3 {
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scc-core-warning p {
    margin-top: 0;
    margin-bottom: 0;
    color: #555;
}

.scc-core-warning .dashicons {
    color: #ffb81c;
}

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

/* Adopted shortcode styles */
.scc-adopted-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scc-status-control {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.scc-status-control input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.scc-status-control input[type="checkbox"]:disabled ~ .scc-toggle-label {
    opacity: 0.8;
}

.scc-toggle-label {
    cursor: pointer;
    user-select: none;
}

.scc-unadopt-btn {
    padding: 4px 8px;
    font-size: 11px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.scc-unadopt-btn:hover {
    background: #ffe69c;
}

.scc-unadopt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
}