/**
 * VMPFence Scan Page Styles
 *
 * @package VMPFence
 * @since 1.0.0
 * @since 2.0.0 Updated styles for new scan page layout.
 * @since 2.2.2 Improved UI/UX design
 * @since 2.2.6 Scan Results UI update
 */

/* Scan Header */
.vmpfence-scan-header {
    background: #fff;
    color: #333;
    padding: 30px;
    margin: 0;
    /* border-radius: 4px; */
    border: 1px solid #ddd;
    text-align: center;
    box-shadow: none;
}
.brand-header {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

/* Scan Premium Item */
.vmpfence-scan-premium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 8px; */
    background: #ffffff;
    padding: 30px 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    /* min-height: 304px; */
}

/* Premium Section Styles */
.vmpfence-scan-premium-disabled {
    text-align: left;
    padding: 20px;
}

.vmpfence-scan-premium-disabled h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.vmpfence-scan-premium-disabled p {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.vmpfence-scan-premium-buttons {
    display: flex;
    gap: 10px;
}

.vmpfence-scan-premium-upgrade-btn {
    background: #191970;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.vmpfence-scan-premium-upgrade-btn:hover {
    color: white;
    transform: translateY(-1px);
}

.vmpfence-scan-premium-learn-btn {
    background: white;
    color: #191970;
    padding: 10px 24px;
    border: 1px solid #191970;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: not-allowed;
    opacity: 0.6;
}

.vmpfence-scan-premium-learn-btn:hover {
    /* Disabled - no hover effect */
}

.vmpfence-scan-premium-enabled {
    text-align: center;
    padding: 40px 20px;
}

.vmpfence-scan-premium-enabled h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

.vmpfence-scan-premium-enabled p {
    margin: 15px 0 0 0;
    color: #666;
}

/* Scan Enabled State */
.vmpfence-scan-enabled {
    text-align: center;
    /* padding: 40px 20px; */
}

.vmpfence-scan-enabled svg {
    margin-bottom: 20px;
}

.vmpfence-scan-enabled h2 {
    margin: 0;
    font-size: 18px;
    color: #191970;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Scan Disabled State */
.vmpfence-scan-disabled h2 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 30px;
}

.vmpfence-scan-disabled p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.vmpfence-scan-disabled p:last-child {
    margin: 0;
}

#vmpfence-enable-scans-btn {
    padding: 5px 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Main Scan Grid */
.vmpfence-scan-grid {
    max-width: 1300px;
    margin: 0;
    background: #e9ebec;
}

/* Top Row: Header + Premium Panel */
.vmpfence-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* margin-bottom: 20px; */
}

/* Bottom Row: 3 Cards */
.vmpfence-scan-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 20px; */
    margin-bottom: 10px;
    width: 100%;
    max-width: 1300px;
}

/* Scan Cards */
.vmpfence-scan-card {
    background: white;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
    padding: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 140px;
    transition: none;
}

.vmpfence-scan-card:hover {
    box-shadow: none;
}

.vmpfence-scan-progress {
    flex-shrink: 0;
}

.vmpfence-scan-info {
    flex: 1;
}

.vmpfence-scan-info h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-align: center;
}

.vmpfence-scan-info p {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.vmpfence-scan-info .vmpfence-manage-link {
    color: #191970;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
}

.vmpfence-scan-info .vmpfence-manage-link:hover {
    text-decoration: underline;
}

/* Circle Progress Charts */
.vmpfence-circle-chart {
    width: 120px;
    height: 120px;
}

.vmpfence-circle-bg {
    opacity: 1;
}

.vmpfence-circle-text {
    fill: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vmpfence-scan-header {
        padding: 20px;
    }
    
    .vmpfence-scan-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .vmpfence-scan-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vmpfence-premium-protection {
        padding: 20px;
    }
}

/* Scan Actions and Status Section */
.vmpfence-scan-actions {
    margin-top: 10px;
    background: white;
    /* padding: 20px; */
    max-width: 1300px;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
    margin-bottom: 20px;
}

.vmpfence-scan-actions-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* gap: 30px; */
    align-items: stretch;
    /* margin-bottom: 30px; */
    padding-bottom: 20px;
}

/* Start Scan Button */
.vmpfence-start-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    height: 100%;
    padding: 25px;
}

.vmpfence-btn-start-scan {
    /* background: #2196F3; */
    background: #191970;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.vmpfence-btn-start-scan:hover {
    background: #20409A;
}

/* Help and Options Sections */
.vmpfence-help-section,
.vmpfence-options-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    height: 100%;
    justify-content: center;
}

.vmpfence-help-icon,
.vmpfence-options-icon {
    flex-shrink: 0;
}

.vmpfence-help-content h3,
.vmpfence-options-content h3 {
    color: #2196F3;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.vmpfence-help-content p,
.vmpfence-options-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Scan Status Row */
.vmpfence-scan-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
}

.vmpfence-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.vmpfence-status-icon {
    margin-bottom: 8px;
}

.vmpfence-status-text p {
    font-size: 12px;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.vmpfence-status-text .vmpfence-status-sub {
    color: #666;
    font-size: 11px;
}

/* Status Item States */
.vmpfence-status-item.vmpfence-success .vmpfence-status-text p {
    color: #4CAF50;
    font-weight: 500;
}

.vmpfence-status-item.vmpfence-warning .vmpfence-status-text p {
    color: #FFA726;
    font-weight: 500;
}

.vmpfence-status-item.vmpfence-grey .vmpfence-status-text p {
    color: #9E9E9E;
    font-weight: 500;
}

.vmpfence-status-item.vmpfence-grey .vmpfence-status-icon svg {
    opacity: 0.6;
}

/* Active scanning state */
.vmpfence-status-item.scanning-active {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.vmpfence-status-item.scanning-active .vmpfence-status-text p {
    color: #2196F3;
    font-weight: 600;
}

/* Responsive Design for Actions Section */
@media (max-width: 1024px) {
    .vmpfence-scan-actions-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        border: 1px solid #ddd;
    }
    
    .vmpfence-scan-status-row {
        justify-content: center;
        gap: 10px;
    }
    
    .vmpfence-status-item {
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .vmpfence-scan-status-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Scan Results Section */
.vmpfence-scan-results {
    margin-top: 30px;
    background: white;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
    max-width: 1300px;
}

/* Scan Status Header */
.vmpfence-scan-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.vmpfence-scan-complete {
    color: #333;
    font-size: 14px;
}

.vmpfence-scan-timestamp {
    color: #666;
    font-weight: 500;
}

.vmpfence-scan-message {
    margin-left: 5px;
    display: inline;
}

.vmpfence-scan-logs {
    display: flex;
    gap: 15px;
}

.vmpfence-log-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.vmpfence-log-link:hover {
    text-decoration: underline;
}

/* Results Tabs Section */
.vmpfence-results-tabs-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.vmpfence-results-tabs {
    display: flex;
    gap: 20px;
}

.vmpfence-tab {
    padding: 10px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vmpfence-tab.vmpfence-tab-active {
    /* background: #2196F3; */
    background: #191970;
    color: white;
    border-color: #191970;
}

.vmpfence-tab-count {
    font-weight: 600;
}

.vmpfence-results-actions {
    display: flex;
    gap: 15px;
}

.vmpfence-btn-delete,
.vmpfence-btn-bulk-delete,
.vmpfence-btn-repair {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vmpfence-btn-delete:hover,
.vmpfence-btn-bulk-delete:hover,
.vmpfence-btn-repair:hover {
    border-color: #2196F3;
    color: #2196F3;
}

/* Statistics Row */
.vmpfence-stats-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.vmpfence-stat-item {
    text-align: center;
    flex: 1;
}

.vmpfence-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.vmpfence-stat-count {
    font-size: 18px;
    font-weight: 600;
    color: #2196F3;
}

/* No Issues Message */
.vmpfence-no-issues {
    padding: 30px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.vmpfence-no-issues-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px 20px;
    border-left: 4px solid #4caf50;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

/* vmpfence Care Section */
.vmpfence-about-section {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 4px 4px;
}

.vmpfence-about-section h3 {
    color: #2196F3;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.vmpfence-about-section p {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    max-width: 1300px;
}

.vmpfence-about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1300px;
}

.vmpfence-feature {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vmpfence-feature strong {
    color: #2196F3;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Responsive Design for Results Section */
@media (max-width: 1024px) {
    .vmpfence-results-tabs-section {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .vmpfence-results-tabs {
        justify-content: center;
    }
    
    .vmpfence-results-actions {
        justify-content: center;
    }
    
    .vmpfence-stats-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .vmpfence-stat-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .vmpfence-scan-status-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .vmpfence-about-features {
        flex-direction: column;
        align-items: center;
    }
    
    .vmpfence-feature {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
}

/* Scan Progress Overlay */
.vmpfence-scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
}

.vmpfence-scan-progress-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    text-align: center;
}

.vmpfence-scan-progress-modal h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 20px 0;
}

.vmpfence-progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.vmpfence-progress-fill {
    height: 100%;
    background: #2196F3;
    width: 0%;
    transition: width 0.3s ease;
    animation: vmpfence-progress-animation 2s infinite;
}

@keyframes vmpfence-progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.vmpfence-progress-text {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

.vmpfence-progress-files {
    font-weight: 600;
    color: #2196F3;
}

.vmpfence-progress-status {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Scan Notifications */
.vmpfence-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin: 0 0 20px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.vmpfence-notification-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.vmpfence-notification-warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid #ff9800;
}

.vmpfence-notification-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.vmpfence-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-left: 15px;
}

.vmpfence-notification-close:hover {
    opacity: 1;
}

/* Scan Issues List */
.vmpfence-scan-issues-list {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.vmpfence-scan-issues-list h4 {
    color: #333;
    font-size: 18px;
    margin: 0 0 20px 0;
}

.vmpfence-issue-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.vmpfence-issue-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.vmpfence-issue-content {
    flex: 1;
}

.vmpfence-issue-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.vmpfence-issue-file {
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.vmpfence-issue-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.vmpfence-issue-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.vmpfence-btn-view-diff,
.vmpfence-btn-restore,
.vmpfence-btn-delete,
.vmpfence-btn-bulk-delete {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vmpfence-btn-view-diff:hover,
.vmpfence-btn-restore:hover {
    border-color: #2196F3;
    color: #2196F3;
}

.vmpfence-btn-delete:hover,
.vmpfence-btn-bulk-delete:hover {
    border-color: #f44336;
    color: #f44336;
}

/* Issue Type Specific Styling */
.vmpfence-issue-modified {
    border-left: 4px solid #ff9800;
}

.vmpfence-issue-unknown {
    border-left: 4px solid #f44336;
}

/* Three-Column Layout for Issues */
.vmpfence-issue-item {
    display: block;
    position: relative;
    border: 1px solid #ddd;
    margin-bottom: 2px;
    background: white;
    border-radius: 0;
    padding: 0;
}

.vmpfence-issue-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.vmpfence-issue-col-1 {
    flex: 1;
    min-width: 250px;
    max-width: 60%;
    padding-right: 15px;
}

.vmpfence-issue-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.vmpfence-issue-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    font-size: 20px;
    background: #f0f0f0;
    border-radius: 6px;
}

.vmpfence-issue-icon svg {
    width: 40px;
    height: 40px;
    /* fill: currentColor; */
}

.vmpfence-issue-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.vmpfence-issue-file {
    color: #666;
    font-size: 13px;
    word-break: break-all;
    font-family: monospace;
    background: none;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.vmpfence-issue-col-2 {
    flex: 0 0 220px;
    min-width: 180px;
    max-width: 250px;
    padding: 0 15px;
    text-align: center;
}

.vmpfence-issue-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.vmpfence-issue-severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.vmpfence-severity-critical {
    background-color: #dc3545;
    color: white;
}

.vmpfence-severity-high {
    background-color: #fd7e14;
    color: white;
}

.vmpfence-severity-medium {
    background-color: #ffc107;
    color: #333;
}

.vmpfence-severity-low {
    background-color: #28a745;
    color: white;
}

.vmpfence-issue-col-3 {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.vmpfence-issue-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vmpfence-issue-summary {
        flex-wrap: wrap;
        padding: 8px;
    }
    
    .vmpfence-issue-col-1 {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .vmpfence-issue-col-2 {
        flex: 1 1 50%;
        min-width: 150px;
        text-align: left;
        padding: 0 8px 0 0;
    }
    
    .vmpfence-issue-col-3 {
        flex: 1 1 50%;
        min-width: 150px;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .vmpfence-issue-col-2,
    .vmpfence-issue-col-3 {
        flex: 1 1 100%;
        min-width: 100%;
        margin-top: 8px;
    }
    
    .vmpfence-issue-col-2 {
        text-align: left;
        padding: 0;
    }
    
    .vmpfence-issue-col-3 {
        justify-content: flex-start;
    }
}

.vmpfence-issue-controls button {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.vmpfence-btn-update {
    background: #191970;
    color: white;
}

.vmpfence-btn-unignore {
    background: #28a745;
    color: white;
}

.vmpfence-btn-view-diff {
    background: #191970;
    color: white;
}

.vmpfence-btn-restore {
    background: #28a745;
    color: white;
}

.vmpfence-btn-delete,
.vmpfence-btn-bulk-delete {
    background: #dc3545;
    color: white;
}

.vmpfence-btn-ignore {
    background: #6c757d;
    color: white;
}

.vmpfence-btn-details {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.vmpfence-issue-detail {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}

.vmpfence-issue-description {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.vmpfence-issue-meta {
    font-size: 13px;
    color: #666;
}

.vmpfence-issue-meta div {
    margin-bottom: 5px;
}

.vmpfence-issue-ignored-badge {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 8px;
}

/* Inline Debug Log Styles */
.vmpfence-inline-debug-log {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vmpfence-debug-log-header {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vmpfence-debug-log-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.vmpfence-hide-log-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.vmpfence-hide-log-btn:hover {
    background: #c82333;
}

.vmpfence-debug-log-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 20px 20px 20px;
    background: #f8f9fa;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

.vmpfence-debug-log-content .debug-log-entry {
    margin-bottom: 2px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.vmpfence-debug-log-content .debug-log-timestamp {
    color: #28a745;
    font-weight: bold;
}

.vmpfence-debug-log-content .debug-log-section {
    /* margin: 15px 0 10px 0; */
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    color: #495057;
}

/* Code Modal Styles */
.vmpfence-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
}

/* Scan page specific modals - NOT status modal */
.vmpfence-modal-overlay .vmpfence-modal-content {
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.vmpfence-code-modal {
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.vmpfence-modal-overlay .vmpfence-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vmpfence-modal-overlay .vmpfence-modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.vmpfence-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.vmpfence-modal-overlay .vmpfence-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.vmpfence-modal-overlay .vmpfence-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.vmpfence-code-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
}

.vmpfence-code-container {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.vmpfence-code-header {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.vmpfence-btn-copy-code {
    background: #191970;
    color: white;
    border: 1px solid #191970;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.vmpfence-btn-copy-code:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.2);
}

.vmpfence-code-content {
    background: #f8f9fa;
    margin: 0;
    padding: 15px;
    max-height: 400px;
    overflow: auto;
    font-family: 'Courier New', Consolas, 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.vmpfence-code-content code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

.vmpfence-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Code modal specific footer styling */
#vmpfence-code-modal .vmpfence-modal-footer {
    justify-content: space-between;
    align-items: center;
}

#vmpfence-code-modal .vmpfence-modal-footer .vmpfence-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin: 0;
}

.vmpfence-btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vmpfence-btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* Clean Option Modal Specific Styles */
.vmpfence-modal-file-info .option-name {
    color: #2196F3;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.vmpfence-modal-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.vmpfence-modal-description ul li {
    margin: 5px 0;
    color: #555;
}

.vmpfence-modal-question h4 {
    color: #333;
    margin: 15px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.vmpfence-modal-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #856404;
    font-size: 14px;
}

/* Base button styles for modals */
.vmpfence-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vmpfence-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3);
}

.vmpfence-btn i {
    margin-right: 6px;
}

.vmpfence-btn-primary {
    background: #2196F3;
    color: white;
    border: 1px solid #2196F3;
}

.vmpfence-btn-primary:hover {
    background: #1976D2;
    border-color: #1976D2;
    color: white;
}

.vmpfence-btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.vmpfence-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.vmpfence-btn-danger:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.vmpfence-btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
    padding: 10px 20px; /* Ensure same padding as other buttons */
    line-height: 1.4; /* Ensure same line height */
}

.vmpfence-btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

/* Clean modal specific button styling */
#vmpfence-clean-confirm-modal .vmpfence-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Ensure buttons are vertically aligned */
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

#vmpfence-clean-confirm-modal .vmpfence-btn {
    margin: 0;
    min-width: 120px;
    height: 44px; /* Set explicit height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

#vmpfence-clean-result-modal .vmpfence-modal-footer {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

#vmpfence-clean-result-modal .vmpfence-btn {
    min-width: 100px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vmpfence-clean-result-modal .vmpfence-btn {
    min-width: 100px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Clean Result Modal Styles */
#vmpfence-clean-result-modal .vmpfence-modal-description {
    text-align: center;
    padding: 20px 0;
}

#vmpfence-clean-result-modal .vmpfence-modal-description p {
    font-size: 16px;
    line-height: 1.6;
}

#vmpfence-clean-confirm-modal .vmpfence-modal-description p:first-child {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
}

/* Modal header improvements */
#vmpfence-clean-confirm-modal .vmpfence-modal-header h3,
#vmpfence-clean-result-modal .vmpfence-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

#vmpfence-clean-confirm-modal .vmpfence-modal-header h3 i {
    color: #f39c12;
}

/* File Differences Modal Styles */
.vmpfence-diff-modal {
    width: 95%;
    max-width: 1200px;
    height: 90%;
    max-height: 90vh;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.vmpfence-diff-modal .vmpfence-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.vmpfence-diff-modal .vmpfence-modal-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.vmpfence-diff-modal .vmpfence-modal-footer .vmpfence-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    margin: 0;
    white-space: nowrap;
}

.vmpfence-diff-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.vmpfence-diff-tab {
    background: transparent;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.vmpfence-diff-tab:hover {
    background: #e9ecef;
    color: #495057;
}

.vmpfence-diff-tab.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
    background: #fff;
}

.vmpfence-diff-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vmpfence-diff-panel {
    display: none;
    height: 100%;
    overflow: auto;
    padding: 20px;
    flex: 1;
}

.vmpfence-diff-panel.active {
    display: flex;
    flex-direction: column;
}

.vmpfence-diff-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.vmpfence-diff-info p {
    margin: 5px 0;
    font-size: 14px;
}

.vmpfence-diff-info .status-modified {
    color: #f57c00;
    font-weight: 600;
}

.vmpfence-diff-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', Consolas, 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    flex: 1;
}

.vmpfence-diff-panel .vmpfence-code-content {
    flex: 1;
    margin: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: auto;
}

.vmpfence-diff-panel .vmpfence-code-content pre {
    margin: 0;
    padding: 15px;
    height: 100%;
    overflow: auto;
}

.vmpfence-diff-display {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
    overflow-x: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.vmpfence-diff-display > div {
    display: flex;
    align-items: flex-start;
    min-height: 20px;
    margin: 0;
    padding: 2px 0;
}

.vmpfence-diff-display .diff-line-number {
    color: #6c757d;
    font-weight: 600;
    display: inline-block;
    min-width: 45px;
    text-align: right;
    border-right: 1px solid #dee2e6;
    padding-right: 8px;
    margin-right: 8px;
    font-family: monospace;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1.5;
}

.vmpfence-diff-display .diff-added {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 2px;
    border-left: 3px solid #28a745;
    flex: 1;
    white-space: pre-wrap;
}

.vmpfence-diff-display .diff-removed {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 6px;
    border-radius: 2px;
    text-decoration: line-through;
    border-left: 3px solid #dc3545;
    flex: 1;
    white-space: pre-wrap;
}

.vmpfence-diff-display .diff-unchanged {
    padding: 2px 6px;
    color: #495057;
    flex: 1;
    white-space: pre-wrap;
}

/* Copy button specific styling for diff modal */
#vmpfence-diff-modal .vmpfence-btn-copy-diff {
    background: #28a745;
    border-color: #28a745;
}

#vmpfence-diff-modal .vmpfence-btn-copy-diff:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* Responsive modal */
@media (max-width: 768px) {
    .vmpfence-code-modal {
        width: 95%;
        margin: 20px auto;
        max-height: 95%;
    }
    
    .vmpfence-modal-body {
        max-height: 60vh;
    }
    
    .vmpfence-code-content {
        font-size: 12px;
        max-height: 300px;
    }

    #vmpfence-clean-confirm-modal .vmpfence-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    #vmpfence-clean-confirm-modal .vmpfence-btn {
        width: 100%;
        margin: 0;
        min-width: auto;
    }

    .vmpfence-btn {
        padding: 12px 16px;
        font-size: 16px;
    }

    .vmpfence-diff-modal {
        width: 98%;
        height: 95%;
        margin: 10px auto;
    }

    .vmpfence-diff-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .vmpfence-diff-tab {
        flex-shrink: 0;
        padding: 10px 12px;
        font-size: 12px;
        min-width: 100px;
    }

    .vmpfence-diff-modal .vmpfence-modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .vmpfence-diff-modal .vmpfence-modal-footer .vmpfence-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Delete Modal Specific Styles */
.vmpfence-delete-warning {
    text-align: center;
    padding: 20px;
}

.vmpfence-delete-warning i {
    display: block;
    margin: 0 auto 15px;
}

.vmpfence-delete-warning p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.vmpfence-delete-warning strong {
    color: #dc3545;
}

#vmpfence-delete-modal .vmpfence-modal-content {
    max-width: 500px;
}

#vmpfence-delete-modal .vmpfence-modal-footer {
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

#vmpfence-delete-modal .vmpfence-modal-footer .vmpfence-btn {
    min-width: 100px;
    height: 42px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border-width: 2px;
    text-transform: none;
    letter-spacing: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vmpfence-btn-danger {
    background-color: #dc3545;
    border: 2px solid #dc3545;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.vmpfence-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    transform: translateY(-1px);
}

.vmpfence-btn-danger:active {
    background-color: #bd2130;
    border-color: #b21f2d;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.vmpfence-btn-danger:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vmpfence-btn-secondary {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vmpfence-btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.vmpfence-btn-secondary:active {
    background-color: #dee2e6;
    border-color: #adb5bd;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vmpfence-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.25);
}

/* Notification Styles */
.vmpfence-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.vmpfence-notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #191970;
    animation: slideInRight 0.3s ease-out;
}

.vmpfence-notification-success {
    border-left-color: #28a745;
}

.vmpfence-notification-success i {
    color: #28a745;
}

.vmpfence-notification-error {
    border-left-color: #dc3545;
}

.vmpfence-notification-error i {
    color: #dc3545;
}

.vmpfence-notification-warning {
    border-left-color: #ffc107;
}

.vmpfence-notification-warning i {
    color: #ffc107;
}

.vmpfence-notification-info {
    border-left-color: #17a2b8;
}

.vmpfence-notification-info i {
    color: #17a2b8;
}

.vmpfence-notification span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.vmpfence-notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    margin-left: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmpfence-notification-close:hover {
    color: #333;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(300px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* No Issues Display */
.vmpfence-no-issues {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.vmpfence-no-issues i {
    display: block;
    margin: 0 auto 20px;
}

.vmpfence-no-issues h3 {
    color: #28a745;
    margin: 0 0 10px;
    font-size: 24px;
}

.vmpfence-no-issues p {
    margin: 0;
    font-size: 16px;
}
