/* Modal Base Styles */
.seo-meta-editor .seo-url-input,
.swal2-container .seo-url-input,
.seo-meta-editor .seo-meta-robots-select,
.wp-core-ui .seo-meta-editor select.seo-meta-robots-select,
.swal2-container .seo-meta-robots-select {
    font-size: 14px !important;
    height: 30px !important;
    min-height: 30px !important;
}

/* Fix labels too */
.input-half label,
.swal2-container .input-half label {
    font-size: 14px !important;
}

/* Input size matching fix */
.seo-url-input,
.seo-meta-robots-select,
.seo-slug-input,
.seo-canonical-input {
    box-sizing: border-box !important;
    height: 30px !important;
}

/* Remove any inherited styles that might affect the size */
.swal2-container input,
.swal2-container select {
    font-size: 14px !important;
}

.seo-meta-editor .seo-meta-robots-select,
.wp-core-ui .seo-meta-editor select.seo-meta-robots-select,
.swal2-container .seo-meta-robots-select {
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    box-shadow: none;
    background-color: #fff;
    color: #2c3338;
    font-size: 14px;
    line-height: 2;
    padding: 0 24px 0 8px;
    max-width: 25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    cursor: pointer;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
    background-size: 16px 16px;
}

.seo-meta-editor .seo-meta-robots-select:focus,
.wp-core-ui .seo-meta-editor select.seo-meta-robots-select:focus,
.swal2-container .seo-meta-robots-select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Match URL styling for consistency */
.seo-meta-editor .seo-url-input,
.swal2-container .seo-url-input {
    width: 100%;
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background-color: #fff;
    color: #2c3338;
    box-shadow: none;
    font-size: 14px;
    line-height: 2;
}

/* Make sure the select is full width and matches URL input */
.swal2-popup .swal2-styled.swal2-confirm {
    border-radius: 3px;
}

/* You may need this to properly render the dropdown arrow in all browsers */
.seo-meta-robots-select::-ms-expand {
    display: none;
}

/* Make sure the dropdown appears above other elements */
.seo-meta-robots-select {
    position: relative;
    z-index: 100;
}

.input-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.input-half {
    flex: 1;
    min-width: 200px;
}

.seo-meta-robots-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    height: 40px;
}

.swal2-container {
    z-index: 999999!important;
}
/* Sidebar item layout adjustments */
.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.sidebar-item-content {
    flex: 1;
    overflow: hidden;
}

.sidebar-item-info {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

/* Status badges */
.sidebar-item-badge {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
    margin-top: -5px;
}

.badge-draft {
    background-color: #ffebe8;
    color: #d63638;
}

.badge-private {
    background-color: #f0f6fc;
    color: #1e1e1e;
}

.badge-pending {
    background-color: #fcf9e8;
    color: #8a6d3b;
}

.badge-future {
    background-color: #e8f0fb;
    color: #1d5997;
}

.badge-publish {
    background-color: #edfaef;
    color: #117a34;
}

.sidebar-item-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    display: none;
}

.badge-text {
    text-transform: capitalize;
}

/* Post type indicator */
.post-type-indicator {
    margin-right: 6px;
    opacity: 0.7;
}

.post-type-indicator .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Skeleton loader for sidebar items */
.sidebar-item.skeleton-loader .sidebar-item-badge,
.sidebar-item.skeleton-loader .post-type-indicator {
    opacity: 0.2;
}

#swal2-html-container > div > div.main-content > div.input-container > div:nth-child(1) > label {
    display: none;
}
#url {
    max-height: 20px;
    font-size: 12px;
    line-height: 14px;
}
#pwby{
    display: flex;
}
.my-swal-container {
    padding: 0 !important;
    z-index: 99999;
}

.my-swal-popup {
    padding: 0 !important;
    max-width: 95vw !important;
    width: 95vw !important;
    height: 90vh !important;
}

.my-swal-html {
    margin: 0 !important;
    padding: 0 !important;
    height: calc(90vh - 140px) !important;
    overflow: hidden !important;
}

/* Main Layout */
.seo-meta-editor {
    display: flex;
    min-height: 100%;
    /* background: #f0f2f5; */
    position: relative;
}

.main-content {
    flex: 0 0 55%;
    max-width: 55%;
    overflow-y: auto;
    padding: 10px;
    border-right: 1px solid #ddd;
}

/* Input Styles */
.input-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 0px 0px 1px rgb(128 118 118 / 38%);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e1e1e;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.input-group textarea {
    min-height: 55px;
    resize: vertical;
}

/* Progress Bars */
.progress-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 8px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-fill.under50 { background: #4caf50; }
.progress-fill.over50 { background: #2196f3; }
.progress-fill.overlimit { background: #f44336; }

.metrics {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 4px;
}

.metrics.over-limit {
    color: #f44336;
}

/* Mockup Styles */
.mockup-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 0px 0px 1px rgb(128 118 118 / 38%);
    text-align: left;
}

.mockup {
 /*   padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;*/
}

.mockup-url {
    color: #202124;
    font-size: 14px;
    margin-bottom: 4px;
}

.mockup-title {
    color: #1a0dab;
    font-size: 20px;
    margin-bottom: 6px;
    cursor: pointer;
}

.mockup-description {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
    max-width: 590px;
}

/* Sidebar Styles */
.sidebar-container {
    flex: 1;
    min-width: 0; /* Important - allows sidebar to shrink */
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.sidebar-search {
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    height: calc(100% - 70px); /* Account for search box */
}

.sidebar-item {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: left;
}

.sidebar-item:hover {
    background-color: #f0f0f1;
    border-color: #c3c4c7;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-item.active {
    border-color: #2271b1;
    background-color: #f0f7fc;
}

.sidebar-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1e1e1e;
}

.sidebar-item-slug {
    font-size: 12px;
    color: #646970;
    word-break: break-all;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 0px;
    right: 47px;
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    color: #4caf50;
}

.save-indicator .dashicons {
    font-size: 20px;
}

/* SweetAlert2 Customizations */
.swal2-title {
    padding: 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    font-size: 18px !important;
}

.my-swal-actions {
    margin: 0 !important;
    padding-right: 20px;
    padding-top: 0px;
    padding-bottom: 0px;;
    
    
    border-top: 1px solid #ddd;
    background: #f8f9fa;
    width: 100%;
    justify-content: flex-end !important;
}

.swal2-actions {
    gap: 8px !important;
}

.swal2-actions button {
    border-width: 0px!important;
    cursor:pointer!important;
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
}

.swal2-confirm {
    background: #2271b1 !important;
    color: white !important;
}

.swal2-deny {
    background: #2271b1 !important;
    color: white !important;
}

.swal2-cancel {
    background: #f0f0f1 !important;
    color: #1e1e1e !important;
    border: 1px solid #ddd !important;
}

/* List View Styles */
.seo-meta-field {
    position: relative;
    padding: 8px 35px 8px 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.seo-meta-field:hover {
    border-color: #ddd;
    background: #f9f9f9;
}

.seo-meta-text {
    display: block;
    font-family: Arial;
    line-height: 1.2;
    word-break: break-word;
    min-height: 20px;
}

.seo-meta-edit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #007cba;
    transition: opacity 0.2s ease;
}

.seo-meta-edit:hover {
    color: #00a0d2;
}

.seo-meta-field:hover .seo-meta-edit {
    opacity: 1;
}

/* Mobile Responsive */
@media screen and (max-width: 1200px) {
    .seo-meta-editor {
        flex-direction: column;
    }
    
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 16px;
        order: 1;
    }
    
    .sidebar-container {
        order: 2;
        height: 300px;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .sidebar-search {
        position: static;
    }
}

@media screen and (max-width: 640px) {
    .swal2-actions {
        flex-direction: column;
    }

    .swal2-actions button {
        margin: 4px 0 !important;
        width: 100%;
    }
}

.sidebar-container {
    position: relative!important;;
    display: block!important;
}

.swal2-title {
border-top-right-radius: 20px;
border-top-left-radius: 20px;
}

.my-swal-actions {
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

#swal2-html-container > div > div.main-content > div.input-container {
    text-align: left;
}

.sidebar-container {
    box-shadow: -2px 0 5px rgb(0 0 0 / 6%)!important;
}

.seo-meta-field.completed {
    background-color: rgba(76, 175, 80, 0.05);
}

.seo-meta-field.completed .dashicons-yes-alt {
    vertical-align: middle;
    font-size: 16px;
}

/* Animate checkmark appearance */
@keyframes checkmark-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.seo-meta-field.completed .dashicons-yes-alt {
    animation: checkmark-appear 0.3s ease-out;
}
.sidebar-item-status{
    display: inline-flex;
    vertical-align: middle;
    float: right;
}


.sidebar-item-status .dashicons{
    font-size: 22px !important;
    margin-right: 5px;
    margin-top: -8px;
}
/* Modern Button Styles for SEO Meta Editor Modal */
.my-swal-actions {

    background: #f8f9fa !important;
    border-top: 1px solid #e0e0e0 !important;
    margin: 0 !important;
    gap: 12px !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.my-swal-actions button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    min-width: 100px !important;
}

/* Primary action button (Save & Close) */
.my-swal-actions .swal2-deny {
    background: #2271b1 !important;
    color: white !important;
    border: 1px solid #2271b1 !important;
}

.my-swal-actions .swal2-deny:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary action button (Save) */
.my-swal-actions .swal2-confirm {
    background: white !important;
    color: #2271b1 !important;
    border: 1px solid #2271b1 !important;
}

.my-swal-actions .swal2-confirm:hover {
    background: #f0f7fc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Cancel button (Close) */
.my-swal-actions .swal2-cancel {
    background: white !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
}

.my-swal-actions .swal2-cancel:hover {
    background: #f6f7f7 !important;
    border-color: #c3c4c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Loading state */
.my-swal-actions .swal2-loader {
    border-color: #2271b1 transparent #2271b1 transparent !important;
    width: 20px !important;
    height: 20px !important;
    align-self: center !important;
}

.swal2-actions.my-swal-actions {
    border-width: 0xp!important;
}

body > div.swal2-container.swal2-center.my-swal-container.swal2-backdrop-show > div > div.swal2-actions.my-swal-actions > button.swal2-confirm  {
    border-width: 0xp!important;
    cursor: pointer;
}
body > div.swal2-container.swal2-center.my-swal-container.swal2-backdrop-show > div > div.swal2-actions.my-swal-actions > button.swal2-deny {
    border-width: 0xp!important;
    cursor: pointer;
}

#swal2-html-container > div > div.main-content > div.input-container > div > label {
    font-size: 14px;
}


/* FIXES*/

/* Fixed Modal Layout */
.my-swal-popup {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    max-width: 95vw !important;
    width: 95vw !important;
    height: 90vh !important;
    overflow: hidden !important;
}

.my-swal-html {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
}

.seo-meta-editor {
    display: flex !important;
    height: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.main-content {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    height: 100% !important;
    overflow-y: auto !important;
    padding: 20px !important;
    border-right: 1px solid #ddd !important;
    position: sticky !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-container {
    flex: 1 !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
}

.sidebar-list {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px !important;
}

/* Fix for the scrolling behavior */
.sidebar-item.active {
    scroll-margin-top: 70px !important; /* Accounts for the search bar height */
}

/* Ensure mockup stays visible */
.mockup-container {
    position: sticky !important;
    top: 20px !important;
    z-index: 1 !important;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .seo-meta-editor {
        flex-direction: column !important;
    }
    
    .main-content {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 50vh !important;
        border-right: none !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .sidebar-container {
        height: auto !important;
        min-height: 300px !important;
        max-height: 40vh !important;
    }
}

.my-swal-actions {
    padding-top: 10px!important;
    padding-bottom: 10px!important;;
}

.swal2-actions.my-swal-actions > div.pwby > a {
    text-decoration: none;
    color: inherit;

}
:root {
    --loader-background-color: #EEEEEE;
    --loader-highlight-color: #DEDEDE;
}

.skeleton-loader-prev {
    background: linear-gradient(90deg, #EEEEEE 25%, #DEDEDE 50%, #EEEEEE 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite ease-in-out;
}

.skeleton-loader {

    background: linear-gradient(90deg, #EEEEEE 25%, #DEDEDE 50%, #EEEEEE 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite cubic-bezier(0.13, 0.86, 1, 1);
}
.skeleton-loader2 {
    width: 100%;
    height: 45px;
    background: linear-gradient(90deg, var(--loader-background-color) 25%, var(--loader-highlight-color) 50%, var(--loader-background-color) 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite ease-in-out;
    border-radius: 8px;
    margin-bottom: 20px;
}

.avatar-skeleton {
    width: 100px;
    height: 100px;
    background: linear-gradient(90deg, var(--loader-background-color) 25%, var(--loader-highlight-color) 50%, var(--loader-background-color) 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite ease-in-out;
    border-radius: 50%;
    margin-bottom: 20px;
}

.cover-image-skeleton {
    width: 300px;
    height: 200px;
    background: linear-gradient(90deg, var(--loader-background-color) 25%, var(--loader-highlight-color) 50%, var(--loader-background-color) 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite ease-in-out;
    border-radius: 8px;
    margin-bottom: 20px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


:root {
    --loader-background-color: #EEEEEE;
    --loader-highlight-color: #DEDEDE;
}
/* Modal Base Styles */
.seo-meta-editor-pro {
    /* Use WordPress admin color scheme variables */
    --wp-admin-theme-color: #2271b1;
    --wp-admin-theme-color-darker-10: #135e96;
    --wp-admin-theme-color-darker-20: #0a4b78;
}
#slug {
    height: 30px;
}
.slug-save-button {
    height: 28px!important;
    font-size: 12px;
    min-width: 100px;
}

.metrics-top {
    float: right;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 3px;
    transition: color 0.3s ease;
}
.metrics-top.over-limit {
    color: #d63638;
    font-weight: bold;
    opacity: 1;
}

/*MODAL*/

.pixels-limit{
    display:none;
    }
        .sidebar-item {
            position: relative;
            padding-right: 30px !important;
        }
        .sidebar-item-status {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
        }
        .sidebar-item-status .dashicons {
            color: #4caf50;
            opacity: 0;
            transition: opacity 0.3s ease;
            font-size: 16px;
        }
        .saving-indicator {
            position: fixed;
            top: -10px;
            width: 200px;
            right: 47px;
            background: white;
            padding: 5px 10px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: none;
            align-items: center;
            gap: 8px;
            z-index: 199999999999999999999999999999999999999999999999999;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
          }
        .saving-indicator .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #2271b1;
            border-radius: 50%;
            visibility: visible;
            animation: spin 1s linear infinite;
        }

        .mockup-url-wrap {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #202124;
        }
        .mockup-favicon {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            margin-top: -2px;
        }
        .pixels-limit {
            float: right;
            opacity: 0.7;
            font-size: 12px;
            font-weight: normal;
        }
        label {
            display: block;
            width: 100%;
        }
        .input-group-with-button {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }
        .input-group-with-button input {
            flex-grow: 1;
        }
        .save-button {
            background: #2271b1;
            border: none;
            color: white;
            padding: 4px 12px;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 1px;
            height: 32px;
        }
        .save-button:hover {
            background: #135e96;
        }
        .save-button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .save-success {
            color: #4caf50;
            display: none;
            align-items: center;
            gap: 4px;
            margin-left: 2px;
            font-size: 12px;
            height: 30px; 
            line-height: 30px;
        }
        /* Move metrics to top */
        .metrics {
            float: right;
            font-size: 12px;
            font-weight: normal;
            margin-top: 3px;
            transition: color 0.3s ease;
        }
        .metrics.over-limit {
            color: #d63638;
            font-weight: bold;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .skeleton-loader {
            position: relative;
            background-color: #f8f9fa;
            background-image: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0),
                rgba(255, 255, 255, 0.6),
                rgba(255, 255, 255, 0)
            );
            background-size: 200px 100%;
            background-repeat: no-repeat;
            background-position: -200px 0;
            animation: skeleton-wave 1.5s ease-in-out infinite;
            color: transparent !important;
            border-color: #ddd !important;
        }
        
        @keyframes skeleton-wave {
            0% {
                background-position: -200px 0;
            }
            100% {
                background-position: calc(200px + 100%) 0;
            }
        }
        
        /* Specific styles for form elements */
        input.skeleton-loader,
        select.skeleton-loader,
        textarea.skeleton-loader {
            color: transparent !important;
            user-select: none;
        }
        
        /* Specific styles for sidebar items */
        .sidebar-item.skeleton-loader {
            background-color: #f8f9fa;
        }
        
        .sidebar-item.skeleton-loader .sidebar-item-title,
        .sidebar-item.skeleton-loader .sidebar-item-slug {
            color: transparent !important;
            background-color: #eee;
            border-radius: 4px;
        }
        
        /* Make sure the loading spinner is visible */
        .saving-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
        }
        
        .saving-indicator .spinner {
            display: inline-block;
            visibility: visible;
            margin-right: 5px;
        }

        .my-swal-actions {
            padding-right: 30px!important;
        }

/*// Glow Border Animation //*/
.animated-border-box, .animated-border-box-glow{
    max-height: 200px;
    max-width: 250px;
    height: 100%;
    width: 100%;
    position: absolute;
    overflow: hidden; 
    z-index: 0;
    /* Border Radius */
    border-radius: 5px;
  }
  
  .animated-border-box-glow{
    overflow: hidden;
    /* Glow Blur */
    filter: blur(20px);
  }
  
  .animated-border-box:before, .animated-border-box-glow:before {
    content: '';
    z-index: -2;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    position: absolute;
    width: 99999px;
    height: 99999px;
    background-repeat: no-repeat;
    background-position: 0 0;
    /*border color, change middle color*/
    background-image: conic-gradient(rgba(0,0,0,0), #1976ed, rgba(0,0,0,0) 25%);
    /* change speed here - CHANGED FROM 4s to 1.33s (3x faster) */
    animation: rotate 1.33s linear infinite;
  }
  
  .animated-border-box:after {
    content: '';
    position: absolute;
    z-index: -1;
    /* border width - CHANGED FROM 3px to 2px */
    left: 2px;
    top: 2px;
    /* double the px from the border width left - CHANGED FROM 6px to 4px */
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    /*bg color*/
    background: #292a2e;
    /*box border radius*/
    border-radius: 7px;
  }
  
  @keyframes rotate {
    100% {
      transform: translate(-50%, -50%) rotate(1turn);
    }
  }
  /*// Border Animation END//*/
  
 

  #savingIndicator {
    display:none;
  }
  .swal2-popup.saving-active {
    position: relative;
    z-index: 0;
    /* Remove default border if any */
    border: none !important;
}

/* Pseudo-element for the glowing border */
.swal2-popup.saving-active::before {
    content: '' !important;
    position: absolute !important;
    z-index: -2 !important;
    top: 50%;
    left: 50%;
    width: 99999px;
    height: 99999px;
    transform: translate(-50%, -50%) rotate(0deg);
    background-repeat: no-repeat;
    background-position: 0 0;
    /* Use a nice blue color that matches your theme */
    background-image: conic-gradient(rgba(0,0,0,0), #1976ed, rgba(0,0,0,0) 25%);
    animation: glow-rotate 2s linear infinite;
}

/* Create an inner container to hide overflow and create the border effect */
.swal2-popup.saving-active::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 3px;
    top: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    /* Match the modal background color */
    background: #fff;
    border-radius: 5px;
}

/* Animation keyframes */
@keyframes glow-rotate {
    100% {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

/* Add a blur effect for better glow */
.swal2-container.swal2-shown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.7;
}