/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

/* Hero Section Styles */
.unplug-hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.unplug-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.unplug-hero-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.unplug-hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
}

.unplug-hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.unplug-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.unplug-feature .dashicons {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Preview Styles */
.unplug-dashboard-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.unplug-dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.unplug-preview-header {
    background: #f1f1f1;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.unplug-preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.unplug-preview-dot:nth-child(1) {
    background: #ff5f57;
}

.unplug-preview-dot:nth-child(2) {
    background: #ffbd2e;
}

.unplug-preview-dot:nth-child(3) {
    background: #28ca42;
}

.unplug-preview-content {
    padding: 20px;
}

.unplug-preview-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.unplug-preview-row:last-child {
    border-bottom: none;
}

.unplug-preview-plugin {
    font-weight: 600;
    color: #2c3e50;
}

.unplug-preview-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
}

.unplug-preview-status.active {
    background: #d4edda;
    color: #155724;
}

.unplug-preview-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.unplug-preview-result {
    font-size: 14px;
    font-weight: 500;
}

.unplug-preview-result.used {
    color: #28a745;
}

.unplug-preview-result.unused {
    color: #dc3545;
}

.unplug-preview-result.maybe {
    color: #ffc107;
}

/* Benefits Section Styles */
.unplug-benefits-section {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.unplug-benefits-section h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
}

.unplug-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.unplug-benefit {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unplug-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.unplug-benefit-icon {
    margin-bottom: 25px;
}

.unplug-benefit-icon .dashicons {
    font-size: 48px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.unplug-benefit h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 18px;
}

.unplug-benefit p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 15px;
}

/* Results Header Enhancement */
.unplug-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.unplug-results-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.unplug-results-description {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Column Legend Styles */
.unplug-column-legend {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.unplug-legend-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unplug-legend-item strong {
    color: #2c3e50;
    font-size: 14px;
}

.unplug-legend-item span {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Enhanced Quick Stats */
.unplug-stats h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-label {
    font-weight: 500;
    color: #495057;
}

.stat-value {
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
}

/* Responsive Design for Hero Section */
@media (max-width: 1024px) {
    .unplug-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .unplug-dashboard-preview {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .unplug-hero-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .unplug-hero-section {
        padding: 40px 25px;
        margin-bottom: 30px;
    }
    
    .unplug-hero-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .unplug-hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .unplug-benefits-section {
        margin-top: 30px;
        padding: 30px 25px;
    }
    
    .unplug-benefits-section h3 {
        margin-bottom: 35px;
    }
    
    .unplug-benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .unplug-column-legend {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .unplug-results-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .unplug-advanced-intro {
        margin-bottom: 35px;
        padding: 30px 25px;
    }
    
    .unplug-advanced-sections {
        gap: 25px;
    }
    
    .unplug-advanced-section {
        padding: 25px;
    }
}

/* Dashboard Styles */
#unplug-dashboard {
    max-width: 1200px;
}

.unplug-intro {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #0073aa;
}

.unplug-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1d2327;
}

.unplug-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.unplug-tier-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tier-label {
    font-weight: 600;
    color: #1d2327;
}

.tier-value {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.tier-free {
    background-color: #e1e1e1;
    color: #666;
}

.tier-pro {
    background-color: #0073aa;
    color: #fff;
}

.tier-agency {
    background-color: #d63638;
    color: #fff;
}

/* Tier badges for buttons */
.button .tier-badge {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
}

.button .tier-badge.tier-pro {
    background-color: #0073aa;
    color: #fff;
}

.button .tier-badge.tier-agency {
    background-color: #d63638;
    color: #fff;
}

/* Disabled button styling */
.button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.button.disabled:hover {
    background: inherit;
    border-color: inherit;
    color: inherit;
}

/* Tooltip styling for disabled buttons */
.button.disabled[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.unplug-upgrade-notice {
    background: #f0f6fc;
    border: 1px solid #c3dcf0;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.unplug-upgrade-notice p {
    margin: 0 0 10px 0;
    color: #1d2327;
}

.unplug-upgrade-notice .button {
    margin-top: 5px;
}

/* Tab Navigation */
.unplug-tabs {
    display: flex;
    background: #f1f1f1;
    border-bottom: 1px solid #ccd0d4;
    margin: 0 -20px;
    padding: 0 20px;
    width: calc(100% + 40px);
}

.unplug-tab-link {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.unplug-tab-link:hover {
    background: #e8e8e8;
    color: #333;
}

.unplug-tab-link.active {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.unplug-tab-content {
    padding: 30px 0;
    width: 100%;
}

/* Dashboard Layout */
.unplug-dashboard-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

.unplug-sidebar {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 25px;
    height: fit-content;
}

.unplug-stats h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    gap: 18px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
}

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

.stat-label {
    font-size: 13px;
    color: #646970;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.unplug-main-content {
    min-height: 400px;
}

/* Scan Controls */
.unplug-scan-controls {
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.unplug-scan-controls .button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: auto;
    font-size: 14px;
    font-weight: 500;
}

.unplug-scan-controls .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.unplug-scan-controls .button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    box-shadow: 0 1px 0 #006ba1;
}

.unplug-scan-controls .button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.unplug-scan-controls .button-primary:disabled {
    background: #c3dcf0 !important;
    border-color: #c3dcf0 !important;
    color: #a7aaad !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Hide icon and text when loading */
.button.loading .dashicons,
.button.loading .button-text {
  opacity: 0 !important;
  pointer-events: none;
}

.unplug-scan-controls .button {
  min-width: 180px;
  justify-content: center;
}

/* Progress Bar */
.unplug-progress-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
}

.unplug-progress-bar {
    width: 100%;
    height: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.unplug-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.unplug-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: progress-shine 2s infinite;
}

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

#progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

/* Results Section */
.unplug-results-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
}

.unplug-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.unplug-results-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 18px;
    font-weight: 600;
}

.unplug-results-actions {
    display: flex;
    gap: 12px;
}

.unplug-results-actions .button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
}

#unplug-results-content {
    min-height: 200px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    text-align: center;
    color: #646970;
}

/* Advanced Tab Styles */
.unplug-advanced-content {
    max-width: 1200px;
    margin: 0 auto;
}

.unplug-advanced-intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.unplug-advanced-intro h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.unplug-advanced-intro p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.unplug-advanced-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.unplug-advanced-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.unplug-advanced-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.unplug-advanced-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.unplug-advanced-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.unplug-advanced-section p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.unplug-advanced-section .context-actions,
.unplug-advanced-section .unplug-analysis-controls,
.unplug-advanced-section .unplug-conflict-controls,
.unplug-advanced-section .unplug-warning-controls,
.unplug-advanced-section .unplug-safe-mode-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.unplug-advanced-section .button {
    font-size: 13px;
    padding: 8px 16px;
    height: auto;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unplug-advanced-section .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.unplug-advanced-section .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.unplug-advanced-section .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.unplug-advanced-section .button-secondary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.unplug-advanced-section .button-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* Specific section styling */
.unplug-advanced-section:nth-child(1) h4::before {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.unplug-advanced-section:nth-child(2) h4::before {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.unplug-advanced-section:nth-child(3) h4::before {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.unplug-advanced-section:nth-child(4) h4::before {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.unplug-advanced-section:nth-child(5) h4::before {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Plugin Analysis Table Styles */
.unplug-plugins-table-container {
    margin-top: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.unplug-plugins-table {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.unplug-plugins-table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 16px 18px;
    font-weight: 600;
    color: #495057;
}

.unplug-plugins-table td {
    padding: 18px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.unplug-plugins-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Plugin Name Column */
.plugin-name strong {
    color: #2c3e50;
    font-size: 14px;
    margin-right: 8px;
}

.plugin-version {
    color: #6c757d;
    font-size: 12px;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.plugin-description {
    color: #6c757d;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

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

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Test Result Styles */
.test-result {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.result-used {
    background-color: #d4edda;
    color: #155724;
}

.result-possibly_used {
    background-color: #fff3cd;
    color: #856404;
}

.result-no_usage {
    background-color: #f8d7da;
    color: #721c24;
}

.result-untested {
    background-color: #e2e3e5;
    color: #6c757d;
}

.result-safe {
    background-color: #d4edda;
    color: #155724;
}

.result-warning {
    background-color: #fff3cd;
    color: #856404;
}

.result-critical {
    background-color: #f8d7da;
    color: #721c24;
}

/* Speed Impact Styles */
.speed-impact {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.impact-high {
    background-color: #f8d7da;
    color: #721c24;
}

.impact-medium {
    background-color: #fff3cd;
    color: #856404;
}

.impact-low {
    background-color: #d4edda;
    color: #155724;
}

/* Location Count */
.location-count {
    font-weight: 500;
    color: #495057;
    margin-right: 8px;
}

.view-locations {
    font-size: 12px;
    text-decoration: none;
    color: #007cba;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.view-locations:hover {
    background-color: #f0f8ff;
    text-decoration: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.action-buttons .button {
    font-size: 12px;
    padding: 4px 8px;
    height: auto;
    line-height: 1.2;
    border-radius: 4px;
    white-space: nowrap;
}

.run-activity-test {
    background-color: #007cba;
    color: white;
    border-color: #005a87;
}

.run-activity-test:hover {
    background-color: #005a87;
    color: white;
}

.run-location-test {
    background-color: #00a32a;
    color: white;
    border-color: #007a20;
}

.run-location-test:hover {
    background-color: #007a20;
    color: white;
}

.run-speed-test {
    background-color: #ff6900;
    color: white;
    border-color: #cc5400;
}

.run-speed-test:hover {
    background-color: #cc5400;
    color: white;
}

.run-deactivation-test {
    background-color: #dc3545;
    color: white;
    border-color: #bd2130;
}

.run-deactivation-test:hover {
    background-color: #bd2130;
    color: white;
}

.toggle-plugin-details {
    color: #6c757d;
    font-size: 12px;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.toggle-plugin-details:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #495057;
}

/* Plugin Details Row */
.plugin-details-row {
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
}

.plugin-details-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.plugin-info h4,
.test-results-details h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.plugin-info p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

.plugin-info strong {
    color: #2c3e50;
    margin-right: 8px;
}

.plugin-info a {
    color: #007cba;
    text-decoration: none;
}

.plugin-info a:hover {
    text-decoration: underline;
}

.test-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.test-detail {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.test-detail strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.test-detail p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

/* Column Widths */
.column-plugin-name {
    width: 25%;
}

.column-status {
    width: 10%;
}

.column-activity {
    width: 16%;
    white-space: nowrap;
}

.column-locations {
    width: 12%;
}

/* Ensure 'Locations' header and cells are centered */
.unplug-plugins-table th.column-locations {
    text-align: center !important;
}
.unplug-plugins-table td.plugin-locations {
    text-align: center !important;
}

/* Center remaining column headers for uniform alignment */
.unplug-plugins-table thead th.column-plugin-name,
.unplug-plugins-table thead th.column-status,
.unplug-plugins-table thead th.column-activity,
.unplug-plugins-table thead th.column-speed,
.unplug-plugins-table thead th.column-deactivation,
.unplug-plugins-table thead th.column-actions {
  text-align: center !important;
}

.column-speed {
    width: 12%;
}

.column-deactivation {
    width: 12%;
}

.column-actions {
    width: 17%;
}

/* Plugin Table Styles */
.unplug-plugins-table {
    width: 100%;
    border-collapse: collapse;
}

.unplug-plugins-table th,
.unplug-plugins-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 8px;
}

/* Column width adjustments */
.unplug-plugins-table .column-plugin-name {
    width: 25%;
}

.unplug-plugins-table .column-status {
    width: 10%;
    text-align: center;
}

.unplug-plugins-table .column-activity {
    width: 12%;
    text-align: center;
}

.unplug-plugins-table .column-locations {
    width: 12%;
    text-align: center;
}

.unplug-plugins-table .column-speed {
    width: 12%;
    text-align: center;
}

.unplug-plugins-table .column-deactivation {
    width: 12%;
    text-align: center;
}

.unplug-plugins-table .column-actions {
    width: 17%;
    text-align: center;
}

/* Actions column content alignment */
.unplug-plugins-table .plugin-actions {
    text-align: center;
}

.unplug-plugins-table .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.unplug-plugins-table .action-buttons .button {
    min-width: 120px;
    font-size: 12px;
    padding: 4px 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plugin-details-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .unplug-tabs {
        margin-bottom: 20px;
    }
    
    .unplug-tab-link {
        padding: 12px 20px;
        font-size: 13px;
        margin-right: 3px;
    }
    
    .unplug-tab-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .unplug-dashboard-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .unplug-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .unplug-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .unplug-tab-link {
        padding: 12px 18px;
        font-size: 13px;
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
        display: inline-block;
        margin-right: 2px;
        flex-shrink: 0;
    }
    
    .unplug-scan-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .unplug-scan-controls .button {
        justify-content: center;
    }
    
    .unplug-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .unplug-results-actions {
        justify-content: center;
    }
    
    .context-actions {
        flex-direction: column;
    }
    
    .unplug-analysis-controls {
        flex-direction: column;
    }
    
    .unplug-plugins-table {
        font-size: 12px;
    }
    
    .unplug-plugins-table th,
    .unplug-plugins-table td {
        padding: 8px;
    }
    
    .plugin-description {
        display: none;
    }
    
    .test-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .unplug-tabs {
        margin-bottom: 15px;
        padding-bottom: 3px;
    }
    
    .unplug-tab-link {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
        margin-right: 1px;
    }
    
    .unplug-tab-content {
        padding: 15px;
    }
    
    .unplug-dashboard-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .unplug-hero-section {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .unplug-hero-text h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .unplug-hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .unplug-benefits-section {
        padding: 25px 20px;
    }
    
    .unplug-advanced-intro {
        padding: 25px 20px;
    }
    
    .unplug-advanced-section {
        padding: 20px;
    }
}

/* Loading States */
.button.loading {
    position: relative;
}

.button.loading::after {
    content: '';
    position: absolute;
    inset: 0;               /* center within the button */
    margin: auto;           /* works with inset to center */
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor; /* visible spinner using button color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    pointer-events: none;
}

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

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-active {
    background-color: #46b450;
}

.status-inactive {
    background-color: #dc3232;
}

.status-unknown {
    background-color: #ffb900;
}

/* Notices */
.unplug-notice {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.unplug-notice.success {
    background: #d4edda;
    border-left-color: #46b450;
    color: #155724;
}

.unplug-notice.error {
    background: #f8d7da;
    border-left-color: #dc3232;
    color: #721c24;
}

.unplug-notice.warning {
    background: #fff3cd;
    border-left-color: #ffb900;
    color: #856404;
}

.unplug-notice.info {
    background: #d1ecf1;
    border-left-color: #0073aa;
    color: #0c5460;
}

/* Settings Tab Styles */
.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.tier-free {
    background-color: #e1e1e1;
    color: #666;
}

.tier-pro {
    background-color: #0073aa;
    color: #fff;
}

.tier-agency {
    background-color: #d63638;
    color: #fff;
}

.tier-features {
    margin-top: 15px;
}

.tier-features ul {
    list-style: disc;
    margin-left: 20px;
}

.tier-features li {
    margin-bottom: 5px;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.help-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.help-card h3,
.help-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.help-card p {
    margin-bottom: 15px;
}

.api-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.api-status-free {
    background-color: #e1e1e1;
    color: #666;
}

.api-status-pro {
    background-color: #00a32a;
    color: #fff;
}

.api-status-agency {
    background-color: #d63638;
    color: #fff;
}

.unplug-help-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.unplug-help-section h3 {
    margin-bottom: 20px;
    color: #65626F;
}

#unplug-tab-settings .form-table th {
    width: 200px;
}

#unplug-tab-settings .form-table td {
    vertical-align: top;
}

#toggle-token-visibility {
    margin-left: 10px;
    vertical-align: top;
}

#toggle-token-visibility .dashicons {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.api-token-warning {
    margin-top: 5px !important;
    font-weight: bold;
}

.unplug-dashboard-content {
    width: 100%;
}

.unplug-main-content {
    width: 100%;
    max-width: none;
}

/* Make main dashboard and table containers full width */
.unplug-dashboard-content,
.unplug-main-content,
.unplug-plugins-table-container {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.unplug-plugins-table {
  width: 100% !important;
  max-width: none !important;
  table-layout: auto;
}

/* Advanced tab visibility and style */
.unplug-advanced-content {
  min-height: 300px;
  background: #fff;
  padding: 32px 24px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 32px;
}

/* Ensure tab content is only hidden by JS, not by default */
.unplug-tab-content {
  display: none;
}
.unplug-tab-content.active {
  display: block;
}

/* Ensure the main tab and all plugin table containers are truly full width */
#unplug-tab-main,
.unplug-dashboard-content,
.unplug-main-content,
.unplug-plugins-table-container,
.unplug-plugins-table {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Responsive fix: Only make the plugin table and its containers full width, not the entire admin page */
#unplug-tab-main,
.unplug-main-content,
.unplug-plugins-table-container,
.unplug-plugins-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Remove previous rules that forced 100vw on .wrap and .dashboard-content */
body.toplevel_page_unplug .wrap {
  padding: 0 !important;
  margin: 0 !important;
  /* Remove width and max-width rules here */
}

/* Hide WordPress admin footer on Unplug pages to prevent overlap in long layouts */
body.toplevel_page_unplug #wpfooter,
body.unplug_page_unplug-settings #wpfooter {
  display: none !important;
}

#unplug-tab-main .unplug-dashboard-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure table is scrollable on small screens */
.unplug-plugins-table-container {
  overflow-x: auto;
}

/* Responsive table font size for small screens */
@media (max-width: 800px) {
  .unplug-plugins-table th,
  .unplug-plugins-table td {
    font-size: 13px;
    padding: 8px;
  }
}