.p-tabs {
    background-color: #000000;
    display: flex;
    padding: 5px 10px 0 10px;
    border-radius: 10px 10px 0 0;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
}

.rcrop-wrapper .rcrop-outer {
    background: #646464;
    position: absolute;
}

.ai-image-side .ai-image-con {
    margin: 2px 0;
    background-color: #fff;
    padding: 2px;
    border-radius: 10px;
    margin-bottom: 2px;
}



.ai-img-scroll-con {
    background: #000000fc;
    padding: 10px 30px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid #ffffff;
    position: relative;
    background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
}



.ai-img-preview-meta {
    text-align: center;
    font-size: 13px;
    margin-bottom: 10px;
    color: #000000;
}


.ai-img-tools-con {
    display: flex;
    gap: 0;
    margin-top: 5px;
}

.scrollable-item-inner {
    padding: 7px;
    padding-right: 5px;
}

.ai-img-styles-head li {
    list-style: none;
    font-size: 15px;
    width: 148px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    background: #ffffff;
    padding: 5px;
    border-radius: 5px;
    color: #000000;
    border-style: solid;
    border-color: #6495ed29;
    transition: all 0.3s ease;
}

/* Standard hover effect */
.ai-img-styles-head li:hover {
    background-image: radial-gradient(circle 382px at 50% 50.2%, rgb(244 245 255) 0.1%, rgb(7 19 83 / 13%) 100.2%);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Static hover class */
.ai-img-styles-head li.hover-static {
    background: #b8bbd1;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Active state (when clicked) */
.ai-img-styles-head li:active {
    background-image: radial-gradient(circle 382px at 50% 50.2%, rgb(244 245 255) 0.1%, rgb(7 19 83 / 13%) 100.2%);
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

/* Static active class */
.ai-img-styles-head li.active {
    background: #d9dcff;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(circle 382px at 50% 50.2%, rgb(242 243 255 / 97%) 0.1%, rgb(38 38 38) 100.2%);
}


.ai-img-styles-title {
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
    color: #000;
}




.side-menu {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}





.side-menu li {
    padding: 10px;
    border-radius: 10px;
    background: #fcfcfc00;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-menu li:hover {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-radius: 15px 0px 0px 15px;
    left: 10px;
    color: #000;
}

.side-menu li::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #94abc3;
    transition: width 0.3s ease;
}

.side-menu li:hover::before {
    width: 100%;

}

.side-menu li.active::before {
    width: 100%;
    background: linear-gradient(287deg, #f49959c2, #1328512b, #6167e2b0, #f49959b8, #20202840);
    background-size: 300% 300%;
    animation: borderAnimation 2s ease infinite;
    overflow: hidden;

}








.aimediaframecon {
    background-color: #FFF;
    position: fixed;
    justify-self: anchor-center;
    width: 80vw;
    height: 80vh;
    z-index: 10000;
    top: 0;
    left: 0;
    display: none;
    padding-top: 10%;
}






.ai-image-side .ai-img-tools,
.special-border {
    padding: 1em 0.5em;
    width: 100px;
    color: rgb(182 172 172);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.3s ease;
    border: 0 solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ai-image-side .ai-img-tools:before,
.special-border:before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    -webkit-filter: blur(1px);
    width: calc(100% + 2px);
    height: calc(100% + 1px);
    animation: glowing-button-85 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
    background: #f5f5f5;
}

@keyframes glowing-button-85 {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.ai-image-side .ai-img-tools:after,
.special-border:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFF;
    left: 0;
    top: 0;
    border-radius: 10px;


}

.ai-image-side .ai-img-tools:hover {
    transform: scale(1.05);

}

.ai-image-side .ai-img-tools:hover::before,
.ai-image-side .ai-img-tools.active::before,
.special-border:hover::before,
.special-border.active::before {
    content: "";
    background: linear-gradient(45deg,
            #f49959c2,
            #6167e2b0,
            #f49959c2,
            #6167e2b1,
            #f49959c2,
            #6167e2b0,
            #f49959c2,
            #6167e2b1,
            #00ffd5,
            #002bff,
            #7a00ff,
            #ff00c8,
            #f49959c2,
            #6167e2b0,
            #f49959c2,
            #6167e2b1,
            #f49959c2,
            #6167e2b0,
            #f49959c2,
            #6167e2b1);
    transform: scale(1.05);
    position: absolute;
    top: -1px;
    left: -1px;
    background-size: 400%;
    z-index: -5;
    filter: blur(1px);
    -webkit-filter: blur(1px);
    width: calc(100% + 2px);
    height: calc(100% + 1px);
    border-radius: 10px;
    animation: glowing-button-85 20s linear infinite;
}

@keyframes hover-glowing-effect {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.ai-image-side .ai-img-tools:hover::after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #161616e3;
    left: 0;
    top: 0;
    border-radius: 10px;

}

.ai-image-side .ai-img-tools.active,
.ai-image-side .ai-img-toolslabel:hover:not(.static) {
    font-weight: bold;
}







.ai-image-side .ai-img-tools.active {
    color: #7a7373;
    text-decoration: none;
    transform: scale(1.05);
    transition: all 0.2s ease;
    cursor: pointer;
    background: #FFF;
    border-bottom-width: medium;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* .ai-image-side .ai-img-tools.active::after {
    content: "";
    color: #FFF;
    background: linear-gradient(45deg, #f49959c2, #6167e2b0, #f49959c2, #6167e2b1, #f49959c2, #6167e2b0, #f49959c2, #6167e2b1, #00ffd5, #002bff, #7a00ff, #ff00c8, #f49959c2, #6167e2b0, #f49959c2, #6167e2b1, #f49959c2, #6167e2b0, #f49959c2, #6167e2b1);
    transform: scale(1.05);
    position: absolute;
    background-size: 400%;
    z-index: -3;
    filter: blur(2px);
    border-radius: 10px;
    animation: hover-glowing-effect 20s linear infinite;
}

@keyframes hover-glowing-effect {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
} */


.z-pop-inner {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
}



.ai-image-side {
    top: 0;
    width: 35%;
    background-color: #fffffff7;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}






.ai-image-side .media-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    position: relative;
}

.animated-border-btn {
    position: relative;
    overflow: hidden;
}

.animated-border-btn::after {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-image:
        radial-gradient(circle, rgb(63, 237, 251) 0px, rgba(252, 70, 107, 0) 71%),
        linear-gradient(transparent, transparent),
        linear-gradient(transparent, transparent),
        linear-gradient(transparent, transparent);
    z-index: -1;
    pointer-events: none;
    background-position: 0px 0px, 100% 0px, 100% 100%, 0px 100%;
    animation: 4s linear 0s infinite normal none running borderRotate;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }






}





.ai-img-styles-title {
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
    width: auto;
    color: #7a7373;
    font-size: 14px;
}



/* .ai-img-con .inner {
    width: 100%;
    flex-wrap: wrap;
    align-content: flex-start;
    display: flex;
    overflow-y: auto;
    border: 1px solid #EAEAEA;
    border-radius: 15px;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    margin-top: 10px;

} */


.media-editor .title {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
}




.myimages {
    padding: 5px;
    border: 1px solid #c3efff;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    border-radius: 10px;
    transition: 1s ease;
    background: lavender;
}



.myimages .label {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -1px;
    background: lavender;
    left: -1px;
    border-radius: 0 0 10px 10px;
    padding: 1px;
    font-size: 10px;
    font-weight: 400;
    color: #000;
    -webkit-text-stroke: aliceblue;
    -webkit-text-stroke: 0.5px;
    -webkit-text-stroke-color: #59646f;
}








.ai-img-con .myimages {
    /* height: auto; */
    /* aspect-ratio: auto; */
    /* width: calc(25% - 20px); */
    /* position: relative; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    /* overflow: hidden; */
}

.ai-img-con.styles .myimages {
    aspect-ratio: auto;
}

.ai-img-con .myimages>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ai-img-con .myimages>img:hover {
    transform: scale(1.02);
    filter: brightness(115%) contrast(110%);
}

.ai-img-con .myimages>img:hover {
    transform: scale(1.02);

}

.ai-img-con .myimages.aspect-16-9 {
    padding-top: 56.25%;
}

.ai-img-con .myimages.aspect-1-1 {
    padding-top: 100%;
}

.ai-img-con .myimages.aspect-4-3 {
    padding-top: 75%;
}

.ai-img-con .myimages.aspect-21-9 {
    padding-top: 42.86%;
}

.ai-img-con .myimages:hover {
    background-color: rgb(249, 250, 251);
    transition: background-color 0.3s ease;
}






.media-btn {
    align-items: center;
    background-image: radial-gradient(100% 100% at 100% 0, #f5f5f563 0, #ffffff 100%);
    box-sizing: border-box;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    white-space: nowrap;
    will-change: box-shadow, transform;
    font-size: 14px;
    padding: 1em 0.5em;
    width: 100px;
    color: rgb(182 172 172);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.3s ease;
    border: 0 solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.media-btn:hover {
    background-color: rgb(242, 250, 251);
    transition: background-color 0.3s ease;
}

.media-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.media-btn:focus-visible {
    box-shadow: none;
}



.media-btn:focus {
    box-shadow: #f49959c2 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 4px 6px -2px, #c3cde6 0 -3px 0 inset;
}

.media-btn:hover {
    box-shadow: rgb(176 172 184 / 40%) 0 2px 4px, rgb(125 118 142 / 30%) 0 4px 6px -2px, #4a3b7566 0 -3px 0 inset;
    transform: translateY(-2px);
}

.media-btn:active {
    box-shadow: #f49959c2 0 3px 7px inset;
    transform: translateY(2px);
}



.collapsible-container {
    position: relative;
}

.collapsible-checkbox {
    display: none;
}

.prop,
.nprop {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-left: 0;
    font-size: 13px;
    border: 1px solid #d0d2d4;
    border-radius: 3px;
    color: #6e767c;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-label {
    cursor: pointer;
    display: block;
    text-align: center;
    padding: 5px;
    background-color: #f0f0f0;
}

.collapsible-checkbox:checked+.prop,
.collapsible-checkbox:checked+.nprop {
    max-height: none;
}






#imgform,
#fileform,
.mediaupload {
    min-width: calc(20% - 20px);
    margin: 5px 0;
    padding: 1px;
    cursor: pointer;
    height: auto;
    min-height: auto;
    border: 2px dotted #EAEAEA;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    align-content: center;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 768px) {

    #imgform,
    #fileform,
    .mediaupload {
        min-width: calc(100% - 20px);
        padding: 8px;
        margin: 5px 0;
    }
}




@keyframes borderFlicker {
    0% {
        border-color: rgba(18, 232, 51, 0.27);
    }

    50% {
        border-color: rgba(18, 232, 51, 0.7);
    }

    100% {
        border-color: rgba(18, 232, 51, 0.27);
    }
}

.ai-img-styles-head li.active-temp {
    border-color: rgba(18, 232, 51, 0.27);
    border-width: 2px;
    animation: borderFlicker 3s ease-in-out infinite;
}

































/* Scrollbar (Chrome, Safari, etc.) */

* {
    scrollbar-width: thin;
    scrollbar-color: rgb(0 0 0 / 89%) transparent;
}

/* For Webkit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(207, 216, 223, 0.5);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(207, 216, 223, 0.8);
}


/* Scrollbar (Chrome, Safari, etc.) */