.dnwooe_extension_settings_wrap {
    width: 100%;
    font-family: 'Inter', sans-serif;

    .dnwooe_extension_settings_card {
        background-color: #fff;
        border-radius: 12px;
        padding: 30px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .dnwooe_extension_settings_title {
        font-size: 18px;
        font-weight: 600;
        color: #30374F;
        margin: 0 0 20px 0;
        padding: 0;
    }

    .dnwooe_extension_tabs {
        display: flex;
        gap: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    .dnwooe_extension_tab {
        background: none;
        border: none;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 500;
        color: #5D6B98;
        cursor: pointer;
        position: relative;
        transition: color 0.2s ease;

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

        &:hover {
            color: #fb6514;
        }

        &.active {
            color: #fb6514;

            &::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 2px;
                background-color: #fb6514;
            }
        }
    }

    .dnwooe_settings_section {
        .dnwooe_settings_row {
            display: flex;
            align-items: center;
            padding: 18px 0;
            border-bottom: 1px solid #f3f4f6;

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

        .dnwooe_settings_label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 500;
            color: #30374F;
            width: 360px;
            .dnwooe_tooltip_icon {
                width: 16px;
                height: 16px;
                color: #9ca3af;
                cursor: help;
            }
            .dnwooe_tooltip_wrap {
                position: relative;
                display: inline-flex;
                align-items: center;
                &:hover .dnwooe_tooltip_text {
                    opacity: 1;
                    visibility: visible;
                }
                .dnwooe_tooltip_text {
                    position: absolute;
                    bottom: calc(100% + 8px);
                    left: 50%;
                    transform: translateX(-50%);
                    background: #1a1a2e;
                    color: #fff;
                    font-size: 12px;
                    font-weight: 400;
                    padding: 6px 10px;
                    border-radius: 4px;
                    white-space: nowrap;
                    opacity: 0;
                    visibility: hidden;
                    transition: all 0.2s ease;
                    z-index: 10;
                    pointer-events: none;
                    &::after {
                        content: '';
                        position: absolute;
                        top: 100%;
                        left: 50%;
                        transform: translateX(-50%);
                        border: 5px solid transparent;
                        border-top-color: #1a1a2e;
                    }
                }
            }
        }

        .dnwooe_settings_control {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        // Reset to default button (for non-color fields)
        .dnwooe_reset_field {
            background: none;
            border: none;
            color: #9ca3af;
            cursor: pointer;
            font-size: 18px;
            padding: 5px;
            display: flex;
            align-items: center;

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

            &:hover:not(:disabled) {
                color: #fb6514;
            }

            &.is_default {
                opacity: 0.3;
                cursor: default;
            }
        }

        // Radio button group
        .dnwooe_radio_group {
            display: flex;
            align-items: center;
            gap: 20px;

            label {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                color: #30374F;
                cursor: pointer;

                input[type="radio"] {
                    appearance: none;
                    width: 18px;
                    height: 18px;
                    border: 2px solid #d1d5db;
                    border-radius: 50%;
                    cursor: pointer;
                    position: relative;
                    transition: all 0.2s ease;

                    &:checked {
                        border-color: #fb6514;

                        &::after {
                            content: '';
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 8px;
                            height: 8px;
                            background-color: #fb6514;
                            border-radius: 50%;
                        }
                    }
                    &:focus {
                        box-shadow: none;                        
                    }
                }
            }
        }

        // Toggle switch
        .dnwooe_toggle {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;

            input {
                opacity: 0;
                width: 0;
                height: 0;

                &:checked + .dnwooe_toggle_slider {
                    background-color: #fb6514;
                    &::before {
                        background-color: #fff;
                    }
                }

                &:checked + .dnwooe_toggle_slider::before {
                    left: 26px;
                }
            }

            .dnwooe_toggle_slider {
                width: 48px;
                height: 24px;
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                border: 1px solid #DCDFEA;
                transition: 0.3s;
                border-radius: 24px;

                &::before {
                    position: absolute;
                    content: "";
                    height: 18px;
                    width: 18px;
                    left: 3px;
                    bottom: 3px;
                    background-color: #DCDFEA;
                    transition: 0.3s;
                    border-radius: 50%;
                    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
                }
            }
        }

        // Number input with suffix
        .dnwooe_number_input {
            display: flex;
            align-items: center;
            border: 1px solid #EFF1F5;
            border-radius: 4px;
            overflow: hidden;
            background: #fff;

            input[type="number"] {
                width: 124px;
                height: 36px;
                padding: 8px 12px;
                border: none;
                border-radius: 4px;
                font-size: 14px;
                color: #30374F;
                text-align: left;
                background: #fff;
                appearance: textfield;
                -moz-appearance: textfield;

                &::-webkit-outer-spin-button,
                &::-webkit-inner-spin-button {
                    -webkit-appearance: none;
                    margin: 0;
                }

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

            .dnwooe_input_suffix {
                padding: 8px 12px;
                font-size: 14px;
                color: #7D89B0;
            }
        }

        // Color picker
        .dnwooe_color_picker {
            display: flex;
            align-items: center;
            gap: 10px;

            .color_preview {
                width: 32px;
                height: 32px;
                border-radius: 6px;
                border: 1px solid #e5e7eb;
                cursor: pointer;

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

            .color_input {
                padding: 8px 12px;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                font-size: 14px;
                color: #6b7280;
                width: 120px;

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

            .reset_color {
                background: none;
                border: none;
                color: #9ca3af;
                cursor: pointer;
                font-size: 18px;
                padding: 5px;

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

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

        // Text input
        .dnwooe_text_input {
            padding: 8px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            font-size: 14px;
            color: #374151;
            width: 60px;
            text-align: center;

            &:focus {
                outline: none;
                box-shadow: none;
                border-color: #fb6514;
            }
        }

        // Checkbox group
        .dnwooe_checkbox_group {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;

            label {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                color: #4b5563;
                cursor: pointer;

                input[type="checkbox"] {
                    width: 18px;
                    height: 18px;
                    cursor: pointer;

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

                    &:checked {
                        border-color: #fb6514;

                        &::before {
                            content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fb6514%27%2F%3E%3C%2Fsvg%3E) / '';
                        }
                    }
                }
            }
        }
    }

    // Settings footer with save button
    .dnwooe_extension_settings_footer {
        display: flex;
        padding-top: 25px;
        border-top: 1px solid #e5e7eb;
    }

    .dnwooe_save_button {
        background-color: #fb6514;
        color: #fff;
        border: none;
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;

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

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

        &:disabled {
            background-color: #fdba74;
            cursor: not-allowed;
        }
    }

    // Loading state
    .dnwooe_settings_loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        font-size: 14px;
        color: #6b7280;
    }

    // Import / Export tab
    .dnwooe_import_export {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .dnwooe_ie_card {
            border: 1px solid #e5e7eb;
            border-radius: 10px;
            padding: 20px 24px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            flex-wrap: wrap;

            &--danger {
                border-color: #fecaca;
                background: #fff5f5;
            }
        }

        .dnwooe_ie_card__head {
            flex: 1 1 320px;
            min-width: 260px;

            h3 {
                margin: 0 0 6px;
                font-size: 15px;
                font-weight: 600;
                color: #111827;
            }

            p {
                margin: 0;
                font-size: 13px;
                line-height: 1.5;
                color: #6b7280;
            }
        }

        .dnwooe_ie_card__actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .dnwooe_ie_file {
            display: none;
        }

        .dnwooe_ie_btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 9px 16px;
            font-size: 13px;
            font-weight: 500;
            border-radius: 6px;
            border: 1px solid #d1d5db;
            background: #fff;
            color: #1f2937;
            cursor: pointer;
            transition: all 0.2s ease;

            &:hover {
                background: #f9fafb;
                border-color: #9ca3af;
            }

            &:focus,
            &:focus-visible {
                outline: 2px solid rgba(249, 115, 22, 0.35);
                outline-offset: 1px;
            }

            &--primary {
                background-color: #f97316;
                color: #fff;
                border-color: #f97316;

                &:hover {
                    background-color: #ea580c;
                    border-color: #ea580c;
                }
            }

            &--danger {
                background-color: #fff;
                color: #b91c1c;
                border-color: #f3b4b4;

                &:hover {
                    background-color: #fee2e2;
                    border-color: #ef4444;
                    color: #991b1b;
                }
            }
        }
    }
}
