/* ========================
   Admin Wrapper & Form
   ======================== */
.ut-admin-setting-wrapper {
    width: 99%;
    max-width: none;
    background: #fff;
    padding: 25px 30px;
    margin-left: 2px;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    box-shadow: none;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.ut-admin-setting-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #23282d;
}

.ut-admin-setting-field {
    margin-bottom: 20px;
}

/* ========================
   Toggle Switch Styles
   ======================== */
.ut-admin-setting-switch {
    display: flex;
    align-items: center;
    gap: 12px;              
    font-size: 14px;
    color: #23282d;
    cursor: pointer;
    position: relative;
}

.ut-admin-setting-switch input {
    display: none;          
}

/* Slider track */
.ut-admin-setting-slider {
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

/* Slider knob */
.ut-admin-setting-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Checked state */
.ut-admin-setting-switch input:checked + .ut-admin-setting-slider {
    background-color: #24a07d;
}

.ut-admin-setting-switch input:checked + .ut-admin-setting-slider::before {
    transform: translateX(26px);
}

/* Toggle label text */
.ut-admin-setting-label {
    font-weight: 500;
}

/* ========================
   Submit Button
   ======================== */
.ut-admin-setting-submit {
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 500;
}

.ut-admin-setting-field .ut-admin-setting-submit {
    padding: 4px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #24a07d;
    border: 1px solid #24a07d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ut-admin-setting-field .ut-admin-setting-submit:hover {
    background-color: #1e745d;
    border-color: #1e745d;
}

/* ========================
   Admin Notice
   ======================== */
.ut-admin-setting-notice {
    border-left: 4px solid #46b450; 
    background-color: #f7f7f7;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 14px;
    color: #23282d;
}


/* ========================
   Header Footer
   ======================== */
.ut-switch {
    position: relative;
    display: inline-block;
    width: 43px;
    height: 22px;
}

.ut-input-switch-wrap .ut-text-label {
    font-size: 14px;
    margin-left: 8px;
}

.ut-input-switch-wrap .ut-all-enable + span {
    font-size: 15px;
    color: #111;
    font-weight: 500;
}

.ut-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ut-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.ut-switch .slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

.ut-switch input:checked + .slider {
    background-color: #24a07d;
}

.ut-switch input:focus + .slider {
    box-shadow: 0 0 1px #24a07d;
}

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

.ut-switch .slider.round {
    border-radius: 34px;
}

.ut-switch .slider.round:before {
    border-radius: 50%;
}

.ut-hf-all-pages-select-dropdown-wrapper {
    padding: 20px 0;
}

.ut-hf-all-pages-select-dropdown-wrapper>div:not(:last-child) {
    margin-bottom: 20px;
}

.ut-hf-all-pages-select-dropdown-wrapper>div label {
    display: block;
    margin: 15px 0;
    color: #000000;
    font-weight: 400;
    font-size: 14px;
}

.ut-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 80%;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

select#ut_template,
select#ut_template_footer {
 width: 100%;
 padding: 8px;
 margin-bottom: 15px;
 border: 1px solid #ccc;
 border-radius: 4px;
 box-sizing: border-box;
}

.ut-setting-default img {
    width: auto;
    height: 20px;
    vertical-align: middle;
    margin-left: 15px;
}

span.ut-uncheck-loader-default img {
    height: 20px;
}

.ut-select-loader-wrapper {
    display: flex;
    margin-left: 40px;
}
.ut-form-image-inner img {
    margin: 10px 0;
}
.ut_popup_featured_image_main_wrapper .ut_popup_featured_image_wrapper {
    background-color: #f1f3f5;
    top: calc((100% - 90vh + 32px) / 2);
    position: fixed;
    width: 90vw;
    left: calc((100% - 90vw) / 2);
    border-radius: 6px;
    transition: all 0.4s;
    transform: translateY(20px);
}
.ut_popup_featured_image {
    padding: 0 30px 30px;
}
.ut_popup_featured_image_main_wrapper.ut_active_image .ut_popup_featured_image_wrapper {
    transform: translateY(0px);
}
.ut_popup_featured_image_main_wrapper {
    position: fixed;
    height: 100%;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}
@media (min-width:1024px) {
    body.admin-bar .dialog-lightbox-widget {
        height: calc(100vh - 32px);
    }
}
.ut_popup_featured_image_main_wrapper.ut_active_image {
    opacity: 1;
    visibility: visible;
} 
.ut_popup_featured_image_close_btn {
    display: block;
    width: 16px;
    padding: 30px 30px 0;
    margin-left: auto;
    margin-bottom: 10px;
    cursor: pointer;
}
.ut_popup_featured_image_close_btn svg {
    width: 16px;
    fill: #a4afb7;
}
.ut_popup_featured_image img {
    width: 100%;
}
@media (min-width:992px) {
    .ut_popup_featured_image_main_wrapper .ut_popup_featured_image_wrapper {
        width: 600px;
        left: calc((100% - 670px) / 2);
    }
}
/* --- Responsive --- */
@media only screen and (max-width: 992px) {
    .ut-plugin-settings .ut-input-switch-wrap {
        flex-basis: 45%;
    }
}

@media only screen and (max-width: 767px) {
    .ut_popup_featured_image_close_btn {
        padding: 20px 20px 0;
    }
    .ut_popup_featured_image_close_btn svg,
    .ut_popup_featured_image_close_btn {
        width: 12px;
    }
    .ut_popup_featured_image {
        padding: 0 20px 20px;
    }
    input[type="checkbox"],
    input[type="radio"] {
        height: 1.2rem;
        width: 1.2rem;
    }

    /* -- Plugin Setting --- */
    .wp-admin .form-table select,
    .wp-core-ui select {
        min-height: 34px;
        font-size: 14px;
        line-height: 1.625;
        padding: 4px 20px 4px 6px;
    }
}

@media only screen and (max-width: 650px) {
    .ut-plugin-settings .ut-input-switch-wrap {
        flex-basis: 100%;
        margin: 15px 0;
    }
    .ut-plugin-settings .ut-tab-content>.ut-input-switch-wrap{
        position: static;
    }
    .ut-plugin-settings .ut-tab-templates, .ut-plugin-settings .ut-elements-enable-options-wrap {
        padding: 0;
    }
}

