/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
:root {
    --primary-color: #4A3AFF;
    --secondary-color: #ccc;
    --hover-color: #766CFF;
    --error-color: #e53935;
    --text-color: #333;
    --background-color: #f7f7f7;
    --focus-box-shadow: rgba(76, 175, 80, 0.5);
    --error-box-shadow: rgba(229, 57, 53, 0.5);
}
/* Scoped styles for the toggle switch start*/
/* .ppsas-h1 {
    margin-top: 30px;
    margin-bottom: 40px;
} */
.ppsas-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.ppsas-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ppsas-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.ppsas-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.ppsas-toggle-switch input:checked + .ppsas-toggle-slider {
    background-color: var(--primary-color);
}

.ppsas-toggle-switch input:checked + .ppsas-toggle-slider:before {
    transform: translateX(26px);
}
/* Scoped styles for the toggle switch end*/
/* Scoped styles for the accordion start */
.ppsas-accordion .ppsas-accordion-item{
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin: 15px 0;
}

.ppsas-accordion-item {
    border-bottom: 1px solid #ddd;
    transition: box-shadow 0.3s ease;
}

.ppsas-accordion-item:last-child {
    border-bottom: none;
}

.ppsas-accordion-header {
    margin: 0;
    padding: 20px;
    background-color: #f7f7f7;
    cursor: pointer;
    font-size: 18px !important;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ppsas-accordion-header:hover {
    background-color: #eaeaea;
    color: #000;
}

.ppsas-accordion-header.active {
    background-color: var(--primary-color);
    color: #fff;
}

.ppsas-accordion-header::after {
    content: '\25BC';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.ppsas-accordion-header.active::after {
    transform: rotate(180deg);
}

.ppsas-accordion-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    animation: slideDown 0.3s ease forwards;
}

.ppsas-accordion-content p {
    margin: 0 0 10px;
}
.ppsas-accordion-content h2 {
    display: none;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Scoped styles for the accordion end */
/* Scoped styles for the form elements start */
.ppsas-main-box input[type="text"],
.ppsas-main-box input[type="number"],
.ppsas-main-box input[type="password"],
.ppsas-main-box input[type="email"],
.ppsas-main-box input[type="url"],
.ppsas-main-box input[type="file"],
.ppsas-main-box input[type="color"],
.ppsas-main-box select,
.ppsas-main-box textarea {
    width: 100%;
    padding: 8px 12px;
    /* margin: 8px 0; */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.ppsas-main-box input[type="text"]:focus,
.ppsas-main-box input[type="number"]:focus,
.ppsas-main-box input[type="password"]:focus,
.ppsas-main-box input[type="email"]:focus,
.ppsas-main-box input[type="url"]:focus,
.ppsas-main-box input[type="file"]:focus,
.ppsas-main-box select:focus,
.ppsas-main-box textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

.ppsas-main-box label {
    display: block;
    /* margin-bottom: 5px; */
    font-weight: 400;
    font-size: 14px;
    color: #333;
}
.ppsas-checkbox-on-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ppsas-login-user-group {
    display: flex;
    gap: 20px;
}
.ppsas-main-box input[type="checkbox"],
.ppsas-main-box input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.ppsas-main-box input[type="file"] {
    padding: 5px;
    font-size: 14px;
}

.ppsas-main-box textarea:not(.select2-search__field) {
    resize: vertical;
    min-height: 100px;
}

.ppsas-main-box input:invalid {
    border-color: #e53935;
}

.ppsas-main-box input:invalid:focus {
    box-shadow: 0 0 5px rgba(229, 57, 53, 0.5);
}
/* Wrapper for input with suffix */
.ppsas-suffix-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px; /* Adjust as needed */
    margin-bottom: 15px;
}

.ppsas-suffix-input-wrapper input[type="number"] {
    width: 100%;
    padding-right: 40px; /* Space for the suffix */
    padding: 8px 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard */
}

.ppsas-suffix-input-wrapper input[type="number"]::-webkit-inner-spin-button,
.ppsas-suffix-input-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0;
}

.ppsas-option-section .notice.is-dismissible.notice-success {
    margin: 0;
    margin-bottom: 10px;
}

.ppsas-suffix-input-wrapper input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--hover-color);
    outline: none;
}

.ppsas-suffix-input-wrapper .ppsas-input-suffix {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #666;
    pointer-events: none; /* Prevent interaction */
}
/* Scoped styles for the form elements end */

/* Scoped main tabbing styles start */
/* Parent container styling */
.ppsas-tabbing-box {
    border-bottom: 1px solid #ddd;
}

.ppsas-tabbing-box .ppsas-tab-list li {
    margin: 0;
}

.ppsas-tabbing-box .ppsas-tab-list .nav-tab:focus {
    outline: none;
    border: none;
    box-shadow: unset;
}

input.ppsas-hide {
    display: none;
}
.ppsas-upload-img-display {
    position: relative;
    width: auto;
    display: inline-block;
    padding-top: 10px;
}
.ppsas-upload-img-display img {
    max-width: 100px; 
    height: auto; 
    margin-top: 10px;
}
button.ppsas-remove-upload-img {
    position: absolute;
    padding: 3px 8px;
    background: red;
    right: -10px;
}
button.ppsas-add-background-img {
    background-color: #6e6e6e;
    color: #FFF;
    font-weight: bold;
}
@media (max-width: 768px) {
    .ppsas-tabbing-box .ppsas-tab-list {
        flex-wrap: wrap;
    }

    .ppsas-tabbing-box .ppsas-tab-list .nav-tab {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}
/* Scoped main tabbing styles end */

/* Main container styling */
.ppsas-main-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(44,62,80,0.07);
    padding: 40px 32px 32px 32px;
    margin: 40px 20px 40px auto;
}

.ppsas-header {
    margin-bottom: 32px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 16px;
}

.ppsas-h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ppsas-option-section {
    margin-top: 24px;
}

.ppsas-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    margin-top: 32px;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.ppsas-form-group {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ppsas-form-group label {
    min-width: 220px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
    margin-top: 8px;
}

.ppsas-form-group .ppsas-form-control {
    flex: 1;
}
.ppsas-container button.notice-dismiss {
    margin-top: 0 !important;
}

.ppsas-main-box input[type="checkbox"],
.ppsas-main-box input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.15);
    accent-color: var(--primary-color);
}

/* .ppsas-main-box button:not(.notice-dismiss,.wp-color-result), */
.ppsas-main-box .ppsas-upload-img-box button,
.ppsas-main-box input[type="submit"] {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--hover-color) 100%);
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(74,58,255,0.08);
}

/* .ppsas-main-box button:not(.notice-dismiss):hover, */
.ppsas-main-box .ppsas-upload-img-box button,
.ppsas-main-box input[type="submit"]:hover {
    background: linear-gradient(90deg, var(--hover-color) 60%, var(--primary-color) 100%);
    box-shadow: 0 4px 16px rgba(74,58,255,0.12);
}

.ppsas-tabbing-box {
    /* margin-bottom: 32px; */
    border: none;
    /* background: #f0f0f1; */
    border-radius: 8px 8px 0 0;
    /* padding: 0 16px; */
}

.ppsas-tabbing-box .ppsas-tab-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: none;
    gap: 12px;
}

.ppsas-tabbing-box .ppsas-tab-list .nav-tab {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #e6e6ef;
    border: none;
    border-radius: 8px 8px 0 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ppsas-tabbing-box .ppsas-tab-list .nav-tab-active {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

.ppsas-tabbing-box .ppsas-tab-list .nav-tab:hover {
    background: var(--hover-color);
    color: #fff;
}

.ppsas-tabbing-option {
    padding: 24px 0 0 20px;
    border: 1px solid #ccc;
}

.ppsas-description {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .ppsas-main-box {
        padding: 24px 8px 16px 8px;
        max-width: 100%;
    }
    .ppsas-form-group {
        flex-direction: column;
        gap: 8px;
    }
    .ppsas-form-group label {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .ppsas-tabbing-box .ppsas-tab-list {
        flex-wrap: wrap;
        gap: 0;
    }
    .ppsas-tabbing-box .ppsas-tab-list .nav-tab {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}
.ppsas-option-section p.ppsas-note {
    font-size: 12px;
    font-style: italic;
}

.ppsas-checkbox-wrap {
    display: inline-block;
    position: relative;
}

.ppsas-checkbox-label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    user-select: none;
    line-height: 22px;
}

.ppsas-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 22px;
    width: 22px;
    left: 0;
    top: 0;
    margin: 0;
    z-index: 2;
}

.ppsas-checkbox-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.ppsas-checkbox-wrap input[type="checkbox"]:checked + .ppsas-checkbox-label:before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.ppsas-checkbox-label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: scale(0.7) rotate(45deg);
    transition: opacity 0.2s;
}

.ppsas-checkbox-wrap input[type="checkbox"]:checked + .ppsas-checkbox-label:after {
    opacity: 1;
}
.ppsas-tabbing-option .form-table th {
    font-size: 15px;
    font-weight: 600;
}
.ppsas-tabbing-option h2 {
    font-size: 24px;
    font-weight: bold;
}
.ppsas-upload-img-box button#ppsas_popup_logo {
    margin-top: 0;
}
.ppsas-accordion-content .wp-color-result {
    border-radius: 0;
}
.ppsas-select2-container {
    max-width: 300px;
}
.ppsas-select2-container .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc;
}

.ppsas-select2-container .select2-selection__clear span {
    position: relative;
    top: -3px;
}

.ppsas-select2-container .select2-container--default .select2-selection--multiple .select2-selection__clear {
    width: 16px;
    height: 16px;
    background: var(--error-color);
    color: #fff;
}

.ppsas-select2-container li.select2-selection__choice {
    background-color: var(--primary-color) !important;
    color: #fff;
    font-size: 12px;
    padding: 3px 3px 3px 20px !important;
}

.ppsas-select2-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    height: 100%;
    border-color: #fff !important;
    color: #fff;
}
.ppsas-select2-container .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: var(--hover-color) !important;
}