.acb_emengency_shutdown {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 20px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    gap: 24px;
    transition: all 0.3s ease;

    .acb_left {
        box-shadow: 7px 0px 12px 0px rgba(201, 201, 201, 0.47);
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        box-shadow: 1px 1px 1px 1px #008080;
    }

    .acb_left,
    .acb_right,
    .acb_video {
        flex: 1;
        padding: 15px;
    }

    .formInput.global-settings-mode {
        display: none;
        opacity: 0.5;
        pointer-events: none;
    }

    @media only screen and (max-width: 768px) {
        flex-direction: column;

        .acb_left,
        .acb_right,
        .acb_video {
            flex: 1;
            margin: 10px;
        }
    }

    .acb_left {
        h3 {
            margin-bottom: 10px;
            display: flex;
            gap: 7px;
            align-items: center;
        }

        h3.esp-video {
            display: flex;
            text-align: center;
            gap: 10px;
            align-items: center;
        }

        .shutdownmode {
            margin-bottom: 50px;
        }

        .wpnts-active-emengency-shutdown-mode.settings-blocked-parents {
            display: flex;
            flex-direction: column;
            align-items: baseline;

            .settings-blocked {
                display: flex;
                text-align: center;
                margin-top: 35px;
                justify-content: left;
            }
        }

        .wpnts-active-emengency-shutdown-mode,
        .enable_emengency_shutdown {
            display: flex;
            align-items: center;
            position: relative;
            width: 95%;

            background: #FFFFFF;
            // height: 63px;
            padding: 14px;
            border-radius: 5px;

            label {
                margin-right: 10px;
                margin-left: 10px;
            }

            // PRO tag lock
            .wpnts_ispro.inactive {
                opacity: 0.5;
            }

            // PRO tag 
            p.PRO_TAG {
                position: absolute;
                margin-top: 0px;
                left: 365px;
                color: white;
                background: #008080;
                padding: 4px 8px;
                color: white;
                border-radius: 6px;
                font-size: 11px;
                font-weight: 500;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            p.NEW_TAG {
                position: absolute;
                left: 360px;
                top: 28px;
                z-index: 2;
                color: white;
                background: #147ed3;
                padding: 4px 8px;
                color: white;
                border-radius: 6px;
                font-size: 11px;
                font-weight: 500;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            .emengency-supportSwitch-2 {
                margin-bottom: 10px;
            }

            .emengency-supportSwitch-2,
            .emengency-supportSwitch-3 {
                right: 5px !important;
                top: 5px !important;
            }
        }

        .enable_emengency_shutdown {
            background-color: unset;

            form#wpnts_emengency_shutdown_settings {
                display: flex;
                flex-direction: column;
            }

        }

        svg.wcs_tooltip_icon {
            width: 15px;
            height: 15px;
        }

        .start_emengency_shutdown {
            display: flex;
            gap: 15px;
            margin-left: 5px;
        }


        .formInput {
            width: 100%;
            margin-top: 40px;

            textarea {
                height: 150px;
            }

            input {
                width: auto;
                padding: 5px;
                border: none;
                border-bottom: 1px solid gray;
                // background-color: #F0F0F1;

                &:focus {
                    outline: none;
                    box-shadow: none;
                }

            }

            .wpnts-setting {
                position: relative;

                .passimg {
                    position: absolute;
                    left: 90px;
                    font-size: 18px;
                    top: -19px;
                }


            }
        }

        form#wpnts_site_debuglog_settings {
            display: flex;
            flex-direction: column;
        }

        .save-webhook {
            width: 160px;
            padding: 10px;
            border: none;
            background-color: teal;
            color: white;
            font-weight: bold;
            cursor: pointer;
            float: left;
            margin-top: 10px;
            margin-right: 10px;
        }

        .formInput .wpnts-setting select {
            border: none;
            border-bottom: 1px solid;
            background-color: #f1f1f1;
            padding: 10px;
            font-size: 16px;
            color: #333;
            border-radius: 4px;
            appearance: none;
        }

        .formInput .wpnts-setting select:hover,
        .formInput .wpnts-setting select:focus {
            border-bottom: 2px solid;
            outline: none;
        }

        .formInput .wpnts-setting select::after {
            content: '\25BC';
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            pointer-events: none;
        }

    }

    input#authorPaneltoMail {
        width: auto;
    }

    .formInput.mail-config {
        margin-top: 15px;
        margin-bottom: 15px;
    }


    .acb_right {
        .emer-info {}

        span.wpnts-log.active {
            color: red;
        }

        span.wpnts-log.inactive {
            color: green;
        }
    }

    .wpnts_ispro {
        align-items: center;
    }

    .emengency_shutdown_mode_panel.wpnts_ispro {
        display: flex;
        align-items: center;
        text-align: center;
    }


    .acb_video {
        .wcs-player-wrapper {
            position: relative;
            padding-top: 30%;
            border: 6px solid white;
            /* 16:9 aspect ratio */

            .wcs-react-player {
                position: absolute;
                top: 0;
                left: 0;
            }
        }
    }
}

p.NEW_TAGs {
    left: 317px;
    margin-top: 0px;
    background: #147ed3;
    position: absolute;
    padding: 4px 8px;
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


// Emergency Shutdown Mode Styling
.wpnts-active-emergency-shutdown-mode {
    position: relative;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;


    // Tag styling
    .pro-tag,
    .upcoming-tag {
        position: absolute;
        top: -12px;
        padding: 3px 8px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .pro-tag {
        right: 10px;
        background: linear-gradient(135deg, #008080, #066b6b);
        color: white;
        z-index: 999;
    }

    .upcoming-tag {
        left: 10px;
        background: linear-gradient(135deg, #6b7afc, #3b5bfd);
        color: white;
        animation: pulse 2s infinite;
        z-index: 999;
    }

    // Panel styling
    .emergency_shutdown_mode_panel {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;

        label {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-right: auto;
        }

        &.inactive {
            opacity: 0.7;
        }

        &.disabled {
            cursor: not-allowed;
            position: relative;

            &::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(255, 255, 255, 0.5);
                z-index: 1;
                border-radius: 6px;
            }
        }

        .wcs_title {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            .wcs_tooltip_icon {
                font-size: 18px;
                color: #666;
                transition: color 0.2s ease;

                &:hover {
                    color: #3b5bfd;
                }
            }
        }
    }
}

// Animation for the Upcoming tag
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 122, 252, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(107, 122, 252, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(107, 122, 252, 0);
    }
}


// Responsive Styles
@media screen and (max-width: 1024px) {
    .acb_emengency_shutdown {
        flex-direction: column;
        padding: 16px;
        gap: 16px;

        .acb_left,
        .acb_right,
        .acb_video {
            width: 100%;
            padding: 16px;
        }

        .acb_right .formInput {
            width: 100%;
            max-width: none;
        }
    }
}

@media screen and (max-width: 768px) {
    .acb_emengency_shutdown {

        .wpnts-active-emengency-shutdown-mode,
        .enable_emengency_shutdown {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;

            p.PRO_TAG,
            p.NEW_TAG {
                position: static;
                display: inline-block;
                margin-top: 8px;
            }
        }

        .parent-section .section-child {
            margin-left: 20px;
        }
    }
}

@media screen and (max-width: 480px) {
    .acb_emengency_shutdown {
        padding: 12px;

        .acb_left,
        .acb_right,
        .acb_video {
            padding: 12px;
        }

        .save-webhook {
            width: 100%;
        }

        .parent-section .section-child {
            margin-left: 0;

            select {
                margin-left: 0;
                margin-top: 8px;
                width: 100%;
            }
        }
    }
}



// Remote mode active style 
// Remote activation section styling
.remote-activation-section {
    margin-top: 24px;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #008080;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;

    &:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    h4 {
        margin-top: 0;
        color: #333;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        position: relative;
        padding-bottom: 8px;

        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: #008080;
        }
    }

    p {
        font-size: 14px;
        line-height: 1.6;
        color: #555;
        margin-bottom: 12px;
    }

    .token-container {
        display: flex;
        align-items: center;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        margin-bottom: 12px;
        transition: border-color 0.2s ease;

        &:hover {
            border-color: #008080;
        }

        input {
            flex: 1;
            border: none;
            background-color: transparent;
            font-size: 14px;
            color: #333;
            font-family: monospace;

            &:focus {
                outline: none;
            }
        }

        .token-actions {
            display: flex;
            gap: 8px;

            button {
                background: none;
                border: none;
                cursor: pointer;
                color: #555;
                padding: 4px;
                border-radius: 4px;
                transition: all 0.2s ease;

                &:hover {
                    background-color: #f0f0f0;
                    color: #008080;
                }

                svg {
                    font-size: 18px;
                }
            }
        }
    }

    .token-expiry {
        font-size: 12px;
        color: #666;
        margin-bottom: 16px;
        font-style: italic;
    }

    .api-endpoint-info,
    .curl-command {
        margin: 16px 0;

        p {
            font-size: 14px;
            margin-bottom: 6px;
            font-weight: 500;
            display: flex;
            align-items: center;

            button {
                background: none;
                border: none;
                cursor: pointer;
                margin-left: 5px;
                color: #555;
                transition: color 0.2s ease;

                &:hover {
                    color: #008080;
                }
            }
        }

        code {
            display: block;
            background-color: #2b2b2b;
            color: #e6e6e6;
            padding: 12px;
            border-radius: 4px;
            overflow-x: auto;
            font-size: 13px;
            line-height: 1.4;
            font-family: 'Courier New', monospace;
            position: relative;

            &:hover {
                &:before {
                    content: 'Copy';
                    position: absolute;
                    top: 4px;
                    right: 4px;
                    background-color: rgba(0, 0, 0, 0.6);
                    color: #fff;
                    font-size: 10px;
                    padding: 2px 6px;
                    border-radius: 3px;
                    opacity: 0.7;
                }
            }
        }
    }

    .security-note {
        font-size: 13px;
        color: #666;
        margin-top: 14px;
        padding: 8px;
        background-color: #fff3cd;
        border-left: 3px solid #ffc107;
        border-radius: 4px;

        strong {
            color: #856404;
        }
    }
}

// Activation logs section styling
.activation-logs {
    margin-top: 24px;

    h4 {
        margin-bottom: 12px;
        font-size: 16px;
        color: #333;
        font-weight: 600;
    }

    ul {
        list-style: none;
        padding: 0;
        background-color: #f5f5f5;
        border-radius: 4px;
        max-height: 220px;
        overflow-y: auto;
        margin: 0;
        border: 1px solid #e0e0e0;

        // Custom scrollbar
        &::-webkit-scrollbar {
            width: 8px;
        }

        &::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        &::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        &::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

        li {
            padding: 10px 12px;
            border-bottom: 1px solid #ddd;
            font-size: 13px;
            line-height: 1.5;
            transition: background-color 0.2s ease;

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

            &:hover {
                background-color: #f0f0f0;
            }

            .log-time {
                color: #008080;
                font-weight: 500;
                margin-right: 8px;
            }

            .log-type {
                display: inline-block;
                padding: 2px 6px;
                border-radius: 3px;
                font-size: 11px;
                font-weight: 600;
                margin-right: 8px;

                &.remote {
                    background-color: #e3f2fd;
                    color: #1976d2;
                }

                &.manual {
                    background-color: #e8f5e9;
                    color: #388e3c;
                }

                &.deactivation {
                    background-color: #ffebee;
                    color: #d32f2f;
                }
            }
        }
    }
}