/**
 * VMPFence Tools Styles
 *
 * @package VMPFence
 * @subpackage Tools
 * @since 2.1.0
 * @since 2.2.0 Redesigned Diagnostics Tools UI and Export/Import Options added.
 * @since 2.2.2 Improved UI/UX design
 * @since 2.2.5 Improved UI/UX design
 */

/* Tools Container */
.vmpfence-tools-container {
    background: transparent !important;
    padding: 0;
    margin: 0;
    max-width: 1300px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Notification Banner */
.vmpfence-notification-banner {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(25, 25, 112, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    animation: slideInRight 0.3s ease-out;
}

.vmpfence-notification-success {
    background: #191970;
    color: #ffffff;
    border-left: 4px solid #007AFF;
}

.vmpfence-notification-icon {
    font-size: 20px;
    font-weight: bold;
}

.vmpfence-notification-message {
    flex: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Tools Header */
.vmpfence-tools-header {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    margin: 16px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vmpfence-tools-header h1 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #191970;
}

.vmpfence-tools-header p {
    margin: 0;
    color: #646970;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

/* Tabs Navigation */
.vmpfence-tabs {
    margin: 24px 0 24px 0;
    overflow: visible;
    max-width: 1300px;
}

.vmpfence-tabs-nav {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #dcdcdc;
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 0;
}

.vmpfence-tabs-nav li {
    margin: 0;
    padding: 0;
}

.vmpfence-tabs-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    background: #f5f5f5;
    color: #2c3338;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-top: 3px solid transparent;
    border-right: 1px solid #dcdcdc;
    height: 100%;
    white-space: nowrap;
}

.vmpfence-tabs-nav li:first-child button {
    border-left: 1px solid #dcdcdc;
}

.vmpfence-tabs-nav button:hover {
    background: #ffffff;
    color: #191970;
}

.vmpfence-tabs-nav button.active {
    background: #ffffff;
    color: #191970;
    font-weight: 700;
    border-top: 3px solid #007AFF;
    border-bottom: 1px solid #ffffff;
    margin-bottom: -1px;
}

/* Tab Content */
.vmpfence-tab-content {
    display: none;
    padding: 0;
}

.vmpfence-tab-content.active {
    display: block;
}

/* Options Panel (Collapsible) */
.vmpfence-options-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vmpfence-options-header-traffic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s ease;
}

.vmpfence-options-header-traffic:hover {
    background: #f9f9f9;
}

.vmpfence-options-header-traffic h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vmpfence-toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.vmpfence-options-header-traffic.expanded h3 {
    color: #191970;
}

.vmpfence-options-header-traffic.expanded .vmpfence-toggle-icon {
    transform: rotate(90deg);
}

/* .vmpfence-options-content {
     padding: 20px;
} */

.vmpfence-options-description {
    /* background: #e8f4f8; */
    /* border-left: 4px solid #0073aa; */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.vmpfence-options-description p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Options Buttons */
.vmpfence-options-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.vmpfence-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.vmpfence-btn-default {
    background: #ffffff;
    color: #666;
}

.vmpfence-btn-default:hover {
    background: #f5f5f5;
    border-color: #999;
}

.vmpfence-btn-secondary {
    background: #ffffff;
    color: #007AFF;
    border-color: #007AFF;
}

.vmpfence-btn-secondary:hover {
    background: #007AFF;
    color: #ffffff;
}

.vmpfence-btn-primary {
    background: #191970;
    color: #ffffff;
    border-color: #191970;
}

.vmpfence-btn-primary:hover {
    background: #007AFF;
    border-color: #007AFF;
}

/* Option Rows */
.vmpfence-option-row {
    display: flex;
    align-items: flex-start;
    /* gap: 300px; */
    /* margin-bottom: 20px; */
    padding: 20px;
    /* background: #ffffff; */
    /* border-radius: 6px; */
    border-bottom: 1px solid #e0e0e0;
}

.vmpfence-option-label {
    flex: 0 0 400px;
    font-weight: 500;
    color: #333;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vmpfence-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #007AFF;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
    font-style: normal;
}

.vmpfence-option-control {
    flex: 1;
    padding-left: 200px;
}

/* Button Group (for mode selection) */
.vmpfence-button-group {
    display: flex;
    gap: 0;
    border: 1px solid #191970;
    border-radius: 12px;
    overflow: hidden;
    margin-left: 300px;
}

.vmpfence-mode-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: #ffffff;
    color: #191970;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(25, 25, 112, 0.2);
}

.vmpfence-mode-btn:last-child {
    border-right: none;
}

.vmpfence-mode-btn.active {
    background: #191970;
    color: #ffffff;
}

.vmpfence-mode-btn:hover:not(.active) {
    background: #f8f9fa;
    color: #007AFF;
}

/* Form Controls */
.vmpfence-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3338;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.vmpfence-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #191970;
}

.vmpfence-textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 !important;
    font-size: 14px;
    font-family: 'Inter', monospace;
    color: #2c3338;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.vmpfence-textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.vmpfence-input {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0 !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #2c3338;
    transition: border-color 0.2s ease;
}

.vmpfence-input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.vmpfence-input-small {
    width: 100%;
    height: 48px;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 0 !important;
    font-size: 14px;
    color: #2c3338;
}

.vmpfence-input-small:focus {
    outline: none;
    border-color: #007AFF;
}

/* Traffic Logging Indicator */
.vmpfence-traffic-logging-indicator {
    background: #fff;
    border-left: 4px solid #1B719E;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.vmpfence-traffic-logging-indicator p {
    margin: 0;
    font-size: 14px;
    color: #000;
    line-height: 1.6;
}

/* Filter Controls */
.vmpfence-filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.vmpfence-filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmpfence-filter-label {
    font-weight: 500;
    color: #333;
}

.vmpfence-filter-dropdown {
    position: relative;
    min-width: 250px;
}

.vmpfence-filter-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.vmpfence-filter-selected:hover {
    border-color: #007AFF;
}

.vmpfence-filter-text {
    flex: 1;
    text-align: left;
}

.vmpfence-filter-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.vmpfence-filter-selected.active .vmpfence-filter-arrow {
    transform: rotate(180deg);
}

.vmpfence-filter-list-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.vmpfence-filter-search {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.vmpfence-filter-search-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #333;
}

.vmpfence-filter-search-input:focus {
    outline: none;
    border-color: #007AFF;
}

.vmpfence-filter-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.vmpfence-filter-list-items li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

.vmpfence-filter-list-items li:last-child {
    border-bottom: none;
}

.vmpfence-filter-list-items li:hover {
    background: #e8f4f8;
}

.vmpfence-filter-list-items li.selected {
    background: #191970;
    color: #ffffff;
}

.vmpfence-filter-list-items li.selected:hover {
    background: #007AFF;
}

.vmpfence-filter-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 500;
}

.vmpfence-filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.vmpfence-filter-controls select:focus {
    outline: none;
    border-color: #007AFF;
}

.vmpfence-filter-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Traffic Table */
.vmpfence-traffic-table-container {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vmpfence-traffic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.vmpfence-traffic-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.vmpfence-traffic-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #191970;
    white-space: nowrap;
}

.vmpfence-traffic-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
}

.vmpfence-traffic-table tbody tr:hover {
    background: #f8f9fa;
}

.vmpfence-traffic-table td {
    padding: 12px;
    color: #2c3338;
    vertical-align: middle;
}

/* Page Visited column - max width with ellipsis */
.vmpfence-traffic-table .vmpfence-page-visited {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Detail Row */
.vmpfence-detail-row {
    background: #f0f8ff !important;
    border-left: 4px solid #007AFF;
}

.vmpfence-detail-row:hover {
    background: #f0f8ff !important;
}

.vmpfence-detail-cell {
    padding: 0 !important;
}

.vmpfence-activity-detail {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

.vmpfence-user-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: #191970;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmpfence-user-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.vmpfence-detail-content {
    flex: 1;
}

.vmpfence-detail-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #191970;
}

.vmpfence-detail-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #333;
}

.vmpfence-detail-description a {
    color: #007AFF;
    text-decoration: none;
}

.vmpfence-detail-description a:hover {
    text-decoration: underline;
}

.vmpfence-detail-url {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: #007AFF;
    word-break: break-all;
}

.vmpfence-detail-url a {
    color: #007AFF;
    text-decoration: none;
}

.vmpfence-detail-time {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: #666;
}

.vmpfence-detail-tech {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.8;
}

.vmpfence-detail-type {
    font-size: 13px;
    margin: 0 0 15px 0;
    color: #333;
}

.vmpfence-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Traffic Type Icons */
.vmpfence-traffic-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vmpfence-traffic-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.vmpfence-traffic-icon.human {
    background: #28a745;
}

.vmpfence-traffic-icon.bot {
    background: #ffc107;
}

.vmpfence-traffic-icon.blocked {
    background: #dc3545;
}

.vmpfence-traffic-icon.warning {
    background: #ff9800;
}

.vmpfence-traffic-icon.unspecified {
    background: #999999;
}

/* Response Badge */
.vmpfence-response-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    min-width: 40px;
    text-align: center;
}

.vmpfence-response-badge.response-200,
.vmpfence-response-badge.response-302 {
    color: #333333;
}

.vmpfence-response-badge.response-404 {
    color: #333;
}

.vmpfence-response-badge.response-403,
.vmpfence-response-badge.response-500 {
    color: #333333;
}

/* Action Buttons */
.vmpfence-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.vmpfence-action-btn.view {
    color: #82878c;
}

.vmpfence-action-btn.view:hover {
    color: #007AFF;
}

.vmpfence-action-btn .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Pagination */
.vmpfence-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
}

.vmpfence-pagination-info {
    color: #666;
    font-size: 14px;
}

.vmpfence-pagination-controls {
    display: flex;
    gap: 10px;
}

.vmpfence-pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #ffffff;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vmpfence-pagination-btn:hover:not(:disabled) {
    background: #191970;
    color: #ffffff;
    border-color: #191970;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.3);
}

.vmpfence-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Loading State */
.vmpfence-loading {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-family: 'Inter', sans-serif;
}

.vmpfence-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Seamless Loading Overlay */
.vmpfence-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.vmpfence-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #191970;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.vmpfence-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.vmpfence-empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.vmpfence-empty-state h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 20px;
}

.vmpfence-empty-state p {
    margin: 0;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vmpfence-tabs-nav {
        flex-direction: column;
    }

    .vmpfence-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .vmpfence-traffic-table {
        font-size: 12px;
    }

    .vmpfence-traffic-table th,
    .vmpfence-traffic-table td {
        padding: 8px 6px;
    }

    .vmpfence-pagination {
        flex-direction: column;
        gap: 15px;
    }
}

/* Audit Log Specific Styles */
.vmpfence-audit-summary {
    background: #e8f4f8;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.vmpfence-audit-summary h3 {
    margin: 0 0 10px 0;
    color: #191970;
    font-size: 18px;
}

.vmpfence-audit-summary p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Event Type Badge */
.vmpfence-event-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.vmpfence-event-badge.login {
    background: #e3f2fd;
    color: #1976d2;
}

.vmpfence-event-badge.security {
    background: #ffebee;
    color: #c62828;
}

.vmpfence-event-badge.config {
    background: #f3e5f5;
    color: #7b1fa2;
}

.vmpfence-event-badge.scan {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Coming Soon */
.vmpfence-coming-soon {
    text-align: center;
    padding: 100px 20px;
}

.vmpfence-coming-soon-text {
    font-size: 60px;
    color: #ccc;
    font-style: italic;
    margin: 0;
}

/* Advanced Filters Styles */
.vmpfence-advanced-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.vmpfence-advanced-filters-header {
    margin-bottom: 15px;
}

.vmpfence-advanced-filters-header h4 {
    margin: 0;
    font-size: 18px;
    color: #191970;
    font-weight: 600;
}

/* Two-Column Layout for Advanced Filters */
.vmpfence-advanced-filters-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.vmpfence-advanced-filters-left {
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 500px;
}

.vmpfence-advanced-filters-right {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vmpfence-filter-items {
    margin-bottom: 0;
}

.vmpfence-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.vmpfence-filter-param {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vmpfence-filter-operator {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vmpfence-filter-value {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vmpfence-btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.2s;
}

.vmpfence-btn-icon:hover {
    color: #c62828;
}

.vmpfence-btn-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.vmpfence-filter-row {
    margin-bottom: 15px;
}

/* Date Section Styles */
.vmpfence-filter-date-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vmpfence-filter-date-section label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.vmpfence-filter-date-section label strong {
    flex: 0 0 70px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.vmpfence-date-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vmpfence-input-date {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vmpfence-btn-clear {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vmpfence-btn-clear:hover {
    background: #e0e0e0;
}

/* Group By Section Styles */
.vmpfence-filter-groupby-section label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.vmpfence-filter-groupby-section label strong {
    flex: 0 0 70px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.vmpfence-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.vmpfence-btn-sm:hover {
    background: #e0e0e0;
}

.vmpfence-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

/* Add Filter Button in Left Column */
#vmpfence-add-filter {
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.vmpfence-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.vmpfence-filter-actions .vmpfence-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vmpfence-filter-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Real-Time Updates Styling */
.vmpfence-realtime-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmpfence-realtime-control label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.vmpfence-realtime-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #dc3232;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vmpfence-realtime-badge.active {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* New Record Highlight Animation */
.vmpfence-new-record {
    animation: highlightFade 3s ease-out;
}

@keyframes highlightFade {
    0% {
        background-color: #ffffcc;
    }
    100% {
        background-color: transparent;
    }
}

/* Responsive adjustments for real-time control */
@media (max-width: 768px) {
    .vmpfence-realtime-control {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
    }
}

/* ========================================
   Whois Lookup Styles
   ======================================== */

.whois-lookup-container {
    max-width: 1200px;
    /* margin: 0 auto; */
    padding: 24px 24px 24px 0;
}

/* Header */
.whois-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.whois-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #191970;
}

.whois-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #191970;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.whois-learn-more:hover {
    color: #007AFF;
}

.whois-learn-more .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Coming Soon Notice */
.whois-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.whois-notice-info {
    background: #F5F7FA;
    border-left: 4px solid #191970;
    color: #191970;
}

.whois-notice .dashicons {
    color: #191970;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Description */
.whois-description {
    background: #FFFFFF;
    padding: 20px;
    margin-bottom: 24px !important;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: none !important;
    transform: translateZ(0);
}

.whois-description p {
    margin: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3338;
}

/* Lookup Form */
.whois-lookup-form {
    display: flex;
    gap: 16px !important;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    align-items: center;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    transition: none !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.whois-input {
    flex: 1;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: #fff;
    color: #2c3338;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, height 0s, min-height 0s, max-height 0s !important;
    transform: translateZ(0);
}

.whois-input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.whois-input:disabled {
    background: #f6f7f7;
    color: #a7aaad;
    cursor: not-allowed;
    opacity: 0.6;
}

.whois-button {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: #191970;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, width 0s, height 0s, min-width 0s, max-width 0s, min-height 0s, max-height 0s !important;
    white-space: nowrap;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 250px !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.whois-button:hover:not(:disabled) {
    background: #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.whois-button:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    opacity: 0.4;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
}

/* Results Container */
.whois-results {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.whois-results-content {
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #2c3338;
}

/* WHOIS Results Cards */
.whois-resolution-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.whois-resolution-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.whois-resolution-info p {
    margin: 0;
    opacity: 0.95;
}

.whois-result-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.whois-result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.whois-card-header {
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.whois-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #191970;
}

.whois-info-block {
    margin-bottom: 20px;
}

.whois-info-block:last-child {
    margin-bottom: 0;
}

.whois-info-block h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #23282d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whois-table {
    width: 100%;
    border-collapse: collapse;
}

.whois-table tr {
    border-bottom: 1px solid #f0f0f1;
}

.whois-table tr:last-child {
    border-bottom: none;
}

.whois-table td {
    padding: 10px 12px;
    font-size: 14px;
}

.whois-table td:first-child {
    font-weight: 600;
    color: #555d66;
    width: 35%;
}

.whois-table td:last-child {
    color: #23282d;
}

.whois-table code {
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d63638;
}

.country-flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.whois-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.whois-button.loading .button-text {
    opacity: 0.7;
}

.whois-button.loading {
    pointer-events: none;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: none !important;
    transform: translateZ(0) !important;
}

.whois-button.loading .dashicons {
    display: none;
}

.whois-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.whois-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Container for IP address with inline button */
.whois-ip-with-button {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Inline Block IP Button (next to IP address in Whois results) */
.whois-block-ip-btn-inline {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.2;
}

.whois-block-ip-btn-inline:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.3);
}

.whois-block-ip-btn-inline:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

/* Action Buttons in Whois Results */
.whois-action-buttons {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.whois-block-ip-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whois-block-ip-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.whois-block-ip-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 782px) {
    .whois-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .whois-lookup-form {
        flex-direction: column;
    }
    
    .whois-button {
        width: 100%;
    }

    .whois-table td:first-child {
        width: 40%;
    }

    .whois-result-card {
        padding: 16px;
    }
}

/* ========================================
   Import/Export Options Styles
   ======================================== */

.import-export-container {
    max-width: 1200px;
    /* margin: 0 auto; */
    padding: 24px 24px 24px 0;
}

/* Header */
.import-export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.import-export-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #191970;
}

.import-export-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #191970;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.import-export-learn-more:hover {
    color: #007AFF;
}

.import-export-learn-more .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Coming Soon Notice */
.import-export-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.import-export-notice-info {
    background: #F5F7FA;
    border-left: 4px solid #191970;
    color: #191970;
}

.import-export-notice .dashicons {
    color: #191970;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Description */
.import-export-description {
    margin-bottom: 20px;
}

.import-export-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3338;
}

/* Panel */
.import-export-panel {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 0;
    margin-top: 20px;
}

.import-export-panel-title {
    margin: 0;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #dcdcde;
    background: #f9f9f9;
}

/* Sections */
.import-export-section {
    padding: 30px;
    border-bottom: 1px solid #dcdcde;
}

.import-export-section:last-child {
    border-bottom: none;
}

.import-export-section-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.import-export-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3338;
    font-weight: 400;
}

.import-export-help-icon {
    color: #646970;
    font-size: 18px;
    width: 18px;
    height: 18px;
    cursor: help;
    flex-shrink: 0;
}

.import-export-help-icon:hover {
    color: #007AFF;
}

/* Input Group */
.import-export-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.import-export-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: monospace;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    color: #2c3338;
    resize: vertical;
    transition: border-color 0.2s;
}

.import-export-textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 1px #007AFF;
}

.import-export-textarea:disabled {
    background: #f6f7f7;
    color: #a7aaad;
    cursor: not-allowed;
}

/* Button */
.import-export-button {
    align-self: flex-end;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #191970;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.import-export-button:hover:not(:disabled) {
    background: #007AFF;
}

.import-export-button:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 782px) {
    .import-export-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .import-export-button {
        width: 100%;
        align-self: stretch;
    }
    
    .import-export-section {
        padding: 20px;
    }
}

/* ========================================
   Diagnostics Styles
   ======================================== */

.diagnostics-container {
    max-width: 1200px;
    /* margin: 0 auto; */
    padding: 24px 24px 24px 0;
}

/* Header */
.diagnostics-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dcdcde;
}

.diagnostics-header h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #191970;
}

/* Coming Soon Notice */
.diagnostics-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.diagnostics-notice-info {
    background: #F5F7FA;
    border-left: 4px solid #191970;
    color: #191970;
}

.diagnostics-notice .dashicons {
    color: #191970;
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Top Section */
.diagnostics-top-section {
    background: #f0f0f1;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.diagnostics-description {
    margin-bottom: 15px;
}

.diagnostics-description p {
    margin: 0;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3338;
}

.diagnostics-description a {
    color: #191970;
    text-decoration: none;
    font-weight: 600;
}

.diagnostics-description a:hover {
    color: #007AFF;
    text-decoration: underline;
}

/* Actions */
.diagnostics-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    max-height: 60px;
}

.diagnostics-button {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: fit-content;
}

.diagnostics-button-primary {
    color: #fff;
    background: #191970;
}

.diagnostics-button-primary:hover:not(:disabled) {
    background: #007AFF;
}

.diagnostics-button-secondary {
    color: #191970;
    background: #fff;
    border: 1px solid #191970;
}

.diagnostics-button-secondary:hover:not(:disabled) {
    background: #f6f7f7;
    border-color: #007AFF;
    color: #007AFF;
}

.diagnostics-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Accordion */
.diagnostics-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
}

.diagnostics-accordion-item {
    background: #fff;
    border: 1px solid #dcdcde;
    /* border-radius: 12px; */
    overflow: hidden;
}

.diagnostics-accordion-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.diagnostics-accordion-header:hover {
    background: #f6f7f7;
}

/* Status Icons */
.diagnostics-status-icon {
    font-size: 18px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diagnostics-status-success {
    color: #2e7d32;
}

.diagnostics-status-warning {
    color: #d63638;
}

/* Title Section */
.diagnostics-accordion-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diagnostics-accordion-title {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #000000;
    display: block;
    transition: color 0.2s;
}

.diagnostics-accordion-item.active .diagnostics-accordion-title {
    color: #191970;
}

.diagnostics-accordion-description {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #646970;
    display: block;
}

/* Arrow */
.diagnostics-accordion-arrow {
    font-size: 24px;
    color: #000000;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.diagnostics-accordion-item.active .diagnostics-accordion-arrow {
    transform: rotate(90deg);
    color: #191970;
}

/* Content */
.diagnostics-accordion-content {
    padding: 20px;
    border-top: 1px solid #dcdcde;
    /* background: #f9f9f9; */
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #50575e;
    line-height: 1.6;
}

.diagnostics-accordion-content p {
    margin: 0;
}

/* Diagnostic Results Table */
.diagnostics-results-table {
    width: 100%;
    border-collapse: collapse;
}

.diagnostics-results-table tr {
    border-bottom: 1px solid #ddd;
}

.diagnostics-results-table tr:last-child {
    border-bottom: none;
}

.diagnostics-results-table td {
    padding: 12px 0;
    font-size: 14px;
    color: #2c3338;
}

.diagnostics-results-table td:first-child {
    width: 60%;
}

.diagnostics-results-table td:last-child {
    text-align: right;
    color: #646970;
}

/* Diagnostic Status Indicators */
.diagnostics-status-ok {
    color: #2e7d32;
    font-weight: 600;
}

.diagnostics-status-warning {
    color: #d63638;
    font-weight: 600;
}

.diagnostics-status-info {
    color: #646970;
}

/* Directory path highlighting */
.diagnostics-code-path {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

/* Results Table */
.diagnostics-results-table {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.diagnostics-results-table tr:last-child {
    border-bottom: none !important;
}

.diagnostics-results-table td {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 782px) {
    .diagnostics-actions {
        flex-direction: column;
    }
    
    .diagnostics-button {
        width: 100%;
    }
    
    .diagnostics-accordion-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .diagnostics-status-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .diagnostics-accordion-title {
        font-size: 13px;
    }
    
    .diagnostics-accordion-description {
        font-size: 12px;
    }
}

/* ============================================
   WHOIS MODAL
   ============================================ */

/* Modal Wrapper */
.vmpfence-whois-modal {
    z-index: 999997 !important;
}

/* Modal Content */
.vmpfence-whois-modal-content {
    position: relative;
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.vmpfence-whois-modal.show .vmpfence-whois-modal-content {
    transform: scale(1);
}

/* Modal Header */
.vmpfence-whois-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #191970 0%, #2c3e91 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.vmpfence-whois-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmpfence-whois-modal-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vmpfence-whois-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.vmpfence-whois-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.vmpfence-whois-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Modal Body */
.vmpfence-whois-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

/* Loading State */
.vmpfence-whois-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.vmpfence-whois-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f1;
    border-top-color: #191970;
    border-radius: 50%;
    animation: vmpfence-whois-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes vmpfence-whois-spin {
    to { transform: rotate(360deg); }
}

.vmpfence-whois-modal-loading p {
    font-size: 15px;
    color: #555d66;
    margin: 0;
}

/* Results Container */
.vmpfence-whois-modal-results {
    /* Results will use existing .whois-result-card styles */
}

/* Adjust result cards for modal */
.vmpfence-whois-modal-results .whois-result-card {
    margin-bottom: 20px;
}

.vmpfence-whois-modal-results .whois-result-card:last-child {
    margin-bottom: 0;
}

/* Modal Footer */
.vmpfence-whois-modal-footer {
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #dcdcde;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.vmpfence-whois-modal-close-btn {
    min-width: 100px;
}

/* Error State in Modal */
.vmpfence-whois-modal-results .whois-error {
    margin: 0;
}

/* Block IP Button in Modal */
.whois-block-ip-btn-inline-modal {
    padding: 6px 12px;
    background: linear-gradient(135deg, #191970 0%, #2c3e91 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.whois-block-ip-btn-inline-modal:hover {
    background: linear-gradient(135deg, #1a1a70 0%, #2d4092 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.3);
}

.whois-block-ip-btn-inline-modal:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 782px) {
    .vmpfence-whois-modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .vmpfence-whois-modal-header {
        padding: 16px 20px;
    }
    
    .vmpfence-whois-modal-title {
        font-size: 16px;
    }
    
    .vmpfence-whois-modal-body {
        padding: 20px;
    }
    
    .vmpfence-whois-modal-footer {
        padding: 12px 20px;
    }
}

/* ============================================
   RECENT TRAFFIC MODAL
   ============================================ */

/* Modal Wrapper */
.vmpfence-recent-traffic-modal {
    z-index: 999996 !important;
}

/* Modal Content */
.vmpfence-recent-traffic-modal-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.vmpfence-recent-traffic-modal.show .vmpfence-recent-traffic-modal-content {
    transform: scale(1);
}

/* Modal Header */
.vmpfence-recent-traffic-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #191970 0%, #2c3e91 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.vmpfence-recent-traffic-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmpfence-recent-traffic-modal-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vmpfence-recent-traffic-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.vmpfence-recent-traffic-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vmpfence-recent-traffic-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Modal Body */
.vmpfence-recent-traffic-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70vh;
    flex: 1;
}

/* Loading Spinner */
.vmpfence-recent-traffic-modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.vmpfence-recent-traffic-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #191970;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: vmpfence-recent-traffic-spin 0.8s linear infinite;
}

@keyframes vmpfence-recent-traffic-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Activity Entry Card */
.vmpfence-activity-entry {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.vmpfence-activity-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.vmpfence-activity-entry:last-child {
    margin-bottom: 0;
}

.vmpfence-activity-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.vmpfence-activity-time {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.vmpfence-activity-time-ago {
    font-size: 12px;
    color: #666;
    margin-left: 8px;
}

.vmpfence-activity-seconds-since {
    font-size: 12px;
    color: #007bff;
    background: #e7f3ff;
    padding: 4px 8px;
    border-radius: 4px;
}

.vmpfence-activity-url {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
}

.vmpfence-activity-url strong {
    color: #666;
    margin-right: 8px;
}

.vmpfence-activity-url a {
    color: #007bff;
    text-decoration: none;
}

.vmpfence-activity-url a:hover {
    text-decoration: underline;
}

.vmpfence-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #666;
}

.vmpfence-activity-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vmpfence-activity-meta-label {
    font-weight: 600;
    color: #333;
}

.vmpfence-activity-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vmpfence-activity-type-badge.normal {
    background: #28a745;
    color: white;
}

.vmpfence-activity-type-badge.blocked {
    background: #dc3545;
    color: white;
}

.vmpfence-activity-type-badge.login {
    background: #007bff;
    color: white;
}

.vmpfence-activity-type-badge.logout {
    background: #6c757d;
    color: white;
}

.vmpfence-activity-type-badge.not-found {
    background: #ffc107;
    color: #333;
}

.vmpfence-activity-referrer {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.vmpfence-activity-referrer strong {
    color: #333;
}

.vmpfence-activity-referrer a {
    color: #007bff;
    word-break: break-all;
}

.vmpfence-activity-browser {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    font-family: monospace;
}

/* Empty State */
.vmpfence-no-recent-activity {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.vmpfence-no-recent-activity .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #ccc;
    margin-bottom: 16px;
}

/* Modal Footer */
.vmpfence-recent-traffic-modal-footer {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 782px) {
    .vmpfence-recent-traffic-modal-content {
        width: 98%;
        max-height: 90vh;
    }
    
    .vmpfence-activity-entry-header {
        flex-direction: column;
    }
}

/* ============================================================================
   IMPORT/EXPORT STYLES
   ============================================================================ */

/* Result containers */
.import-export-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success messages */
.import-export-success-message,
.import-export-token-display,
.import-export-success-display {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
}

.import-export-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #191970;
    font-weight: 600;
    margin-bottom: 15px;
}

.import-export-success-message .dashicons {
    color: #28a745;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Error messages */
.import-export-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-weight: 600;
}

.import-export-error .dashicons {
    color: #ffc107;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Token display */
.import-export-token-info {
    margin-top: 15px;
}

.import-export-token-info strong {
    display: block;
    margin-bottom: 8px;
    color: #191970;
    font-size: 14px;
}

.token-value {
    background: #ffffff;
    border: 2px dashed #b3d9ff;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 600;
    color: #191970;
    word-break: break-all;
    margin-bottom: 10px;
    user-select: all;
}

.copy-token-btn {
    background: #191970 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-token-btn:hover {
    background: #0f0f50 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 25, 112, 0.2);
}

.copy-token-btn:active {
    transform: translateY(0);
}

/* Token expiry and sections */
.token-expiry,
.token-sections,
.import-source,
.import-sections {
    margin-top: 12px;
    padding: 10px;
    background: rgba(25, 25, 112, 0.05);
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}

.import-notice {
    margin-top: 15px;
    padding: 12px;
    background: #fff9e6;
    border: 1px solid #ffeb3b;
    border-radius: 4px;
    color: #856404;
    font-weight: 600;
    text-align: center;
}

/* Note text */
.import-export-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .token-value {
        font-size: 14px;
        padding: 12px;
    }
    
    .copy-token-btn {
        width: 100%;
        padding: 12px 20px !important;
    }
}
