/**
 * SEO Issues Admin Page Styles
 *
 * @package Cleverplugins\SEOBooster
 * @since 6.1.26
 */

    border-radius: 4px;
}

    display: block;
    margin-bottom: 5px;
    color: #2271b1;
}


.sb-sync-status {
    margin-left: 10px;
    font-weight: 500;
}

/* Fullwidth layout */
.sb-seo-issues-page .wrap {
    margin: 0;
    padding: 0;
    max-width: none;
}

.sb-seo-issues-page .wrap > h1 {
    margin: 0 0 20px 0;
    padding: 0 20px;
    font-size: 23px;
    font-weight: 400;
}

/* Stats Cards */
.sb-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 0 20px 30px 20px;
    padding: 0;
}

.sb-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #8c8f94;
}

.sb-stat-card.sb-expanded {
    transform: scale(1.02);
    z-index: 10;
}

.sb-stat-number {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 8px;
    color: #1d2327;
}

.sb-stat-label {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat card colors */
.sb-stat-total {
    border-left: 4px solid #2271b1;
}

.sb-stat-total .sb-stat-number {
    color: #2271b1;
}

.sb-stat-critical {
    border-left: 4px solid #d63638;
}

.sb-stat-critical .sb-stat-number {
    color: #d63638;
}

.sb-stat-high {
    border-left: 4px solid #dba617;
}

.sb-stat-high .sb-stat-number {
    color: #dba617;
}

.sb-stat-medium {
    border-left: 4px solid #72aee6;
}

.sb-stat-medium .sb-stat-number {
    color: #72aee6;
}

.sb-stat-analyze {
    border-left: 4px solid #00a32a;
    position: relative;
}

.sb-stat-analyze .sb-stat-number {
    color: #00a32a;
}

.sb-stat-analyze .sb-analyze-remaining {
    margin-top: 10px;
    font-size: 12px;
    padding: 6px 12px;
    height: auto;
    line-height: 1.4;
}

/* Issues Table */
.sb-issues-table-container {
    margin: 0 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sb-issues-table-container .wp-list-table {
    margin: 0;
    border: none;
}

.sb-issues-table-container .wp-list-table th,
.sb-issues-table-container .wp-list-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f1;
}

.sb-issues-table-container .wp-list-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 2px solid #c3c4c7;
}

.sb-issues-table-container .wp-list-table tr:hover {
    background: #f6f7f7;
}

/* Severity Badges */
.sb-severity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-severity-critical {
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #f0b7b8;
}

.sb-severity-high {
    background: #fcf9e8;
    color: #dba617;
    border: 1px solid #f0d879;
}

.sb-severity-medium {
    background: #f0f6fc;
    color: #72aee6;
    border: 1px solid #b8d4f0;
}

.sb-severity-low {
    background: #f0f8f0;
    color: #00a32a;
    border: 1px solid #b8e6b8;
}

/* Status Badges */
.sb-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-status-active {
    background: #f0f8f0;
    color: #00a32a;
    border: 1px solid #b8e6b8;
}

.sb-status-fixed {
    background: #f0f6fc;
    color: #72aee6;
    border: 1px solid #b8d4f0;
}

.sb-status-ignored_temp {
    background: #fcf9e8;
    color: #dba617;
    border: 1px solid #f0d879;
}

.sb-status-ignored_permanent {
    background: #f6f7f7;
    color: #646970;
    border: 1px solid #dcdcde;
}

/* Action Links */
.sb-update-status {
    color: #2271b1;
    text-decoration: none;
    font-size: 12px;
}

.sb-update-status:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Filters */
.sb-issues-table-container .alignleft.actions {
    padding: 15px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sb-issues-table-container .alignleft.actions select,
.sb-issues-table-container .alignleft.actions input[type="text"] {
    margin: 0;
    min-width: 150px;
}

.sb-issues-table-container .alignleft.actions input[type="text"] {
    min-width: 200px;
}

/* Progress Modal */
.sb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sb-modal-header {
    padding: 20px;
    border-bottom: 1px solid #c3c4c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7f7;
}

.sb-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.sb-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #646970;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.sb-modal-close:hover {
    background: #c3c4c7;
    color: #1d2327;
}

.sb-modal-body {
    padding: 20px;
}

.sb-modal-footer {
    padding: 20px;
    border-top: 1px solid #c3c4c7;
    background: #f6f7f7;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Progress Bar */
.sb-progress-bar-container {
    margin-bottom: 20px;
}

.sb-progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a32a, #00a32a);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.sb-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sb-progress-text {
    text-align: center;
    margin-top: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 16px;
}

/* Progress Stats */
.sb-progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 6px;
}

.sb-stat-item {
    text-align: center;
}

.sb-stat-item .sb-stat-label {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 4px;
}

.sb-stat-item .sb-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* Recent Analysis */
.sb-recent-analysis h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1d2327;
}

.sb-recent-analysis ul {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
}

.sb-recent-analysis li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    font-size: 13px;
}

.sb-recent-analysis li:last-child {
    border-bottom: none;
}

.sb-recent-analysis strong {
    color: #1d2327;
}

.sb-recent-analysis small {
    color: #646970;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sb-stats-cards {
        grid-template-columns: 1fr;
        margin: 0 10px 20px 10px;
    }
    
    .sb-issues-table-container {
        margin: 0 10px;
    }
    
    .sb-issues-table-container .alignleft.actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sb-issues-table-container .alignleft.actions select,
    .sb-issues-table-container .alignleft.actions input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .sb-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .sb-progress-stats {
        grid-template-columns: 1fr;
    }
}

/* Body class for modal */
body.sb-modal-open {
    overflow: hidden;
}

/* Notice styles */
.notice {
    margin: 15px 20px;
}

/* Table improvements */
.wp-list-table .column-issue {
    width: 40%;
}

.wp-list-table .column-url {
    width: 25%;
}

.wp-list-table .column-severity {
    width: 12%;
}

.wp-list-table .column-status {
    width: 12%;
}

.wp-list-table .column-actions {
    width: 11%;
}

/* Loading states */
.sb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Row transition animations */
.sb-issue-row {
    transition: all 0.3s ease;
}

.sb-issue-row.sb-transitioning {
    opacity: 0.6;
    background-color: #f0f6fc;
    position: relative;
}

.sb-issue-row.sb-transitioning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 113, 177, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

.sb-issue-row.sb-updated {
    transform: scale(0.98);
    background-color: #f0f8f0;
    border-left: 3px solid #00a32a;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Status badges */
.sb-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sb-status-fixed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.sb-status-ignored_temp {
    background-color: #fff3cd;
    color: #664d03;
}

.sb-status-ignored_permanent {
    background-color: #f8d7da;
    color: #721c24;
}

/* Extra data display for issues table */
.sb-extra-data {
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-left: 3px solid #dc3232;
    border-radius: 3px;
    font-size: 12px;
}

.sb-extra-data strong {
    color: #333;
    font-size: 11px;
}

.sb-extra-data ul {
    margin: 6px 0 0 0;
    padding-left: 16px;
}

.sb-extra-data li {
    margin-bottom: 3px;
    font-size: 11px;
    line-height: 1.3;
}

.sb-extra-data a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}

.sb-extra-data a:hover {
    text-decoration: underline;
}

.sb-extra-data em {
    color: #666;
    font-style: normal;
    font-size: 10px;
}

/* Current analysis display */
.sb-current-analysis {
    background: #e7f3ff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    display: none;
}

.sb-current-analysis-content {
    color: #2271b1;
}

.sb-current-analysis strong {
    color: #135e96;
}

.sb-current-url {
    font-family: monospace;
    background: rgba(34, 113, 177, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    word-break: break-all;
}

.sb-pending-count {
    color: #666;
    font-style: italic;
}

/* Analysis controls */
.sb-analysis-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

.sb-analysis-controls .button {
    margin: 0;
}

.sb-analysis-controls .button.danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.sb-analysis-controls .button.danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.sb-analysis-controls .button.danger:disabled {
    background: #d63638;
    border-color: #d63638;
    opacity: 0.6;
}

/* View Toggle Styles */
.sb-view-toggle {
    margin-bottom: 20px;
}

.sb-view-toggle .button-group {
    display: inline-block;
    margin-right: 20px;
}

.sb-view-toggle .button-group .button {
    border-radius: 0;
    margin-right: -1px;
}

.sb-view-toggle .button-group .button:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.sb-view-toggle .button-group .button:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.sb-view-toggle .button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.sb-view-filters {
    margin-top: 10px;
}

.sb-view-filters label {
    font-weight: normal;
    cursor: pointer;
}

/* Issue Type Cards */
.sb-issue-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sb-issue-type-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb-issue-type-card:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sb-issue-type-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.sb-issue-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sb-affected-count {
    font-weight: bold;
    color: #0073aa;
}

/* URL Issues Detail */
#sb-url-issues-detail {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.sb-url-issues-content {
    max-height: 600px;
    overflow-y: auto;
}

/* Collapsible Sections (Metabox Style) */
.sb-analysis-section {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sb-collapsible-header {
    background: #f1f1f1;
    padding: 12px 15px;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.sb-collapsible-header:hover {
    background: #e1e1e1;
}

.sb-collapse-icon {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.sb-collapsible-content {
    padding: 15px;
}

.sb-analysis-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: #fafafa;
    border-radius: 3px;
    border-left: 3px solid #ddd;
}

.sb-analysis-item:last-child {
    margin-bottom: 0;
}

.sb-analysis-item .dashicons {
    margin-right: 10px;
    margin-top: 2px;
    color: #666;
}

.sb-issue-content {
    flex: 1;
}

.sb-issue-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Issue Checkbox Styles */
.sb-issue-checkbox {

    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.sb-issue-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.sb-analysis-item.sb-issue-fixed {
    opacity: 0.7;
    background: #f0f8f0;
    border-left-color: #00a32a;
}

.sb-analysis-item.sb-issue-fixed .sb-issue-message {
    text-decoration: line-through;
    color: #666;
}

.sb-loading-indicator {
    margin-left: 5px;
    font-size: 14px;
    display: inline-block;
    animation: spin 1s linear infinite;
}

.sb-issue-content-wrapper {
    flex: 1;
}

.sb-severity-icon {
    flex-shrink: 0;
}

.sb-status-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
}

.sb-status-fixed {
    background: #d4edda;
    color: #155724;
}

.sb-status-ignored_temp {
    background: #fff3cd;
    color: #856404;
}

.sb-status-ignored_permanent {
    background: #f8d7da;
    color: #721c24;
}

/* Severity Badges */
.sb-severity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.sb-severity-critical {
    background: #dc3545;
    color: white;
}

.sb-severity-high {
    background: #fd7e14;
    color: white;
}

.sb-severity-medium {
    background: #ffc107;
    color: #212529;
}

.sb-severity-low {
    background: #28a745;
    color: white;
}

/* URL Expand Button */
.sb-url-expand {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.sb-url-expand:hover {
    color: #005177;
}

.sb-url-expand .dashicons {
    font-size: 12px;
    margin-right: 4px;
}

/* URL Actions */
.sb-url-actions {
    text-align: center;
}

.sb-expand-url {
    font-size: 12px;
    padding: 4px 8px;
}

/* Loading States */
.sb-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Inline URL Issues */
.sb-url-issues-inline {
    background: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 15px !important;
    margin: 10px 0 !important;
}

/* Table styling improvements */
.wp-list-table .sb-url-row td {
    vertical-align: top;
    padding: 12px 8px;
}

.wp-list-table .sb-url-row .column-url {
    max-width: 300px;
}

.wp-list-table .sb-url-row .column-issue_count,
.wp-list-table .sb-url-row .column-critical,
.wp-list-table .sb-url-row .column-high,
.wp-list-table .sb-url-row .column-medium,
.wp-list-table .sb-url-row .column-low {
    text-align: center;
    font-weight: bold;
}

.sb-url-detail-row td {
    padding: 0 !important;
    border-top: none !important;
}

/* Issue Type URLs */
.sb-issue-type-urls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.sb-issue-type-urls-list h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.sb-url-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-url-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.sb-url-item:last-child {
    border-bottom: none;
}

.sb-url-link {
    flex: 1;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.sb-url-link:hover {
    color: #005177;
    text-decoration: underline;
}

.sb-view-url-issues {
    font-size: 11px;
    padding: 2px 6px;
    height: auto;
    line-height: 1.4;
}

/* URL Row Hover */
.wp-list-table .sb-url-row:hover {
    background-color: #f0f0f1 !important;
    cursor: pointer;
}

.wp-list-table .sb-url-row:hover .sb-url-expand {
    color: #005177 !important;
}

.sb-url-expand {
    cursor: pointer;
    color: #0073aa;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

.sb-url-expand:hover {
    color: #005177;
    text-decoration: underline;
}

/* Issue Type Card Improvements */
.sb-issue-type-card {
    position: relative;
    overflow: hidden;
}

.sb-issue-type-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,115,170,0.1));
    transition: width 0.3s ease;
}

.sb-issue-type-card:hover::after {
    width: 4px;
}

.sb-issue-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.sb-affected-count {
    font-weight: bold;
    color: #0073aa;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sb-issue-types-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-analysis-item {
        flex-direction: column;
    }
    
    .sb-issue-actions {
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .sb-url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sb-url-link {
        flex: none;
    }
}
