.foxblock-wrap {
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    box-sizing: border-box;
    --foxblock-btn-bg: #ff6c00;
    --foxblock-btn-bg-hover: #ff5100;
    --foxblock-btn-text: #ffffff;
    --foxblock-btn-shadow: 0 14px 30px rgba(15, 52, 96, 0.22);
    --foxblock-btn-shadow-hover: 0 18px 34px rgba(15, 52, 96, 0.28);
    --foxblock-btn-muted-bg: #ffffff;
    --foxblock-btn-muted-text: #1d3557;
    --foxblock-btn-muted-border: rgba(23, 58, 94, 0.12);
    --foxblock-btn-danger-bg: linear-gradient(135deg, #d63638 0%, #a5232a 100%);
    --foxblock-btn-danger-shadow: 0 14px 28px rgba(214, 54, 56, 0.22);
}

.foxblock-wrap *,
.foxblock-wrap *::before,
.foxblock-wrap *::after {
    box-sizing: inherit;
}

.foxblock-wrap * {
    scrollbar-width: thin;
    scrollbar-color: #ff6c00 rgba(255, 108, 0, 0.12);
}

.foxblock-wrap *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.foxblock-wrap *::-webkit-scrollbar-track {
    background: rgba(255, 108, 0, 0.12);
    border-radius: 999px;
}

.foxblock-wrap *::-webkit-scrollbar-thumb {
    background: #ff6c00;
    border-radius: 999px;
}

.foxblock-wrap *::-webkit-scrollbar-thumb:hover {
    background: #ff6c00;
}

.foxblock-wrap .wrap,
.foxblock-wrap .foxblock-content,
.foxblock-wrap .foxblock-card,
.foxblock-wrap .foxblock-card-header,
.foxblock-wrap .foxblock-header,
.foxblock-wrap .foxblock-header-brand,
.foxblock-wrap .foxblock-header-meta {
    min-width: 0;
}

.foxblock-wrap .button,
.foxblock-wrap button,
.foxblock-wrap input[type="submit"],
.foxblock-wrap input[type="button"] {
    appearance: none;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--foxblock-btn-muted-bg) !important;
    color: var(--foxblock-btn-muted-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-shadow: none !important;
}

.foxblock-wrap .button:focus,
.foxblock-wrap button:focus,
.foxblock-wrap input[type="submit"]:focus,
.foxblock-wrap input[type="button"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(34, 113, 177, 0.18), 0 14px 28px rgba(15, 23, 42, 0.12) !important;
}

.foxblock-wrap .button:disabled,
.foxblock-wrap button:disabled,
.foxblock-wrap input[type="submit"]:disabled,
.foxblock-wrap input[type="button"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none !important;
}

.foxblock-wrap .button .dashicons,
.foxblock-wrap button .dashicons,
.foxblock-wrap input[type="submit"] .dashicons,
.foxblock-wrap input[type="button"] .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}

.foxblock-wrap .button.button-primary,
.foxblock-wrap button.button-primary,
.foxblock-wrap input.button-primary[type="submit"],
.foxblock-wrap input.button-primary[type="button"] {
    background: var(--foxblock-btn-bg) !important;
    color: var(--foxblock-btn-text) !important;
}

.foxblock-wrap .button.button-primary:hover,
.foxblock-wrap button.button-primary:hover,
.foxblock-wrap input.button-primary[type="submit"]:hover,
.foxblock-wrap input.button-primary[type="button"]:hover {
    background: var(--foxblock-btn-bg-hover) !important;
    color: var(--foxblock-btn-text) !important;
}

.foxblock-wrap .button.button-secondary,
.foxblock-wrap button.button-secondary,
.foxblock-wrap input.button-secondary[type="submit"],
.foxblock-wrap input.button-secondary[type="button"] {
    background: #ff6c0029 !important;
    color: #ff6c00 !important;
}

.foxblock-wrap .button.button-secondary:hover,
.foxblock-wrap button.button-secondary:hover,
.foxblock-wrap input.button-secondary[type="submit"]:hover,
.foxblock-wrap input.button-secondary[type="button"]:hover {
    background: #e7e7e7 !important;
    color: #ff6c00 !important;
}

.foxblock-wrap .button.button-hero,
.foxblock-wrap button.button-hero,
.foxblock-wrap input.button-hero[type="submit"],
.foxblock-wrap input.button-hero[type="button"] {
    min-height: 45px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
}

.foxblock-wrap .button.button-small,
.foxblock-wrap button.button-small,
.foxblock-wrap input.button-small[type="submit"],
.foxblock-wrap input.button-small[type="button"] {
    min-height: 34px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
}

/* Header */
.foxblock-header {
    background: #ff6c00;
    padding: 24px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.foxblock-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(214, 54, 56, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.foxblock-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.foxblock-header-brand {
    display: flex;
    align-items: center;
    flex: 1 1 420px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.foxblock-header-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background: #ffbe00;
    perspective: 800px;
}

.foxblock-header-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #252525;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    backface-visibility: visible;
    animation: foxblock-coin-flip 2.8s ease-in-out infinite;
}

@keyframes foxblock-coin-flip {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.foxblock-card h2 {
    margin: 0px;
}

#foxblock-blocked-ips,
#foxblock-whitelist-ips {
    font-family: monospace;
    font-size: 13px;
    color: #1d2327;
    background: #fffbf0;
    border: 1px solid #ffc396;
    border-radius: 8px;
    padding: 12px 15px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.foxblock-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
    padding: 0px;
}

.foxblock-header-badge {
    font-size: 9px;
    font-weight: 600;
    background: rgb(255 237 0 / 64%);
    color: #212121;
    border: 1px solid rgb(255 255 255);
    padding: 4px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.foxblock-header p {
    margin: 0;
    color: rgb(255 228 147);
    font-size: 14px;
}

.foxblock-header-meta {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.foxblock-header-version {
    font-size: 12px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: #ffdcc163;
    border: 1px solid rgb(255 255 255 / 50%);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Tabs Navbar */
.foxblock-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.foxblock-tab-link {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #50575e;
    border: 1px solid transparent;
    transition: all 0.2s;
    border-radius: 10px;
    background: #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
}

.foxblock-tab-link:hover {
    color: #ff6c00;
    background: #f8deca;
}

.foxblock-tab-link.active {
    color: #ffffff;
    background: #ff6c00;
}

.foxblock-tab-link:focus {
    box-shadow: none;
    outline: none;
}

.foxblock-tab {
    display: none;
}

.foxblock-tab.active {
    display: block;
    animation: foxblock-fadein 0.3s ease;
}

@keyframes foxblock-fadein {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & Tables */
.foxblock-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}

.foxblock-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.foxblock-card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
    font-weight: 600;
}

.foxblock-title-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ff6c00;
}

.foxblock-table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ffb781;
    border-radius: 10px;
}

.foxblock-table-responsive-2 {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
}

.foxblock-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    margin: 0;
}

.foxblock-table th {
    background: #ffefe3;
    color: #2c3338;
    font-weight: 600;
    padding: 12px 15px;
    border-bottom: 2px solid #edc6a9;
    white-space: nowrap;
}

.foxblock-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.foxblock-table tbody tr:hover td {
    background: #f9f9f9;
}

/* Bot styling - highlight rows in RED */
.foxblock-bot-row td {
    background-color: #fcf0f1 !important;
    color: #8a2424;
}

.foxblock-bot-row:hover td {
    background-color: #f6e3e4 !important;
}

.foxblock-bot-row td code {
    background: rgba(200, 50, 50, 0.1);
    color: #8a2424;
}

.foxblock-bot-row .foxblock-device-badge {
    background: #d63638;
    color: #fff;
}

.foxblock-time {
    white-space: nowrap;
    width: 140px;
}

.foxblock-flag {
    width: 40px;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    padding: 6px 4px !important;
}

.foxblock-ip {
    white-space: nowrap;
    width: 120px;
    font-weight: 500;
}

.foxblock-ip.is-admin-ip {
    color: #00a32a;
    font-weight: 700;
}

.foxblock-block-btn {
    min-height: 30px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #fff !important;
    border-color: rgba(165, 35, 42, 0.15) !important;
    background: var(--foxblock-btn-danger-bg) !important;
    box-shadow: var(--foxblock-btn-danger-shadow) !important;
}

.foxblock-block-btn:hover {
    background: linear-gradient(135deg, #e04345 0%, #b32228 100%) !important;
    color: #fff !important;
    box-shadow: 0 18px 32px rgba(214, 54, 56, 0.28) !important;
}

.foxblock-device-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #22b169;
    color: white;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
    text-transform: uppercase;
}

.foxblock-ua-text {
    color: #50575e;
    word-break: break-all;
    font-family: monospace;
    font-size: 12px;
}

.foxblock-bot-row .foxblock-ua-text {
    color: #8a2424;
}

.foxblock-fim-action-container {
    margin-top: 20px;
    padding: 20px;
    background: #fff3e7;
    border: 1px solid #ff6c0073;
    border-radius: 10px;
}

.foxblock-url {
    max-width: 300px;
    word-break: break-all;
}

.foxblock-url code {
    background: #fff3eb;
    padding: 4px 8px;
    border-radius: 4px;
    color: #1d2327;
    font-size: 12px;
    border: 1px solid #d8c07d;
}

/* Settings Form */
.foxblock-settings-form h2 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.foxblock-bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    background: #fffbf4;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ff6c0042;
}

.foxblock-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
}

.foxblock-country-item {
    gap: 8px;
}

.foxblock-country-flag {
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    vertical-align: middle;
}

.foxblock-checkbox input {
    margin: 0;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    cursor: pointer;
    accent-color: #ff6c00;
    border-color: rgba(255, 108, 0, 0.35);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.foxblock-checkbox:hover input {
    box-shadow: 0 0 0 4px rgba(255, 108, 0, 0.12);
}

.foxblock-checkbox input:checked {
    box-shadow: 0 8px 16px rgba(255, 108, 0, 0.2);
}

.foxblock-checkbox input:focus-visible {
    outline: none;
    border-color: #ff6c00;
    box-shadow: 0 0 0 4px rgba(255, 108, 0, 0.18);
}

.foxblock-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    line-height: 1.4;
}

.foxblock-divider {
    border: 0;
    border-top: 1px solid #ff6c0059;
    margin: 30px 0;
}

.foxblock-custom-bots {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #ff6c0042;
    border-radius: 10px;
    background: #fffbf4;
}

.foxblock-custom-bot-add input {
    border: 1px solid #ff6c008a;
    background: #ffffff;
    border-radius: 10px;
}

#foxblock-add-custom-bot {
    background: #ff6c00 !important;
    color: #fff !important;
}

.foxblock-custom-bots-header h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #102a43;
}

.foxblock-custom-bots-header p {
    margin: 0;
    color: #5c6b7a;
    font-size: 13px;
}

.foxblock-custom-bot-add {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.foxblock-custom-bot-input {
    flex: 1 1 320px;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #102a43;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.foxblock-custom-bot-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.foxblock-custom-bot-status {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

.foxblock-custom-bot-status.is-success {
    color: #ff6c00;
}

.foxblock-custom-bot-status.is-error {
    color: #e74338;
}

.foxblock-custom-bot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.foxblock-custom-bot-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 0 12px;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #fff;
    color: #173a5e;
    min-height: 40px;
    margin-top: 14px;
}

.foxblock-custom-bot-chip input {
    display: none;
}

.foxblock-custom-bot-name {
    font-size: 13px;
    font-weight: 600;
}

.foxblock-custom-bot-remove {
    min-height: 32px !important;
    width: 28px;
    padding: 0 !important;
    color: #b42318 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

.foxblock-custom-bot-remove .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.foxblock-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-top: 15px;
    margin-bottom: 5px;
    gap: 10px;
}

.foxblock-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.foxblock-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
    margin-right: 12px;
    flex-shrink: 0;
}

.foxblock-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.foxblock-toggle input:checked+.foxblock-slider {
    background-color: #ff6c00;
}

.foxblock-toggle input:focus+.foxblock-slider {
    box-shadow: 0 0 0 2px #fff, 0 0 0 2px #ff6c00;
}

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

.foxblock-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.foxblock-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #ff6c0059;
}

.foxblock-card-header>div:last-child,
.foxblock-fim-clean-msg>div,
.foxblock-wrap [style*="display:flex;gap:10px;"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}

.foxblock-status {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.foxblock-status.show {
    opacity: 1;
}

.foxblock-status.success {
    color: #008a20;
}

.foxblock-status.error {
    color: #d63638;
}

/* Spin animation for loading icons */
@keyframes foxblock-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.foxblock-spin {
    display: inline-block;
    animation: foxblock-spin 1s linear infinite;
}

/* File Monitor */
.foxblock-fim-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .foxblock-fim-summary {
        grid-template-columns: 1fr 1fr;
    }
}

.foxblock-fim-stat {
    border-radius: 8px;
    padding: 15px 25px;
    text-align: center;
}

.foxblock-fim-stat--modified {
    border: 1px solid #dca81cc2;
    background: #fffaeb;
}

.foxblock-fim-stat--added {
    border: 1px solid #2774b38c;
    background: #e9f5ff;
}

.foxblock-fim-stat--deleted {
    border: 1px solid #d6363882;
    background: #ffeaeb;
}

.foxblock-fim-stat--clean {
    border: 1px solid #008a208f;
    background: #f7fff9;
}

.foxblock-fim-count {
    display: flex;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    width: 100%;
    line-height: 1.2;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.foxblock-fim-label {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.foxblock-fim-clean-msg {
    padding: 10px;
    color: #ff6c00;
    font-size: 15px;
    font-weight: 500;
    background: #ffeed94f;
    border: 1px solid #ffa33194;
    border-radius: 6px;
}

.foxblock-fim-clean-msg .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.foxblock-fim-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.foxblock-fim-badge--modified {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.foxblock-fim-badge--added {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.foxblock-fim-badge--deleted {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.foxblock-fim-path {
    font-size: 12px;
    word-break: break-all;
}

.foxblock-fim-error {
    padding: 20px;
    background: #fcf0f1;
    border: 1px solid #f8cacc;
    border-radius: 6px;
    color: #8a2424;
}

/* Malware Scanner */
.foxblock-malware-summary {
    margin-bottom: 20px;
}

.foxblock-malware-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.foxblock-malware-stat--clean {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.foxblock-malware-stat--danger {
    background: #fff5f5;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.foxblock-malware-stat-icon {
    font-size: 38px !important;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

button#foxblock-export-txt-btn {
    background: #0284c7 !important;
}

.foxblock-malware-stat strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.foxblock-malware-stat span {
    font-size: 12px;
    opacity: 0.75;
}

.foxblock-malware-warning-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #ebfff6;
    border: 1px solid #38a77f;
    border-radius: 6px;
    font-size: 13px;
    color: #19513d;
}

.foxblock-malware-warning-note .dashicons {
    flex-shrink: 0;
    margin-top: 1px;
}

.foxblock-malware-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    white-space: nowrap;
}

.foxblock-malware-row td {
    background-color: #fff9f9;
}

.foxblock-malware-row:hover td {
    background-color: #fff0f0 !important;
}

.foxblock-malware-code {
    font-size: 11px;
    word-break: break-all;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid #ede9fe;
    display: block;
    max-width: 500px;
    white-space: pre-wrap;
}

#foxblock-tab-malware .foxblock-table-responsive,
#foxblock-malware-result .foxblock-table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

#foxblock-tab-malware .foxblock-table,
#foxblock-malware-result .foxblock-table {
    width: 100%;
    min-width: 980px;
}

/* Progress bar */
.foxblock-progress-wrap {
    width: 100%;
    height: 15px;
    background: #e2e4e7;
    border-radius: 99px;
    margin: 12px auto 0;
    overflow: hidden;
}

.foxblock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff023, #ff8c09);
    border-radius: 99px;
    transition: width 0.3s ease;
}

/* Malware file block grouping */
.foxblock-malware-file-block {
    border: 1px solid #edc6a9;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

code.foxblock-fim-path {
    background: #ff6c000f;
    border: 1px solid #ff6c0069;
    color: #313131;
    border-radius: 4px;
}

.foxblock-malware-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f6f7f7;
    border-bottom: 1px solid #edc6a9;
    flex-wrap: wrap;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.foxblock-toggle-btn {
    width: 20px !important;
    height: 30px !important;
    padding: 0px;
    margin: 0px;
    min-height: auto !important;
    min-width: auto !important;
}

.foxblock-malware-file-header:hover {
    background: #eef0f1;
}

.foxblock-malware-toggle {
    user-select: none;
}

.foxblock-ai-file-analysis {
    margin: 14px 12px 12px;
    word-break: break-all;
}

.foxblock-ai-file-analysis__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #9a3412;
    font-size: 13px;
}

.foxblock-ai-file-analysis__header .dashicons {
    color: #ea580c;
}

.foxblock-ai-file-analysis__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foxblock-ai-file-analysis__item {
    padding: 12px;
    border: 1px solid #ff1e0054;
    border-radius: 5px;
    background: #fff1f2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.foxblock-ai-file-analysis__item.is-safe {
    border:1px solid #24d390;
    background: #f8fafc;
}

.foxblock-ai-file-analysis__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
}

.foxblock-ai-file-analysis__item.is-safe .foxblock-ai-file-analysis__title .dashicons,
.foxblock-ai-file-analysis__item.is-safe .foxblock-ai-file-analysis__body {
    color: #10b981;
}

.foxblock-ai-file-analysis__item:not(.is-safe) .foxblock-ai-file-analysis__title .dashicons {
    color: #e11d48;
}

.foxblock-ai-file-analysis__body {
    margin-left: 26px;
    color: #9f1239;
    font-size: 13px;
    line-height: 1.6;
}

.foxblock-ai-file-analysis__status {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    border: 1px dashed #fdba74;
    color: #7c2d12;
}

.foxblock-ai-file-analysis__status.is-done {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.foxblock-toggle-btn {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    min-height: auto !important;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.foxblock-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.foxblock-toggle-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #646970;
    transition: transform 0.2s ease;
}

.foxblock-malware-file-header.active .foxblock-toggle-btn .dashicons {
    transform: rotate(45deg);
}

.foxblock-findings-count {
    font-size: 12px;
    color: #646970;
    font-weight: 500;
}

.foxblock-malware-details {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.foxblock-malware-inner-table {
    margin: 0;
    border: none;
    border-radius: 0;
    width: max-content;
    min-width: 980px;
}

.foxblock-malware-inner-table th,
.foxblock-malware-inner-table td {
    font-size: 12px;
    padding: 10px 12px;
}

.foxblock-malware-inner-scroll {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 8px 8px;
}

.foxblock-malware-score-badge {
    font-size: 12px;
    font-weight: 700;
    background: #38a77f;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.foxblock-risk-high {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.foxblock-risk-medium {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.foxblock-risk-low {
    background: #f0f9ff;
    color: #075985;
    border: 1px solid #bae6fd;
}

@media (max-width: 1024px) {

    .foxblock-header,
    .foxblock-card,
    .foxblock-nav {
        padding-left: 20px;
        padding-right: 20px;
    }

    .foxblock-card {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .foxblock-fim-stat {
        flex: 1 1 140px;
    }
}

@media (max-width: 782px) {
    .foxblock-wrap {
        margin-top: 12px;
    }

    .foxblock-header {
        padding: 20px;
        align-items: flex-start;
    }

    .foxblock-header-icon .dashicons {
        font-size: 38px;
        width: 38px;
        height: 38px;
    }

    .foxblock-header h1 {
        font-size: 20px;
        text-transform: uppercase;
        flex-wrap: wrap;
    }

    .foxblock-header-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .foxblock-nav {
        gap: 10px;
        padding: 10px;
    }

    .foxblock-tab-link {
        flex: 1 1 220px;
        width: 100%;
        padding: 10px 14px;
    }

    .foxblock-card {
        padding: 18px;
    }

    .foxblock-card-header {
        align-items: flex-start;
    }

    .foxblock-card-header>div:first-child,
    .foxblock-card-header>div:last-child {
        width: 100%;
    }

    .foxblock-actions>.button,
    .foxblock-card-header>div:last-child>.button,
    .foxblock-fim-action-container .button,
    .foxblock-custom-bot-add .button {
        width: 100%;
        justify-content: center;
        margin-right: 0px !important;
    }

    .foxblock-toggle-text,
    .foxblock-status {
        width: 100%;
    }

    .foxblock-fim-summary {
        gap: 10px;
    }

    .foxblock-fim-stat {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .foxblock-malware-stat,
    .foxblock-malware-warning-note,
    .foxblock-fim-clean-msg {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .foxblock-wrap .button,
    .foxblock-wrap button,
    .foxblock-wrap input[type="submit"],
    .foxblock-wrap input[type="button"] {
        min-height: 38px !important;
        padding: 0 14px !important;
    }

    .foxblock-nav {
        padding: 8px;
    }

    .foxblock-tab-link {
        flex-basis: 100%;
        font-size: 14px;
    }

    .foxblock-table {
        min-width: 640px;
    }

    .foxblock-time,
    .foxblock-ip {
        white-space: nowrap;
    }

    .foxblock-url,
    .foxblock-malware-code {
        max-width: none;
    }

    #foxblock-tab-malware .foxblock-table,
    #foxblock-malware-result .foxblock-table {
        min-width: 900px;
        width: 100%;
    }

    .foxblock-malware-inner-table {
        min-width: 900px;
    }

    .foxblock-fim-stat {
        flex-basis: 100%;
    }

    .foxblock-custom-bot-input {
        flex-basis: 100%;
    }
}

/* Comparison Section Styles */
.foxblock-comparison-section {
    background: #fff9f0;
    border: 2px solid #ff00004d;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.foxblock-comparison-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.foxblock-changes-box {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.foxblock-changes-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.foxblock-changes-box h4:hover {
    opacity: 0.9;
}

.foxblock-comparison-toggle {
    position: relative;
}

.foxblock-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.foxblock-toggle-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.foxblock-comparison-toggle.active .foxblock-toggle-icon .dashicons {
    transform: rotate(45deg);
}

.foxblock-comparison-details {
    overflow: hidden;
}

.foxblock-changes-new {
    border: 1px solid #fecaca;
}

.foxblock-changes-new h4 {
    background: #fff5f5;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}

.foxblock-changes-removed {
    border: 1px solid #bbf7d0;
    margin-top: 15px;
}

.foxblock-changes-removed h4 {
    background: #f0fdf4;
    color: #166534;
    border-bottom: 1px solid #bbf7d0;
}

.foxblock-new-issue td {
    background-color: #fff5f5 !important;
}

.foxblock-new-issue:hover td {
    background-color: #fee2e2 !important;
}

.foxblock-removed-issue td {
    background-color: #f0fdf4 !important;
    text-decoration: line-through;
    opacity: 0.7;
}

.foxblock-removed-issue:hover td {
    background-color: #dcfce7 !important;
}

#foxblock-save-scan-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#foxblock-save-scan-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.foxblock-header.foxblock-header-footer {
    background: #333;
    margin-bottom: 0px;
}

/* ── Security Audit Tab ──────────────────────────────────────────────────── */

/* Score Circle */
.foxblock-audit-score-wrap {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

@media (max-width: 782px) {
    .foxblock-audit-score-wrap {
        justify-content: center;
    }
}

.foxblock-score-circle {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.foxblock-score-circle svg {
    transform: rotate(-90deg);
}

.foxblock-score-circle__bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 14;
}

.foxblock-score-circle__bar {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1), stroke 0.5s;
}

.foxblock-score-circle__num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    transition: color 0.5s;
}

.foxblock-score-circle__label {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #ffffff;
    white-space: nowrap;
    background: #ff6c00;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Grade badge */
.foxblock-audit-grade {
    font-size: 82px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ff6c00, #ffb347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Category pills */
.foxblock-audit-cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.foxblock-audit-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fffaf6;
    border: 1px solid #ff6c0061;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.foxblock-audit-cat .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Check groups */
.foxblock-audit-group {
    margin-bottom: 20px;
}

.foxblock-audit-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foxblock-audit-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Check rows */
.foxblock-audit-checks {
    display: grid;
    gap: 8px;
}

.foxblock-audit-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: box-shadow .2s;
}

.foxblock-audit-check:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.foxblock-audit-check.pass {
    border: 1px solid #44ef9f69;
    background: linear-gradient(135deg, #00ff7307, #ffffff00);
}

.foxblock-audit-check.fail {
    border: 1px solid #ef444469;
    background: linear-gradient(135deg, #ff000007, #ffffff00);
}

.foxblock-audit-check.warn {
    border: 1px solid #efa54469;
    background: linear-gradient(135deg, #ffd90007, #ffffff00);
}

.foxblock-audit-check.info {
    border: 1px solid #44b9ef69;
    background: linear-gradient(135deg, #00a2ff07, #ffffff00);
}

.foxblock-audit-check__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.foxblock-audit-check.pass .foxblock-audit-check__icon {
    background: #d1fae5;
    color: #059669;
}

.foxblock-audit-check.fail .foxblock-audit-check__icon {
    background: #fee2e2;
    color: #dc2626;
}

.foxblock-audit-check.warn .foxblock-audit-check__icon {
    background: #fef3c7;
    color: #d97706;
}

.foxblock-audit-check.info .foxblock-audit-check__icon {
    background: #dbeafe;
    color: #2563eb;
}

.foxblock-audit-check__body {
    flex: 1;
    min-width: 0;
}

.foxblock-audit-check__title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.foxblock-audit-check__desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.5;
}

.foxblock-audit-check__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.foxblock-audit-check.pass .foxblock-audit-check__badge {
    background: #d1fae5;
    color: #065f46;
}

.foxblock-audit-check.fail .foxblock-audit-check__badge {
    background: #fee2e2;
    color: #991b1b;
}

.foxblock-audit-check.warn .foxblock-audit-check__badge {
    background: #fef3c7;
    color: #92400e;
}

.foxblock-audit-check.info .foxblock-audit-check__badge {
    background: #dbeafe;
    color: #1e40af;
}

/* Loading */
#foxblock-audit-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: #646970;
}

.foxblock-audit-scan-dots {
    display: flex;
    gap: 8px;
}

.foxblock-audit-scan-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6c00;
    animation: foxblock-audot 1.2s infinite ease-in-out;
}

.foxblock-audit-scan-dots span:nth-child(2) {
    animation-delay: .2s;
}

.foxblock-audit-scan-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes foxblock-audot {

    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: .4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress bar */
.foxblock-audit-progress-bar-wrap {
    background: #f3f4f6;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    width: 220px;
}

.foxblock-audit-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6c00, #ffb347);
    border-radius: 8px;
    width: 0;
    transition: width 0.4s;
}

button.button.button-small.foxblock-backup-download {
    background: #009e7c !important;
    color: #fff !important;
}

button.button.button-small.foxblock-restore-from-list {
    background: #2271b1 !important;
    color: #fff !important;
}

button.button.button-small.foxblock-backup-delete {
    background: #dc2626 !important;
    color: #fff !important;
}
