/**
 * VMPFence Admin Styles
 *
 * @package VMPFence
 * @since 1.0.0
 * @since 2.0.0 Updated styles for new admin dashboard layout.
 * @since 2.2.2 Pause overlay styles added
 * @since 2.2.4 Updated font families
 *
 */

/* Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.wrap {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
}

/* Pause Overlay */
#vmpfence-pause-overlay {
    position: fixed;
    top: 32px;
    left: 160px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: none;
    pointer-events: none;
}

#vmpfence-pause-overlay .vmpfence-pause-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #2271b1;
    font-size: 15px;
    font-weight: 500;
}

#vmpfence-pause-overlay .vmpfence-pause-message svg {
    color: #2271b1;
    flex-shrink: 0;
}

/* Adjust for collapsed admin menu */
@media only screen and (max-width: 960px) {
    #vmpfence-pause-overlay {
        left: 36px;
    }
}

@media only screen and (max-width: 782px) {
    #vmpfence-pause-overlay {
        top: 46px;
        left: 0;
    }
}

/* Header Section */
.vmpfence-header-banner {
    /* background: linear-gradient(135deg, #2A2669 0%, #20409A 100%); */
    background: #ffffff;
    padding: 20px 30px;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 15px rgba(42, 38, 105, 0.3); */
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 30px;
    width: 99%;
    max-width: 1300px;
}

.vmpfence-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-header {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}
.vmpfence-learn-more {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vmpfence-learn-more:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Protection Banner */
.vmpfence-protection-banner {
    background: #191970;
    /* background: #d4edda; */
    color: white;
    /* color: #155724; */
    text-align: center;
    padding: 40px 20px;
    font-size: 32px;
    font-weight: 600;
    /* margin-bottom: 30px; */
    /* border: 1px solid #c3e6cb; */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 15px rgba(25, 25, 112, 0.3); */
    position: relative;
    overflow: hidden;
    width: 99%;
    /* margin-bottom: 5px; */
    max-width: 1300px;
}

.vmpfence-protection-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #20419a91, transparent);
    animation: shimmer 7s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* Main Grid Layout */
.vmpfence-main-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 30px 0;
    max-width: 1300px;
}

.vmpfence-row {
    display: grid;
    gap: 25px;
    align-items: start;
}

.vmpfence-row-1 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

/* .vmpfence-row-1 {
    grid-template-columns: 1fr 1fr;
} */

.vmpfence-row-2 {
    grid-template-columns: 1fr 1fr;
}

.vmpfence-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.vmpfence-row-4 {
    grid-template-columns: 1fr 1fr;
}

/* Progress Circles Section */
.vmpfence-progress-section {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.vmpfence-progress-item {
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Increased gap for temporary, original value will be 20px */
    background: #ffffff;
    padding: 30px 20px;
    /* padding-left: 200px; Increased padding left for temporary, will be adjusted later release */
    /* border-radius: 12px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    min-height: 304px;
}

/* .vmpfence-progress-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
} */

.vmpfence-circle-progress {
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.vmpfence-progress-item:hover .vmpfence-circle-progress {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
}

.vmpfence-circle-chart {
    transform: rotate(-90deg);
}

.vmpfence-circle-text {
    font-size: 8px;
    font-weight: 600;
    fill: #333;
}

.vmpfence-progress-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A40;
    text-align: center;
}

.vmpfence-progress-info p {
    margin: 0 0 8px 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.vmpfence-manage-link {
    color: #191970;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 6px;
    /* border-radius: 6px; */
    margin-top: 4px;
}

.vmpfence-manage-link:hover {
    background: rgba(25, 25, 112, 0.1);
    /* padding: 6px 8px; */
    /* margin-left: 0; */
}

/* Premium Section Styles */
.vmpfence-premium-disabled {
    text-align: left;
    padding: 20px;
}

.vmpfence-premium-disabled h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.vmpfence-premium-disabled p {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.vmpfence-premium-buttons {
    display: flex;
    gap: 10px;
    /* justify-content: center; */
}

.vmpfence-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-premium-upgrade-btn:hover {
    color: white;
    transform: translateY(-1px);
}

.vmpfence-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-premium-learn-btn:hover {
    /* Disabled - no hover effect */
}

.vmpfence-premium-enabled {
    text-align: center;
    padding: 40px 20px;
}

.vmpfence-premium-enabled h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

.vmpfence-premium-enabled p {
    margin: 15px 0 0 0;
    color: #666;
}

/* .vmpfence-manage-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.vmpfence-manage-link:hover::after {
    transform: translateX(4px);
} */

/* .vmpfence-manage-link:hover {
    background: rgba(25, 25, 112, 0.1);
    transform: translateX(4px);
    text-decoration: none;
} */

/* Scan Percentage Status Colors */
.vmpfence-scan-excellent .vmpfence-circle-progress-bar {
    stroke: #28a745 !important; /* Green for 80%+ */
}

.vmpfence-scan-good .vmpfence-circle-progress-bar {
    stroke: #17a2b8 !important; /* Blue for 60-79% */
}

.vmpfence-scan-fair .vmpfence-circle-progress-bar {
    stroke: #ffc107 !important; /* Yellow for 40-59% */
}

.vmpfence-scan-poor .vmpfence-circle-progress-bar {
    stroke: #dc3545 !important; /* Red for <40% */
}

/* Scan status text colors */
.vmpfence-scan-excellent .vmpfence-progress-info p {
    color: #28a745;
    font-weight: 500;
}

.vmpfence-scan-good .vmpfence-progress-info p {
    color: #17a2b8;
    font-weight: 500;
}

.vmpfence-scan-fair .vmpfence-progress-info p {
    color: #856404;
    font-weight: 500;
}

.vmpfence-scan-poor .vmpfence-progress-info p {
    color: #dc3545;
    font-weight: 500;
}



/* Sections */
.vmpfence-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    /* border-radius: 12px; */
    min-height: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.vmpfence-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.vmpfence-section-header {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    padding: 18px 20px;
    border-bottom: 2px solid #dee2e6;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.vmpfence-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A40;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.vmpfence-notification-count {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: white;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    min-width: 20px;
    text-align: center;
}

.vmpfence-section-content {
    padding: 20px 20px 20px 0;
}

.vmpfence-notification-item {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-left: 4px solid #007AFF;
    /* border-radius: 8px; */
    padding: 16px 40px 16px 20px;
    font-size: 14px;
    /* margin-bottom: 12px; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.vmpfence-notification-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vmpfence-notification-item:last-child {
    margin-bottom: 0;
}

.vmpfence-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vmpfence-close-btn:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    transform: translateY(-50%) rotate(90deg);
}

/* Bottom Grid */
.vmpfence-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.vmpfence-tool-item {
    /* background removed to prevent double background */
    /* border: 1px solid #e8e8e8; */
    /* border-radius: 12px; */
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
}

.vmpfence-tool-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.vmpfence-tool-link:hover {
    text-decoration: none;
    color: inherit;
}

.vmpfence-tool-link:hover .vmpfence-tool-item {
    background: #f8f9fa;
}

.vmpfence-tool-link:focus {
    outline: 2px solid #191970;
    outline-offset: 2px;
    border-radius: 12px;
}

.vmpfence-tool-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vmpfence-tool-link:hover .vmpfence-tool-icon {
    transform: scale(1.15);
}

.vmpfence-tool-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A40;
    transition: color 0.3s ease;
}

.vmpfence-tool-link:hover .vmpfence-tool-content h4 {
    color: #191970;
}

.vmpfence-tool-content p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Right Column */
.vmpfence-right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Central Status */
.vmpfence-central-status {
    background: #fff;
    border: 1px solid #ddd;
    /* border-radius: 3px; */
    padding: 20px;
}

.vmpfence-central-status h3 {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #333;
}

.vmpfence-central-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.vmpfence-connection-diagram {
    position: relative;
    width: 80px;
    height: 80px;
}

.vmpfence-center-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #0073aa;
    border-radius: 50%;
}

.vmpfence-outer-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.vmpfence-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #666;
    border-radius: 50%;
}

.vmpfence-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.vmpfence-node:nth-child(2) { right: 0; top: 50%; transform: translateY(-50%); }
.vmpfence-node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.vmpfence-node:nth-child(4) { left: 0; top: 50%; transform: translateY(-50%); }

.vmpfence-central-info {
    flex: 1;
}

.vmpfence-central-info p {
    margin: 0 0 10px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

.vmpfence-central-info a {
    color: #0073aa;
    text-decoration: none;
}

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

/* Charts Section */
.vmpfence-charts-section {
    padding: 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vmpfence-chart-item {
    background: #fff;
    border: 1px solid #ddd;
    /* border-radius: 3px; */
    padding: 20px;
}

.vmpfence-chart-item h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
}

.vmpfence-chart-item h3 span {
    font-weight: normal;
    color: #666;
}

.vmpfence-chart-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.vmpfence-chart-indicator {
    color: #999;
    font-size: 16px;
}

.vmpfence-chart-controls {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.vmpfence-chart-btn {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
}

.vmpfence-chart-btn.vmpfence-active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.vmpfence-chart-container {
    height: 200px;
    border: 1px solid #f1f1f1;
    border-radius: 3px;
    overflow: hidden;
}

.vmpfence-chart-placeholder {
    width: 100%;
    height: 100%;
    background: #fafafa;
}

.vmpfence-chart-label {
    font-size: 11px;
    fill: #666;
}

.vmpfence-chart-title {
    font-size: 11px;
    fill: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .vmpfence-main-grid {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-charts-section {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-progress-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .vmpfence-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.vmpfence-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.vmpfence-status-indicator.healthy { background-color: #00a32a; }
.vmpfence-status-indicator.warning { background-color: #dba617; }
.vmpfence-status-indicator.critical { background-color: #d63638; }

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */

.vmpfence-nav-tabs {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
}

.vmpfence-nav-tabs .nav-tab {
    border: none;
    border-right: 1px solid #c3c4c7;
    border-radius: 0;
    background: transparent;
    color: #50575e;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vmpfence-nav-tabs .nav-tab:last-child {
    border-right: none;
}

.vmpfence-nav-tabs .nav-tab:hover {
    background: #f6f7f7;
    color: #1d2327;
}

.vmpfence-nav-tabs .nav-tab.nav-tab-active {
    background: #f0f6fc;
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
}

/* ==========================================================================
   Content Areas
   ========================================================================== */

.vmpfence-content {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 20px;
    min-height: 500px;
}

.vmpfence-section:last-child {
    margin-bottom: 0;
}

.vmpfence-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.vmpfence-section-description {
    color: #646970;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ==========================================================================
   Cards & Boxes
   ========================================================================== */

.vmpfence-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.vmpfence-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vmpfence-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.vmpfence-card-body {
    color: #50575e;
    line-height: 1.5;
}

.vmpfence-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vmpfence-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.vmpfence-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    display: block;
    margin-bottom: 5px;
}

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

/* ==========================================================================
   Forms & Controls
   ========================================================================== */

.vmpfence-form-table {
    width: 100%;
    border-collapse: collapse;
}

.vmpfence-form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
}

.vmpfence-form-table td {
    padding: 20px 0;
    vertical-align: top;
}

.vmpfence-form-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.vmpfence-form-table tr:last-child {
    border-bottom: none;
}

.vmpfence-form-field {
    margin-bottom: 20px;
}

.vmpfence-form-label {
    display: block;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 5px;
}

.vmpfence-form-description {
    color: #646970;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

.vmpfence-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.vmpfence-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vmpfence-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c3c4c7;
    transition: .4s;
    border-radius: 24px;
}

.vmpfence-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.vmpfence-toggle input:checked + .vmpfence-toggle-slider {
    background-color: #0073aa;
}

.vmpfence-toggle input:focus + .vmpfence-toggle-slider {
    box-shadow: 0 0 1px #0073aa;
}

.vmpfence-toggle input:checked + .vmpfence-toggle-slider:before {
    transform: translateX(26px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.vmpfence-button {
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.15384615;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vmpfence-button-primary {
    background: #0073aa;
    border-color: #006ba1;
    color: #fff;
}

.vmpfence-button-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.vmpfence-button-secondary {
    background: #f6f7f7;
    border-color: #c3c4c7;
    color: #50575e;
}

.vmpfence-button-secondary:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #1d2327;
}

.vmpfence-button-danger {
    background: #d63638;
    border-color: #d63638;
    color: #fff;
}

.vmpfence-button-danger:hover {
    background: #b32d2e;
    border-color: #b32d2e;
    color: #fff;
}

.vmpfence-button-large {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 40px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.vmpfence-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.vmpfence-table th,
.vmpfence-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.vmpfence-table th {
    background: #f6f7f7;
    font-weight: 600;
    color: #1d2327;
}

.vmpfence-table tbody tr:hover {
    background: #f6f7f7;
}

.vmpfence-table-striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.vmpfence-table-striped tbody tr:nth-child(even):hover {
    background: #f0f0f1;
}

/* ==========================================================================
   Status & Badges
   ========================================================================== */

.vmpfence-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmpfence-badge-success { background-color: #00a32a; }
.vmpfence-badge-warning { background-color: #dba617; }
.vmpfence-badge-danger { background-color: #d63638; }
.vmpfence-badge-info { background-color: #0073aa; }
.vmpfence-badge-secondary { background-color: #646970; }

.vmpfence-status-healthy { color: #00a32a; }
.vmpfence-status-warning { color: #dba617; }
.vmpfence-status-critical { color: #d63638; }

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */

.vmpfence-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.vmpfence-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.vmpfence-alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.vmpfence-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.vmpfence-alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* ==========================================================================
   Progress & Loading
   ========================================================================== */

.vmpfence-progress {
    background-color: #f0f0f1;
    border-radius: 3px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.vmpfence-progress-bar {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

.vmpfence-progress-bar-success { background-color: #00a32a; }
.vmpfence-progress-bar-warning { background-color: #dba617; }
.vmpfence-progress-bar-danger { background-color: #d63638; }

.vmpfence-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: vmpfence-spin 1s linear infinite;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 782px) {
    .vmpfence-admin-wrap {
        margin: 20px 10px 0 0;
    }
    
    .vmpfence-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vmpfence-nav-tabs {
        flex-direction: column;
    }
    
    .vmpfence-nav-tabs .nav-tab {
        border-right: none;
        border-bottom: 1px solid #c3c4c7;
    }
    
    .vmpfence-nav-tabs .nav-tab:last-child {
        border-bottom: none;
    }
    
    .vmpfence-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-form-table th,
    .vmpfence-form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .vmpfence-form-table th {
        border-bottom: none;
        margin-bottom: 5px;
    }
}

/* ==========================================================================
   Dashboard Specific
   ========================================================================== */

.vmpfence-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vmpfence-recent-threats,
.vmpfence-recent-scans,
.vmpfence-security-overview {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
}

.vmpfence-threat-item,
.vmpfence-scan-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vmpfence-threat-item:last-child,
.vmpfence-scan-item:last-child {
    border-bottom: none;
}

.vmpfence-threat-details,
.vmpfence-scan-details {
    flex: 1;
}

.vmpfence-threat-type,
.vmpfence-scan-type {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

.vmpfence-threat-time,
.vmpfence-scan-time {
    color: #646970;
    font-size: 12px;
}

/* ==========================================================================
   Dashboard Layout Updates
   ========================================================================== */

.vmpfence-logo-section {
    display: flex;
    align-items: center;
}

.vmpfence-header-right {
    display: flex;
    align-items: center;
}

/* Central Status */
.vmpfence-central-status {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
    min-height: 250px;
}

/* Tools, Help, Options Quicklink Sections */
.vmpfence-tools-quicklink,
.vmpfence-help-quicklink,
.vmpfence-options-quicklink {
    background: #fff;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
    min-height: 110px;
}

/* Tools, Help, Options Sections */
.vmpfence-tools-section,
.vmpfence-help-section,
.vmpfence-options-section {
    background: #fff;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
    min-height: 10px;
}

.vmpfence-tool-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.vmpfence-tool-item:hover {
    background-color: #f8f9fa;
}

.vmpfence-tool-icon {
    font-size: 36px;
    min-width: 60px;
}

.vmpfence-tool-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.vmpfence-tool-content p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Charts */
.vmpfence-chart-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
}

/* Global Options Panel */
.vmpfence-options-panel {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 20px;
}

.vmpfence-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.vmpfence-options-header h2 {
    margin: 0;
    color: #333;
}

.vmpfence-close-options {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.vmpfence-close-options:hover {
    background: #e1e1e1;
}

.vmpfence-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.vmpfence-option-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
}

.vmpfence-option-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.vmpfence-option-item {
    margin-bottom: 15px;
}

.vmpfence-option-item:last-child {
    margin-bottom: 0;
}

.vmpfence-option-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.vmpfence-option-desc {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.vmpfence-upgrade-btn {
    background: #f18500;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.vmpfence-options-actions {
    text-align: center;
    /* padding-top: 20px; */
    /* border-top: 1px solid #eee; */
}

.vmpfence-save-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.vmpfence-reset-btn {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .vmpfence-header-banner,
    .vmpfence-protection-banner,
    .vmpfence-main-grid {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .vmpfence-row-1 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vmpfence-row-3 {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    
    .vmpfence-progress-item {
        padding: 40px 20px;
        padding-left: 100px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .vmpfence-header-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vmpfence-protection-banner {
        font-size: 24px;
        padding: 30px 15px;
    }
    
    .vmpfence-main-grid {
        padding: 0 10px 20px 10px;
    }
    
    .vmpfence-row-1,
    .vmpfence-row-2,
    .vmpfence-row-3,
    .vmpfence-row-4 {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-progress-item {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }
    
    .vmpfence-progress-info {
        width: 100%;
    }
    
    .vmpfence-manage-link {
        justify-content: center;
    }
    
    .attack-filter-controls {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .attack-filter-btn {
        flex: 1 1 auto;
        min-width: 100px;
    }
    
    .vmpfence-firewall-table-section {
        overflow-x: auto;
    }
    
    .vmpfence-firewall-table-section table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .vmpfence-protection-banner {
        font-size: 20px;
        padding: 20px 10px;
    }
    
    .brand-header {
        font-size: 18px;
    }
    
    .vmpfence-progress-item {
        padding: 20px 15px;
    }
    
    .vmpfence-progress-info h3 {
        font-size: 16px;
    }
    
    .attack-filter-controls {
        flex-direction: column;
    }
    
    .attack-filter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.vmpfence-text-left { text-align: left !important; }
.vmpfence-text-center { text-align: center !important; }
.vmpfence-text-right { text-align: right !important; }

.vmpfence-mb-0 { margin-bottom: 0 !important; }
.vmpfence-mb-10 { margin-bottom: 10px !important; }
.vmpfence-mb-20 { margin-bottom: 20px !important; }
.vmpfence-mb-30 { margin-bottom: 30px !important; }

.vmpfence-mt-0 { margin-top: 0 !important; }
.vmpfence-mt-10 { margin-top: 10px !important; }
.vmpfence-mt-20 { margin-top: 20px !important; }
.vmpfence-mt-30 { margin-top: 30px !important; }

.vmpfence-hidden { display: none !important; }
.vmpfence-visible { display: block !important; }

.vmpfence-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Issue Display Styles
   ========================================================================== */

.vmpfence-scan-issues-list {
    margin-top: 20px;
}

.vmpfence-scan-issues-list h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vmpfence-issues-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.vmpfence-issue-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

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

.vmpfence-issue-item:hover {
    background-color: #f9f9f9;
}

.vmpfence-issue-icon {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.vmpfence-issue-content {
    flex: 1;
    min-width: 0;
}

.vmpfence-issue-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.vmpfence-issue-file {
    color: #666;
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 5px;
    word-break: break-all;
}

.vmpfence-issue-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.vmpfence-issue-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.vmpfence-issue-severity {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
}

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

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

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

.vmpfence-issue-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
    flex-shrink: 0;
}

.vmpfence-issue-actions button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #0073aa;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vmpfence-issue-actions button:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.vmpfence-btn-unignore {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.vmpfence-btn-unignore:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

.vmpfence-btn-mark-fixed {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: #fff !important;
}

.vmpfence-btn-mark-fixed:hover {
    background: #138496 !important;
    border-color: #138496 !important;
}

/* Issue Type Specific Styles */
.vmpfence-issue-modified .vmpfence-issue-title {
    color: #856404;
}

.vmpfence-issue-unknown .vmpfence-issue-title {
    color: #721c24;
}

.vmpfence-issue-update .vmpfence-issue-title {
    color: #0073aa;
}

.vmpfence-issue-info .vmpfence-issue-title {
    color: #666;
}

.vmpfence-issue-other .vmpfence-issue-title {
    color: #333;
}

/* Ignored Issue Styles */
.vmpfence-issue-ignored {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.vmpfence-issue-ignored-badge {
    background-color: #6c757d;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.vmpfence-issue-resolved {
    color: #6c757d;
    font-style: italic;
}

/* Tab Styles */
.vmpfence-tab {
    cursor: pointer;
    transition: all 0.2s ease;
}

.vmpfence-tab:hover {
    background-color: #f0f0f0;
}

.vmpfence-tab-active {
    background-color: #0073aa;
    color: #fff;
}

.vmpfence-tab-count {
    font-weight: 600;
}

/* ============================================
   Admin Menu Icon Styles
   ============================================ */
#adminmenu .toplevel_page_vmpfence-dashboard .wp-menu-image img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
    margin-top: -4px !important;
}

/* Notification count bubble in menu */
.vmpfence-menu-count {
    display: inline-block;
    background: #e9a21f;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    text-align: center;
    vertical-align: top;
    margin-left: 5px;
}

#adminmenu .wp-submenu li a .vmpfence-menu-count {
    float: none;
    margin-left: 10px;
    margin-right: 0;
}

/* ============================================
   Status Badge Styles
   ============================================ */
.vmpfence-status-blocked {
    background-color: #dc3232;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.vmpfence-status-success {
    background-color: #46b450;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.vmpfence-status-failed {
    background-color: #dc3232;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.vmpfence-status-clean {
    background-color: #46b450;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.vmpfence-status-threat {
    background-color: #dc3232;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* ============================================
   Page Titles and Coming Soon Messages
   ============================================ */
.vmpfence-page-title {
    text-align: center;
    margin-top: 20px;
    font-size: 36px;
    font-weight: 600;
}

.vmpfence-coming-soon {
    color: #666;
    font-style: italic;
    font-size: 60px;
    text-align: center;
    padding-top: 200px;
}

/* Password Requirements Styling */
.vmpfence-password-requirements {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.vmpfence-password-requirements li {
    margin: 5px 0;
    color: #666;
}

.vmpfence-password-requirements li:before {
    content: "✓ ";
    color: #0073aa;
    font-weight: bold;
}

/* Password Error Styling */
.vmpfence-password-error {
    background: #fee;
    border: 1px solid #d63638;
    border-radius: 3px;
    padding: 10px;
    margin: 10px 0;
}

.vmpfence-password-error ul {
    margin: 5px 0;
    padding-left: 20px;
}

.vmpfence-password-error li {
    color: #d63638;
    margin: 3px 0;
}

/* CVE Scanner Page */
.vmpfence-cve-scanner {
    max-width: 1300px;
}

/* ============================================
   Country Blocking Form Styles
   ============================================ */

.vmpfence-blocking-form-country {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 100%;
}

/* Two-Column Layout Row */
.vmpfence-blocking-row {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
}

/* Label Column (Left Side) */
.vmpfence-blocking-label {
    flex: 0 0 200px;
    padding-right: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #3c434a;
    padding-top: 6px;
    text-align: right;
}

.vmpfence-blocking-label .vmpfence-pick-from-list {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #191970;
    text-decoration: none;
}

.vmpfence-blocking-label .vmpfence-pick-from-list:hover {
    color: #007AFF;
    text-decoration: underline;
}

/* Field Column (Right Side) */
.vmpfence-blocking-field {
    flex: 1;
    max-width: 600px;
}

/* Inline Checkboxes */
.vmpfence-checkbox-inline-group {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.vmpfence-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.vmpfence-checkbox-inline input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vmpfence-checkbox-box {
    position: relative;
    width: 18px;
    height: 18px;
    background: #191970;
    border: 2px solid #191970;
    border-radius: 2px;
    flex-shrink: 0;
}

.vmpfence-checkbox-inline input[type="checkbox"]:not(:checked) + .vmpfence-checkbox-box {
    background: white;
}

.vmpfence-checkbox-inline input[type="checkbox"]:checked + .vmpfence-checkbox-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.vmpfence-checkbox-inline input[type="checkbox"]:disabled + .vmpfence-checkbox-box {
    opacity: 0.6;
    cursor: not-allowed;
}

.vmpfence-checkbox-text {
    font-size: 14px;
    color: #3c434a;
    line-height: 1.4;
}

/* Google Ads Warning Box */
.vmpfence-google-ads-warning {
    background: #f0f0f1;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 8px;
}

.vmpfence-google-ads-warning p {
    margin: 0;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
}

.vmpfence-google-ads-warning em {
    font-style: italic;
}

.vmpfence-google-ads-warning a {
    color: #191970;
    text-decoration: none;
}

.vmpfence-google-ads-warning a:hover {
    color: #007AFF;
    text-decoration: underline;
}

/* Countries Input Field */
.vmpfence-countries-input {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease;
}

.vmpfence-countries-input:focus {
    outline: none;
    border-color: #191970;
    box-shadow: 0 0 0 1px #191970;
}

.vmpfence-countries-input:disabled {
    background: #f6f7f7;
    color: #8c8f94;
    cursor: not-allowed;
}

/* Coming Soon Note */
.vmpfence-coming-soon-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #e6f4ff;
    border-left: 3px solid #007AFF;
    border-radius: 4px;
    font-size: 12px;
    color: #3c434a;
    line-height: 1.5;
}

/* Action Buttons */
.vmpfence-blocking-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.vmpfence-btn-cancel {
    padding: 10px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3c434a;
    background: white;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmpfence-btn-cancel:hover {
    background: #f6f7f7;
    border-color: #646970;
}

.vmpfence-btn-block-countries {
    padding: 10px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: #191970;
    border: 1px solid #191970;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmpfence-btn-block-countries:hover:not(:disabled) {
    background: #0f0f4d;
    border-color: #0f0f4d;
}

.vmpfence-btn-block-countries:disabled {
    background: #8c8f94;
    border-color: #8c8f94;
    cursor: not-allowed;
    opacity: 0.6;
}
