/**
 * 🎨 UNIFIED GLOBAL STYLESHEET FOR ALL REFACTORED COMPONENTS
 * 
 * Handles all 15 refactored components with consistent, modern design:
 * - CommentRefactored, MediaRefactored, SecurityRefactored, WooCommerceRefactored
 * - AuthorRefactored, CaptchaRefactored, DebuggerRefactored, DowntimealertsRefactored
 * - EmergencyRefactored, MaintenanceRefactored, MenuRefactored, PageNPostRefactored
 * - SiteRefactored, ThemeRefactored, WpwidgetsRefactored
 * 
 * Features:
 * ✅ Modern CSS Variables System
 * ✅ Fully Responsive Design
 * ✅ Professional PRO/NEW Tags
 * ✅ Smooth Animations
 * ✅ Accessibility Support
 * ✅ Dark Mode Support
 * ✅ Performance Optimized
 */

/* ===== 🎨 CSS VARIABLES SYSTEM ===== */
:root {
    /* 🎯 Primary Brand Colors */
    --primary-color: #008080;
    --primary-hover: #005a87;
    --primary-light: #e6f3ff;
    --primary-dark: #004a6b;
    --brand-color: #008080;

    /* 🎨 Secondary Colors */
    --secondary-color: #f0f0f1;
    --secondary-hover: #dcdcde;
    --secondary-dark: #c3c4c7;

    /* 🚦 Status Colors */
    --success-color: #00a32a;
    --success-light: #e6f7e6;
    --success-dark: #007a1f;
    --error-color: #d63638;
    --error-light: #ffeaea;
    --error-dark: #b32d2e;
    --warning-color: #dba617;
    --warning-light: #fff8e1;
    --warning-dark: #b8860b;
    --info-color: #2271b1;
    --info-light: #e6f3ff;
    --info-dark: #1e5a8a;

    /* 👑 Premium Colors */
    --premium-color: #ff6900;
    --premium-gradient: linear-gradient(135deg, #ff6900 0%, #fcb900 100%);
    --premium-light: #fff4e6;
    --premium-border: #ff9500;
    --premium-shadow: 0 4px 15px rgba(255, 105, 0, 0.3);

    /* ✨ New Feature Colors */
    --new-color: #00d084;
    --new-gradient: linear-gradient(135deg, #00d084 0%, #00a068 100%);
    --new-light: #e6fff5;
    --new-shadow: 0 4px 15px rgba(0, 208, 132, 0.3);

    /* 📝 Typography Colors */
    --text-primary: #1d2327;
    --text-secondary: #646970;
    --text-muted: #8c8f94;
    --text-white: #ffffff;
    --text-link: #0073aa;
    --text-link-hover: #005a87;

    /* 🎭 Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f6f7f7;
    --bg-lighter: #fbfbfc;
    --bg-dark: #1d2327;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* 🔲 Border Colors */
    --border-color: #c3c4c7;
    --border-light: #e0e0e0;
    --border-focus: #007cba;
    --border-error: #d63638;
    --border-success: #00a32a;

    /* 🌟 Shadow System */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* 📏 Spacing System */
    --spacing-xs: 0.25rem;
    /* 4px */
    --spacing-sm: 0.5rem;
    /* 8px */
    --spacing-md: 1rem;
    /* 16px */
    --spacing-lg: 1.5rem;
    /* 24px */
    --spacing-xl: 2rem;
    /* 32px */
    --spacing-2xl: 3rem;
    /* 48px */
    --spacing-3xl: 4rem;
    /* 64px */

    /* 🔄 Border Radius */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ⚡ Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* 📖 Typography Scale */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */

    /* 📚 Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* 📐 Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* 🎯 Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 20;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* ===== 🌙 DARK MODE VARIABLES ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1d2327;
        --bg-light: #2c3338;
        --bg-lighter: #32373c;
        --text-primary: #f0f0f1;
        --text-secondary: #c3c4c7;
        --text-muted: #8c8f94;
        --border-color: #3c434a;
        --border-light: #50575e;
    }
}

/* ===== 🔄 GLOBAL RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ===== 🏗️ MAIN CONTAINER LAYOUT ===== */
.acb_comment,
.acb_media,
.acb_security,
.acb_woocommerce,
.acb_author,
.acb_captcha,
.acb_website_downtime_alerts,
.acb_emengency_shutdown,
.acb_maintenance_mode,
.acb_menu,
.acb_pagenpost,
.acb_sites,
.acb_theme,
.acb_widgets {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    transition: var(--transition-normal);

    &:hover {
        box-shadow: var(--shadow-lg);
    }

    /* 📱 Tablet Layout */
    @media (max-width: 1200px) {
        grid-template-columns: 1fr 350px;
        gap: var(--spacing-lg);
    }

    /* 📱 Mobile Layout */
    @media (max-width: 992px) {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin: var(--spacing-md);
    }

    /* 📱 Small Mobile */
    @media (max-width: 480px) {
        margin: var(--spacing-sm);
        border-radius: var(--radius-md);
    }
}



/* ===== 👈 LEFT SECTION STYLES ===== */
.acb_left {
    padding: var(--spacing-xl);
    background: var(--bg-lighter);
    border-right: 1px solid var(--border-light);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 1px 1px 1px 1px var(--brand-color);
    transition: all 0.3s ease;

    @media (max-width: 992px) {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: var(--spacing-lg);
    }

    @media (max-width: 480px) {
        padding: var(--spacing-md);
    }

    /* 🎯 Section Titles */
    h3 {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        margin: 0 0 var(--spacing-lg) 0;
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-semibold);
        color: var(--text-primary);
        line-height: var(--line-height-tight);

        @media (max-width: 480px) {
            font-size: var(--font-size-lg);
            flex-direction: column;
            align-items: flex-start;
            gap: var(--spacing-xs);
        }

        /* 🎬 Play Icon */
        .PlayCircleIcon {
            color: var(--primary-color);
            font-size: 1.5rem;
            transition: var(--transition-bounce);
            cursor: pointer;

            &:hover {
                color: var(--primary-hover);
                transform: scale(1.1);
            }

            &:active {
                transform: scale(0.95);
            }
        }
    }
}

/* ===== 👉 RIGHT SECTION STYLES ===== */
.acb_right {
    padding: var(--spacing-xl);
    background: var(--bg-white);

    @media (max-width: 992px) {
        padding: var(--spacing-lg);
    }

    @media (max-width: 480px) {
        padding: var(--spacing-md);
    }

    form {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);

        @media (max-width: 480px) {
            gap: var(--spacing-md);
        }
    }
}

/* ===== 🔄 Advance Error Log panel ===== */

.acb_debug_log {
    display: flex;
    gap: var(--spacing-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    transition: var(--transition-normal);

    .acb_left {
        width: 40% !important;


        .error-log-btn {
            display: flex;
            gap: 15px;
        }
    }

    .acb_right {
        width: 60% !important;
    }
}


/* ===== 🔄 TOGGLE SWITCH SECTIONS ===== */

.parent-section {
    margin-bottom: var(--spacing-lg);

    .toogle-section {
        position: relative;
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        // padding: var(--spacing-lg);
        // background: var(--bg-white);
        // border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        transition: var(--transition-normal);
        cursor: pointer;
        min-height: 70px;

        &:hover {
            // border-color: var(--border-focus);
            // box-shadow: 10px 0px 3px rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            flex-direction: row;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-md);
            min-height: auto;
            flex-wrap: wrap;
        }

        .free-feature {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            width: 100%;

            @media (max-width: 768px) {
                flex-direction: row;
                align-items: center;
                gap: var(--spacing-sm);
                flex-wrap: wrap;
            }

            /* 🔄 Toggle Switch (First Element) - Always on the right */
            .react-switch {
                order: 3;
                flex-shrink: 0;
                margin-left: auto;

                @media (max-width: 768px) {
                    order: 1;
                    margin-left: 0;
                    align-self: flex-end;
                }
            }

            /* 🏷️ Label (Second Element) - Always on the left, takes available space */
            >label {
                order: 1;
                flex: 1;
                font-weight: var(--font-weight-medium);
                color: var(--text-primary);
                cursor: pointer;
                line-height: var(--line-height-normal);
                transition: var(--transition-fast);
                margin: 0;
                font-size: var(--font-size-base);

                &:hover {
                    color: var(--primary-color);
                }

                @media (max-width: 768px) {
                    order: 2;
                    font-size: var(--font-size-sm);
                    flex: 1;
                }
            }

            /* 🎯 Tooltip Icon Container (Third Element) - Next to label */
            .wcs_title {
                order: 2;
                display: flex;
                align-items: center;
                flex-shrink: 0;
                margin-left: var(--spacing-xs);

                @media (max-width: 768px) {
                    order: 3;
                    margin-left: 0;
                    align-self: flex-start;
                }

                .wcs_tooltip_icon {
                    color: var(--text-muted);
                    font-size: 1.1rem;
                    cursor: help;
                    transition: var(--transition-fast);

                    &:hover {
                        color: var(--primary-color);
                        transform: scale(1.1);
                    }
                }
            }
        }

        /* 🎨 Feature Wrapper - Base styles for both active and inactive states */
        .wpnts_ispro {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            width: 100%;

            @media (max-width: 768px) {
                flex-direction: row;
                align-items: center;
                gap: var(--spacing-sm);
                flex-wrap: wrap;
            }

            /* 🔄 Toggle Switch (First Element) - Always on the right */
            .react-switch {
                order: 3;
                flex-shrink: 0;
                margin-left: auto;

                @media (max-width: 768px) {
                    order: 1;
                    margin-left: 0;
                    align-self: flex-end;
                }
            }

            /* 🏷️ Label (Second Element) - Always on the left, takes available space */
            >label {
                order: 1;
                flex: 1;
                font-weight: var(--font-weight-medium);
                color: var(--text-primary);
                cursor: pointer;
                line-height: var(--line-height-normal);
                transition: var(--transition-fast);
                margin: 0;
                font-size: var(--font-size-base);

                &:hover {
                    color: var(--primary-color);
                }

                @media (max-width: 768px) {
                    order: 2;
                    font-size: var(--font-size-sm);
                    flex: 1;
                }
            }

            /* 🎯 Tooltip Icon Container (Third Element) - Next to label */
            .wcs_title {
                order: 2;
                display: flex;
                align-items: center;
                flex-shrink: 0;
                margin-left: var(--spacing-xs);


                @media (max-width: 768px) {
                    order: 3;
                    margin-left: 0;
                    align-self: flex-start;
                }

                .wcs_tooltip_icon {
                    color: var(--text-muted);
                    font-size: 1.1rem;
                    cursor: help;
                    transition: var(--transition-fast);

                    &:hover {
                        color: var(--primary-color);
                        transform: scale(1.1);
                    }
                }
            }
        }

        /* 🆓 Fallback for direct children (when no wrapper class) */
        >.react-switch {
            order: 3;
            flex-shrink: 0;
            margin-left: auto;

            @media (max-width: 768px) {
                order: 1;
                margin-left: 0;
                align-self: flex-end;
            }
        }

        >label {
            order: 1;
            flex: 1;
            font-weight: var(--font-weight-medium);
            color: var(--text-primary);
            cursor: pointer;
            line-height: var(--line-height-normal);
            transition: var(--transition-fast);
            margin: 0;
            font-size: var(--font-size-base);

            &:hover {
                color: var(--primary-color);
            }

            @media (max-width: 768px) {
                order: 2;
                font-size: var(--font-size-sm);
            }
        }

        >.wcs_title {
            order: 2;
            display: flex;
            align-items: center;
            flex-shrink: 0;
            margin-left: var(--spacing-xs);

            @media (max-width: 768px) {
                order: 3;
                margin-left: 0;
                align-self: flex-start;
            }

            .wcs_tooltip_icon {
                color: var(--text-muted);
                font-size: 1.1rem;
                cursor: help;
                transition: var(--transition-fast);

                &:hover {
                    color: var(--primary-color);
                    transform: scale(1.1);
                }
            }
        }
    }

    /* 🔗 Child Sections */
    .section-child {
        margin-top: var(--spacing-md);
        padding: var(--spacing-md) var(--spacing-lg);
        // background: var(--primary-light);
        // border-left: 3px solid var(--primary-color);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        animation: slideInLeft 0.3s ease;

        @media (max-width: 480px) {
            padding: var(--spacing-sm) var(--spacing-md);
            margin-left: var(--spacing-sm);
        }
    }
}

/* ===== 👑 PRO TAG STYLES ===== */
.PRO_TAG {
    position: absolute;
    top: 8px;
    right: 22px;
    background: var(--premium-gradient);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--premium-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: var(--z-popover);
    animation: pulseGlow 2s infinite;

    &::before {
        content: '👑';
        margin-right: var(--spacing-xs);
    }

    @media (max-width: 768px) {
        position: static;
        display: inline-block;
        margin-bottom: var(--spacing-sm);
    }
}

/* ===== ✨ NEW TAG STYLES ===== */
.NEW_TAG {
    position: absolute;
    top: -8px;
    right: -60px;
    background: var(--new-gradient);
    color: var(--text-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    box-shadow: var(--new-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: var(--z-popover);
    animation: slideInBounce 0.5s ease;

    @media (max-width: 768px) {
        position: static;
        display: inline-block;
        margin-bottom: var(--spacing-sm);
    }
}

/* ===== 🚫 PREMIUM FEATURE INACTIVE STATE ===== */
.wpnts_ispro.inactive {
    position: relative;
    opacity: 0.7;
    cursor: pointer;

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient(45deg,
                transparent,
                transparent 10px,
                rgba(255, 105, 0, 0.1) 10px,
                rgba(255, 105, 0, 0.1) 20px);
        border-radius: var(--radius-md);
        z-index: 1;
        pointer-events: none;
    }

    &:hover {
        opacity: 0.8;
        transform: translateY(-1px);
        box-shadow: var(--shadow-sm);
    }

    /* Allow clicks on the toggle section itself */
    .toogle-section {
        cursor: pointer;
        pointer-events: auto;
        z-index: 2;

        &:hover {
            border-color: var(--premium-color);
            box-shadow: 0 0 0 2px rgba(255, 105, 0, 0.2);
        }
    }

    /* Disable form inputs but keep toggle clickable */
    input:not([type="checkbox"]),
    select,
    textarea {
        pointer-events: none;
        opacity: 0.5;
    }

    /* Keep checkboxes and toggles clickable for premium modal */
    input[type="checkbox"],
    .react-switch,
    .toggle-switch-container {
        pointer-events: auto;
        cursor: pointer;
        z-index: 3;
    }
}

/* ===== 📝 FORM INPUT STYLES ===== */
.formInput {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);

    .verify-captcha-btn {
        display: flex;
        gap: 15px;
    }

    label {
        font-weight: var(--font-weight-medium);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }

    .wpnts-setting {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 15px;

        input,
        select,
        textarea {
            flex: 1;
            padding: var(--spacing-md);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: var(--font-size-base);
            font-family: inherit;
            transition: var(--transition-fast);
            background: var(--bg-white);
            color: var(--text-primary);

            &:focus {
                outline: none;
                border-color: var(--border-focus);
                box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
            }

            &:hover:not(:disabled) {
                border-color: var(--primary-color);
            }

            &:disabled {
                background: var(--bg-light);
                color: var(--text-muted);
                cursor: not-allowed;
                opacity: 0.7;
            }

            &::placeholder {
                color: var(--text-muted);
            }

            &.error {
                border-color: var(--border-error);
                box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.1);
            }

            &.success {
                border-color: var(--border-success);
                box-shadow: 0 0 0 3px rgba(0, 163, 42, 0.1);
            }
        }

        textarea {
            min-height: 100px;
            resize: vertical;
            font-family: inherit;
        }

        /* 👁️ Password Visibility Toggle */
        .passimg {
            position: absolute;
            right: var(--spacing-md);
            cursor: pointer;
            color: var(--text-muted);
            transition: var(--transition-fast);
            z-index: 2;
            padding: var(--spacing-xs);
            border-radius: var(--radius-sm);

            &:hover {
                color: var(--primary-color);
                background: var(--primary-light);
            }

            .passVisibility {
                font-size: 1.2rem;
            }

            @media (max-width: 480px) {
                position: static;
                align-self: flex-end;
                margin-top: var(--spacing-sm);
            }
        }
    }
}

/* ===== ☑️ CHECKBOX STYLES ===== */
.getGlobalURLCheckbox,
.global-settings-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;

    &:hover {
        background: var(--primary-light);
        border-color: var(--primary-color);
        transform: translateY(-1px);
    }

    input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
        cursor: pointer;
        transition: var(--transition-fast);

        &:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
    }

    label {
        font-size: var(--font-size-sm);
        color: var(--text-secondary);
        cursor: pointer;
        line-height: var(--line-height-normal);
        transition: var(--transition-fast);

        &:hover {
            color: var(--text-primary);
        }
    }
}

/* ===== 🔘 GLOBAL SETTINGS BUTTON STYLES ===== */
.getGlobalURLCheckbox .global-settings-button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 100%;
    text-align: center;

    &:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    &:active {
        transform: translateY(0);
    }

    &:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    &.active {
        background: var(--success-color);

        &:hover {
            background: var(--success-dark);
        }
    }
}

/* ===== 🔘 BUTTON STYLES ===== */
.save-webhook {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: var(--transition-normal);
    }

    &:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);

        &::before {
            left: 100%;
        }
    }

    &:active {
        transform: translateY(0);
    }

    &:disabled {
        background: var(--text-muted);
        cursor: not-allowed;
        transform: none;
        opacity: 0.6;

        &:hover {
            transform: none;
            box-shadow: var(--shadow-sm);
        }
    }

    &:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    /* 🧹 Clean Button Variant */
    &.clean {
        background: var(--warning-color);

        &:hover {
            background: var(--warning-dark);
        }
    }

    /* 🔄 Refresh Button Variant */
    &.refresh-btn {
        background: var(--info-color);

        &:hover {
            background: var(--info-dark);
        }
    }

    /* 🚨 Danger Button Variant */
    &.danger {
        background: var(--error-color);

        &:hover {
            background: var(--error-dark);
        }
    }

    /* 📱 Mobile Responsive */
    @media (max-width: 480px) {
        width: 100%;
        padding: var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
}

/* 🎨 Background specific styles */
.react-switch-bg {
    transition: all var(--transition-normal);
    border-radius: 10px;
    position: relative;
    overflow: hidden;

    /* Add subtle inner shadow for depth */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }
}

/* 🎨 Handle specific styles */
.react-switch-handle {
    transition: all var(--transition-fast) !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 1px !important;
    left: 1px !important;
    width: 18px !important;
    height: 18px !important;
    z-index: 2 !important;

    /* Add subtle highlight for 3D effect */
    &::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        height: 40%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
        border-radius: 50%;
        pointer-events: none;
    }
}

/* ===== 🚦 STATUS INDICATORS ===== */
.wpnts-log {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);

    &::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: var(--radius-full);
        animation: pulse 2s infinite;
    }

    &.active {
        background: var(--success-light);
        color: var(--success-dark);
        border: 1px solid var(--success-color);

        &::before {
            background: var(--success-color);
        }
    }

    &.inactive {
        background: var(--error-light);
        color: var(--error-dark);
        border: 1px solid var(--error-color);

        &::before {
            background: var(--error-color);
        }
    }

    &.warning {
        background: var(--warning-light);
        color: var(--warning-dark);
        border: 1px solid var(--warning-color);

        &::before {
            background: var(--warning-color);
        }
    }
}

/* ===== 📑 TAB NAVIGATION ===== */
.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;

    @media (max-width: 768px) {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .tab-header {
        padding: var(--spacing-md) var(--spacing-lg);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: var(--transition-fast);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        white-space: nowrap;
        position: relative;

        &:hover {
            color: var(--primary-color);
            background: var(--primary-light);
        }

        &.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            background: var(--primary-light);

            &::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background: var(--primary-color);
                animation: slideInBottom 0.3s ease;
            }
        }

        @media (max-width: 768px) {
            flex: 1;
            text-align: center;
            min-width: 120px;
            padding: var(--spacing-sm) var(--spacing-md);
            font-size: var(--font-size-sm);
        }
    }
}

.tab-content {
    display: none;

    &.active {
        display: block;
        animation: fadeInUp 0.3s ease;
    }
}

/* ===== 🔗 INTEGRATIONS SECTION ===== */
.integrations {
    .integrations-title {
        margin-bottom: var(--spacing-md);
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-semibold);
        color: var(--text-primary);
    }

    .integrations-settings {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);

        @media (max-width: 768px) {
            grid-template-columns: 1fr;
        }

        label {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-md);
            background: var(--bg-white);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition-fast);

            &:hover {
                border-color: var(--primary-color);
                background: var(--primary-light);
                transform: translateY(-1px);
                box-shadow: var(--shadow-sm);
            }

            input[type="checkbox"] {
                accent-color: var(--primary-color);
                width: 16px;
                height: 16px;
            }

            span {
                font-size: var(--font-size-sm);
                color: var(--text-primary);
                font-weight: var(--font-weight-medium);
            }
        }
    }
}

/* ===== 🛒 WOOCOMMERCE SPECIFIC STYLES ===== */
.woocommerce-settings {
    position: relative;

    .inactive-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 18px;
        border-radius: 12px;
        transition: all 0.3s ease;

        background: rgba(255, 255, 255, 0.5);
        -webkit-backdrop-filter: blur(1px);
        backdrop-filter: blur(1px);
        cursor: not-allowed;
        z-index: 99;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);


        img.wpnts_woocommerce {
            width: 160px;
            height: 160px;
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
            transition: transform 0.3s ease;

            &:hover {
                transform: scale(1.05);
            }
        }

        .action-btns {
            text-align: center;
            position: relative;
            margin-top: 24px;

            h3.inactive-text {
                color: #252525;
                font-size: 1.25rem;
                margin-bottom: 16px;
                text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            }

            .install-btn {
                display: flex;
                flex-direction: column;
                align-items: center;

                button.woo-action-btn {
                    padding: 12px 24px;
                    border: none;
                    background-color: #008080;
                    color: white;
                    font-weight: 600;
                    cursor: pointer;
                    border-radius: 8px;
                    transition: all 0.2s ease;
                    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

                    &:hover {
                        background-color: #006666;
                        transform: translateY(-1px);
                        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
                    }
                }
            }
        }
    }
}

/* ===== 🚨 EMERGENCY SHUTDOWN SPECIFIC ===== */
.remote-activation-section {
    background: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);

    h4 {
        margin: 0 0 var(--spacing-md) 0;
        color: var(--text-primary);
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-lg);
    }

    .token-container {
        display: flex;
        align-items: center;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);

        input {
            flex: 1;
            border: none;
            background: transparent;
            padding: var(--spacing-sm);
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: var(--font-size-sm);

            &:focus {
                outline: none;
            }
        }

        button {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            padding: var(--spacing-xs);
            border-radius: var(--radius-sm);
            transition: var(--transition-fast);

            &:hover {
                color: var(--primary-color);
                background: var(--primary-light);
            }
        }
    }

    code {
        display: block;
        background: var(--bg-dark);
        color: #e6e6e6;
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        font-size: var(--font-size-sm);
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
        line-height: var(--line-height-relaxed);

        &::-webkit-scrollbar {
            height: 8px;
        }

        &::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
        }

        &::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: var(--radius-sm);

            &:hover {
                background: rgba(255, 255, 255, 0.5);
            }
        }
    }
}

/* ===== 🔒 CAPTCHA SPECIFIC STYLES ===== */
.turnstile-widgets {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    min-height: 120px;

    @media (max-width: 480px) {
        padding: var(--spacing-md);
        min-height: 100px;
    }
}

.cloudflare-get-key {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--info-light);
    border: 1px solid var(--info-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);

    .key-icon {
        color: var(--info-color);
        font-size: 1.2rem;
    }

    .get-keys {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        transition: var(--transition-fast);

        &:hover {
            text-decoration: underline;
            color: var(--primary-hover);
        }

        &:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
            border-radius: var(--radius-sm);
        }
    }
}


/* ===== 🎬 Debug log ===== */
.acb_debug_log {
    .acb_left {
        width: 60%;
    }
}

/* ===== 🎬 ANIMATIONS ===== */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: var(--premium-shadow);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 105, 0, 0.5);
        transform: scale(1.05);
    }
}

@keyframes slideInBounce {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    60% {
        transform: translateX(-5px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

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

@keyframes slideInBottom {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ===== 📱 RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .parent-section .toogle-section {

        .PRO_TAG,
        .NEW_TAG {
            position: static;
            display: inline-block;
            margin-bottom: var(--spacing-sm);
        }
    }

    .formInput .wpnts-setting {
        flex-direction: column;
        align-items: stretch;

        .passimg {
            position: static;
            align-self: flex-end;
            margin-top: var(--spacing-sm);
        }
    }
}

/* ===== ♿ ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --bg-lighter: #ffffff;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* ===== 🖨️ PRINT STYLES ===== */
@media print {

    .acb_comment,
    .acb_media,
    .acb_security,
    .acb_woocommerce,
    .acb_author,
    .acb_captcha,
    .acb_debug_log,
    .acb_website_downtime_alerts,
    .acb_emengency_shutdown,
    .acb_maintenance_mode,
    .acb_menu,
    .acb_pagenpost,
    .acb_sites,
    .acb_theme,
    .acb_widgets {
        box-shadow: none;
        border: 1px solid var(--border-color);
        break-inside: avoid;
    }

    .save-webhook,
    .PRO_TAG,
    .NEW_TAG {
        display: none;
    }

    .acb_left,
    .acb_right {
        padding: var(--spacing-md);
    }
}

/* ===== 🎯 UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-success {
    background-color: var(--success-color);
}

.bg-error {
    background-color: var(--error-color);
}

.bg-warning {
    background-color: var(--warning-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.border-success {
    border-color: var(--success-color);
}

.border-error {
    border-color: var(--error-color);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.m-0 {
    margin: 0;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.p-0 {
    padding: 0;
}

.pt-sm {
    padding-top: var(--spacing-sm);
}

.pb-sm {
    padding-bottom: var(--spacing-sm);
}

.pt-md {
    padding-top: var(--spacing-md);
}

.pb-md {
    padding-bottom: var(--spacing-md);
}

.pt-lg {
    padding-top: var(--spacing-lg);
}

.pb-lg {
    padding-bottom: var(--spacing-lg);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* ===== 🔚 END OF GLOBAL STYLESHEET ===== */


/* Textarea styling for IP fields */
.textarea-field {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition);

    &:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
    }

    &[readonly] {
        background-color: var(--gray-50);
        color: var(--gray-600);
        cursor: not-allowed;
    }

    &::placeholder {
        color: var(--gray-400);
        font-style: italic;
    }
}

/* Manual and Auto IP fields styling */
.manual-ip-fields,
.auto-ip-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

/* Refresh button styling */
.refresh-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;

    &:hover {
        background: linear-gradient(135deg, #218838, #1ea085);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }

    &:active {
        transform: translateY(0);
    }
}

/* Select dropdown styling for login attempts */
.woo-select-fields {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);

    &:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
    }

    &:hover {
        border-color: var(--primary-color-light);
    }

    option {
        padding: 8px;
        background-color: var(--input-bg);
        color: var(--text-color);
    }
}


/* Enhanced settings-blocked styling */
.settings-blocked {
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Responsive design for IP fields */
@media (max-width: 768px) {

    .manual-ip-fields,
    .auto-ip-fields {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .textarea-field {
        min-height: 80px;
        font-size: 12px;
    }

    .settings-blocked-parents .formInput {
        margin-left: 1rem;

        &::before {
            left: -0.75rem;
        }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .textarea-field {
        background-color: var(--dark-input-bg, #2d3748);
        border-color: var(--dark-border-color, #4a5568);
        color: var(--dark-text-color, #e2e8f0);

        &:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
        }

        &[readonly] {
            background-color: var(--dark-gray-700, #1a202c);
            color: var(--dark-gray-400, #a0aec0);
        }
    }

    .woo-select-fields {
        background-color: var(--dark-input-bg, #2d3748);
        border-color: var(--dark-border-color, #4a5568);
        color: var(--dark-text-color, #e2e8f0);

        option {
            background-color: var(--dark-input-bg, #2d3748);
            color: var(--dark-text-color, #e2e8f0);
        }
    }

    .manual-ip-fields,
    .auto-ip-fields {
        background-color: var(--dark-gray-800, #1a202c);
    }

    .settings-blocked {
        background-color: var(--dark-white, #2d3748);
        border-color: var(--dark-border-color, #4a5568);
    }
}

/* 
===== 🔒 Enhanced Security Component Structure ===== */

/* Parent-child section structure (matching old implementation) */
.parent-section {
    margin-bottom: 1.5rem;
}

.toogle-section {
    margin-bottom: 1rem;
}

.section-child {
    // margin-left: 2rem;
    padding-left: 1rem;
    // border-left: 2px solid var(--primary-color, #0073aa);
    // background: rgba(0, 115, 170, 0.02);
    border-radius: 0 var(--border-radius, 6px) var(--border-radius, 6px) 0;
    padding: 1rem;
    margin-top: 1rem;

    .formInput {
        margin-bottom: 1.5rem;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

/* Enhanced textarea styling for IP fields */
.listofIP,
.cidrrangeIP {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background-color: #fff;

    &:focus {
        outline: none;
        border-color: #0073aa;
        box-shadow: 0 0 0 1px #0073aa;
    }

    &::placeholder {
        color: #999;
        font-style: italic;
        line-height: 1.4;
    }
}

/* Enhanced refresh button styling */
.refresh-emer-ip {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: -5px;
    font-size: 14px;

    &:hover {
        background: linear-gradient(135deg, #218838, #1ea085);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }

    &:active {
        transform: translateY(0);
    }
}

/* Enhanced select dropdown styling */
.woo-select-fields {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;

    &:focus {
        outline: none;
        border-color: #0073aa;
        box-shadow: 0 0 0 1px #0073aa;
    }

    &:hover {
        border-color: #0073aa;
    }

    option {
        padding: 8px;
        background-color: #fff;
        color: #333;
    }
}

/* Responsive design for parent-child structure */
@media (max-width: 768px) {
    .section-child {
        margin-left: 1rem;
        padding: 0.75rem;
    }

    .listofIP,
    .cidrrangeIP {
        min-height: 100px;
        font-size: 12px;
    }

    .refresh-emer-ip {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* Dark mode support for enhanced components */
@media (prefers-color-scheme: dark) {
    .section-child {
        background: rgba(0, 115, 170, 0.05);
        border-left-color: #4a9eff;
    }

    .listofIP,
    .cidrrangeIP {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;

        &:focus {
            border-color: #4a9eff;
            box-shadow: 0 0 0 1px #4a9eff;
        }

        &::placeholder {
            color: #a0aec0;
        }
    }

    .woo-select-fields {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;

        &:focus {
            border-color: #4a9eff;
            box-shadow: 0 0 0 1px #4a9eff;
        }

        option {
            background-color: #2d3748;
            color: #e2e8f0;
        }
    }
}

/* ===== 🛡️ Whitelist IP Feature Styling ===== */

.whitelist-info {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 1px solid #28a745;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.info-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #155724;

    strong {
        color: #0d4419;
        font-weight: 600;
    }
}

/* File type select styling for "Allowed file permission and tracker" */
.scan_uploaded_files_section {
    margin-bottom: 1.5rem;

    .scan_uploaded_files_toggle {
        margin-bottom: 1rem;
    }

    .file-type-select {
        margin-left: 0rem;
        padding: 1rem;
        background: rgba(0, 115, 170, 0.02);
        // border-left: 2px solid var(--primary-color, #0073aa);
        border-radius: 0 6px 6px 0;

        label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #333;
        }

        .file-type-select {
            margin-bottom: 1rem;
        }

        .add-file-type-btn {
            background: linear-gradient(135deg, #007cba, #0073aa);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;

            &:hover {
                background: linear-gradient(135deg, #005a87, #005177);
                transform: translateY(-1px);
                box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
            }

            &:active {
                transform: translateY(0);
            }
        }
    }
}

/* Enhanced responsive design for new features */
@media (max-width: 768px) {
    .whitelist-info {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }

    .info-text {
        font-size: 12px;
    }

    .scan_uploaded_files_section .file-type-select {
        margin-left: 1rem;
        padding: 0.75rem;
    }

    .add-file-type-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Dark mode support for new features */
@media (prefers-color-scheme: dark) {
    .whitelist-info {
        background: linear-gradient(135deg, #1a2f1a, #1e3a1e);
        border-color: #28a745;
    }

    .info-text {
        color: #90ee90;

        strong {
            color: #98fb98;
        }
    }

    .scan_uploaded_files_section .file-type-select {
        background: rgba(0, 115, 170, 0.05);

        label {
            color: #e2e8f0;
        }
    }

    .add-file-type-btn {
        background: linear-gradient(135deg, #4a9eff, #0073aa);

        &:hover {
            background: linear-gradient(135deg, #6bb6ff, #4a9eff);
        }
    }
}

/* ===== 📁 File Type Selection Styling ===== */
.scan_uploaded_files_section {
    margin-bottom: 1.5rem;
}

.scan_uploaded_files_toggle {
    margin-bottom: 1rem;
}

.file-type-select {
    margin-left: 2rem;
    padding: 1rem;
    background: rgba(0, 115, 170, 0.02);
    // border-left: 2px solid var(--primary-color, #0073aa);
    border-radius: 0 6px 6px 0;
    margin-top: 1rem;

    label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--text-color, #333);
    }

    .file-type-multi-select {
        margin-bottom: 1rem;
    }

    /* React Select styling */
    .css-control {
        border: 1px solid #ddd;
        border-radius: 4px;
        min-height: 40px;

        &:hover {
            border-color: #0073aa;
        }

        &.css-control--is-focused {
            border-color: #0073aa;
            box-shadow: 0 0 0 1px #0073aa;
        }
    }

    .css-menu {
        border: 1px solid #ddd;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .css-option {
        padding: 10px 12px;

        &:hover {
            background-color: rgba(0, 115, 170, 0.1);
        }

        &.css-option--is-selected {
            background-color: #0073aa;
        }
    }

    .css-multi-value {
        background-color: rgba(0, 115, 170, 0.1);
        border-radius: 4px;

        .css-multi-value__label {
            color: #0073aa;
            font-weight: 500;
        }

        .css-multi-value__remove {
            color: #0073aa;

            &:hover {
                background-color: #0073aa;
                color: white;
            }
        }
    }
}

.add-file-type-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;

    &:hover {
        background: linear-gradient(135deg, #005a87, #004a73);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    }

    &:active {
        transform: translateY(0);
    }

    &:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
}

/* ===== 🛡️ Whitelist IP Styling ===== */
.whitelist-ip-section {
    .section-child {
        background: rgba(40, 167, 69, 0.02);
        // border-left-color: #28a745;
    }

    .listofIP,
    .cidrrangeIP {
        border-color: #28a745;

        &:focus {
            border-color: #28a745;
            box-shadow: 0 0 0 1px #28a745;
        }
    }
}

/* ===== 📱 Enhanced Responsive Design ===== */
@media (max-width: 768px) {
    .file-type-select {
        margin-left: 1rem;
        padding: 0.75rem;
    }

    .add-file-type-btn {
        width: 100%;
        margin-top: 0.75rem;
    }

    .css-control {
        min-height: 36px;
    }
}

/* ===== 🌙 Enhanced Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    .file-type-select {
        background: rgba(0, 115, 170, 0.05);
        border-left-color: #4a9eff;

        label {
            color: #e2e8f0;
        }
    }

    .css-control {
        background-color: #2d3748;
        border-color: #4a5568;

        &:hover {
            border-color: #4a9eff;
        }

        &.css-control--is-focused {
            border-color: #4a9eff;
            box-shadow: 0 0 0 1px #4a9eff;
        }
    }

    .css-menu {
        background-color: #2d3748;
        border-color: #4a5568;
    }

    .css-option {
        color: #e2e8f0;

        &:hover {
            background-color: rgba(74, 158, 255, 0.1);
        }

        &.css-option--is-selected {
            background-color: #4a9eff;
            color: white;
        }
    }

    .css-multi-value {
        background-color: rgba(74, 158, 255, 0.2);

        .css-multi-value__label {
            color: #4a9eff;
        }

        .css-multi-value__remove {
            color: #4a9eff;

            &:hover {
                background-color: #4a9eff;
                color: white;
            }
        }
    }

    .whitelist-ip-section .section-child {
        background: rgba(72, 187, 120, 0.05);
        // border-left-color: #48bb78;
    }
}

/* ===== MAINTENANCE MODE STYLES ===== */
.maintenance_mode {
    .template-select {
        width: 100%;
        padding: var(--spacing-md);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        background-color: var(--bg-lighter);
        color: var(--text-primary);
        font-size: var(--font-size-base);
        transition: var(--transition-fast);

        &:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
            border-color: var(--primary-color);
        }

        &:disabled {
            background-color: var(--bg-muted);
            cursor: not-allowed;
        }
    }

    .premium-note {
        margin-top: var(--spacing-sm);
        font-size: var(--font-size-sm);
        color: var(--text-secondary);

        .upgrade-link {
            background: none;
            border: none;
            color: var(--primary-color);
            text-decoration: underline;
            cursor: pointer;
            padding: 0;
            margin-left: var(--spacing-xs);

            &:hover {
                color: var(--primary-hover);
            }
        }
    }
}

/* ===== MAINTENANCE LEADS MODAL STYLES ===== */
.wcsmodalBackground {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: auto;
}

.wcsmodalContainer {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-lighter);

    h3 {
        margin: 0;
        color: var(--text-primary);
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-semibold);
    }

    .closeBtn {
        background: none;
        border: none;
        font-size: var(--font-size-lg);
        cursor: pointer;
        color: var(--text-muted);
        padding: var(--spacing-sm);
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);

        &:hover {
            background: var(--bg-light);
            color: var(--text-primary);
        }
    }
}

.modalContent {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;

    .leads-table-container {
        overflow-x: auto;
    }

    .leads-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--bg-white);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);

        thead {
            background: var(--primary-light);
        }

        th,
        td {
            padding: var(--spacing-md);
            text-align: left;
            border-bottom: 1px solid var(--border-light);
        }

        th {
            font-weight: var(--font-weight-semibold);
            color: var(--text-primary);
            text-transform: uppercase;
            font-size: var(--font-size-sm);
            letter-spacing: 0.5px;
        }

        tbody tr {
            transition: var(--transition-fast);

            &:hover {
                background: var(--primary-light);
            }

            &:last-child td {
                border-bottom: none;
            }
        }

        td {
            color: var(--text-secondary);
            font-size: var(--font-size-base);
        }
    }

    p {
        text-align: center;
        color: var(--text-secondary);
        font-size: var(--font-size-lg);
        margin: var(--spacing-xl) 0;
    }

    /* Pagination styles */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        margin-top: var(--spacing-lg);
        padding: var(--spacing-md);
        border-top: 1px solid var(--border-light);
    }

    .pagination-btn {
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: var(--transition-fast);
        font-weight: var(--font-weight-medium);

        &:hover:not(:disabled) {
            background: var(--primary-light);
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        &:disabled {
            background: var(--bg-light);
            color: var(--text-muted);
            cursor: not-allowed;
            opacity: 0.6;
        }
    }

    .pagination-info {
        color: var(--text-secondary);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        white-space: nowrap;
    }
}

.modalFooter {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-lighter);
}

.wcs_popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* ===
== 📊 WOOCOMMERCE ANALYTICS STYLES ===== */
.analytics-active-message {
    margin-top: 15px;
    padding: 0;
    border-radius: var(--border-radius);
    background: var(--success-light);
    border: 1px solid var(--success-color);
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;

    .analytics-message-content {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px;
        background: linear-gradient(135deg, #e6f7e6 0%, #f0fff0 100%);

        .analytics-icon {
            font-size: 32px;
            flex-shrink: 0;
            animation: pulse 2s infinite;
        }

        .analytics-text {
            flex: 1;

            h4 {
                margin: 0 0 8px 0;
                color: var(--success-dark);
                font-size: 16px;
                font-weight: 600;
            }

            p {
                margin: 0;
                color: var(--text-secondary);
                font-size: 14px;
                line-height: 1.4;
            }
        }

        .analytics-view-button {
            background: var(--success-color);
            color: white;
            padding: 12px 20px;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0, 163, 42, 0.2);

            &:hover {
                background: var(--success-dark);
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(0, 163, 42, 0.3);
                color: white;
                text-decoration: none;
            }

            &:focus {
                outline: 2px solid var(--success-color);
                outline-offset: 2px;
            }
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .analytics-message-content {
            flex-direction: column;
            text-align: center;
            gap: 12px;

            .analytics-view-button {
                width: 100%;
                padding: 14px 20px;
            }
        }
    }
}

/* Pulse animation for the analytics icon */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Slide in animation for the message */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== 🛒 INCOMPLETE ORDERS TRACKING STYLES ===== */
.wpnts-switch-incompleteorders {
    .section-child {
        background: rgba(239, 68, 68, 0.02);
        border-left: 2px solid #ef4444;
        margin-top: 15px;
        padding: 20px;
        border-radius: 0 6px 6px 0;

        .incomplete-orders-settings {
            display: flex;
            flex-direction: column;
            gap: 20px;

            .woo-supportSwitch-sub {
                margin-bottom: 15px;
            }

            .setting-row {
                display: flex;
                flex-direction: column;
                gap: 8px;

                label {
                    font-weight: 600;
                    color: var(--text-primary);
                    font-size: 14px;
                }

                .delay-input,
                .cleanup-input {
                    width: 120px;
                    padding: 8px 12px;
                    border: 1px solid var(--border-color);
                    border-radius: var(--radius-sm);
                    font-size: 14px;
                    transition: var(--transition-fast);

                    &:focus {
                        outline: 2px solid var(--primary-color);
                        outline-offset: 2px;
                        border-color: var(--primary-color);
                    }
                }

                .setting-description {
                    font-size: 12px;
                    color: var(--text-secondary);
                    line-height: 1.4;
                }
            }
        }
    }
}

.incomplete-orders-active-message {
    margin-top: 15px;
    padding: 0;
    border-radius: var(--border-radius);
    background: #fef2f2;
    border: 1px solid #ef4444;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;

    .incomplete-message-content {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 20px;
        background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);

        .incomplete-icon {
            font-size: 32px;
            flex-shrink: 0;
            animation: bounce 2s infinite;
        }

        .incomplete-text {
            flex: 1;

            h4 {
                margin: 0 0 8px 0;
                color: #dc2626;
                font-size: 16px;
                font-weight: 600;
            }

            p {
                margin: 0;
                color: var(--text-secondary);
                font-size: 14px;
                line-height: 1.4;
            }
        }

        .incomplete-view-button {
            background: #ef4444;
            color: white;
            padding: 12px 20px;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);

            &:hover {
                background: #dc2626;
                transform: translateY(-2px);
                box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
                color: white;
                text-decoration: none;
            }

            &:focus {
                outline: 2px solid #ef4444;
                outline-offset: 2px;
            }
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .incomplete-message-content {
            flex-direction: column;
            text-align: center;
            gap: 12px;

            .incomplete-view-button {
                width: 100%;
                padding: 14px 20px;
            }
        }
    }
}

/* Bounce animation for the incomplete orders icon */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}