/**
 * Frontend Preloader Styles - Version 2.0
 * Animated Preloader with Custom Text Plugin
 */

/* Preloader Overlay */
.animated-preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.animated-preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Preloader Content Container */
.animated-preloader-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

/* Preloader Text */
.animated-preloader-text {
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    opacity: 0.3;
}

50% {
    opacity: 1;
}
}

@keyframes slide-up {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(0);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

@keyframes flip-x {
    0% {
        transform: perspective(400px) rotateX(0);
    }

    100% {
        transform: perspective(400px) rotateX(360deg);
    }
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }
}

@keyframes neon-glow {

    0%,
    100% {
        text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
    }

    50% {
        text-shadow: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor, 0 0 80px currentColor;
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    75% {
        transform: translateY(10px);
    }
}

@keyframes zoom-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes rubber-band {

    0%,
    100% {
        transform: scaleX(1);
    }

    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }

    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }

    50% {
        transform: scaleX(1.15) scaleY(0.85);
    }

    65% {
        transform: scaleX(0.95) scaleY(1.05);
    }

    75% {
        transform: scaleX(1.05) scaleY(0.95);
    }
}

@keyframes jello {

    0%,
    100% {
        transform: skewX(0) skewY(0);
    }

    30% {
        transform: skewX(25deg) skewY(25deg);
    }

    40% {
        transform: skewX(-15deg) skewY(-15deg);
    }

    50% {
        transform: skewX(15deg) skewY(15deg);
    }

    65% {
        transform: skewX(-5deg) skewY(-5deg);
    }

    75% {
        transform: skewX(5deg) skewY(5deg);
    }
}

@keyframes flash {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

/* ========================================
   LOGO/IMAGE ANIMATIONS
   ======================================== */

@keyframes logo-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes logo-swing {
    20% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    80% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

@keyframes logo-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

@keyframes logo-flip {
    from {
        transform: perspective(400px) rotateY(0);
    }

    to {
        transform: perspective(400px) rotateY(360deg);
    }
}

@keyframes logo-wobble {

    0%,
    100% {
        transform: translateXIMPORTANT: Please create a comprehensive summary showing what the user asked for and what has been delivered. Include: 1. User's original request
 2. What was successfully implemented (with specific details) 3. Current progress percentage 4. What's remaining to complete the request
 5. Next suggested steps The user wants a more advanced plugin but we've made significant progress. Let' s consolidate this properly.(0);
    }

    15% {
        transform: translateX(-25px) rotate(-5deg);
    }

    30% {
        transform: translateX(20px) rotate(3deg);
    }

    45% {
        transform: translateX(-15px) rotate(-3deg);
    }

    60% {
        transform: translateX(10px) rotate(2deg);
    }

    75% {
        transform: translateX(-5px) rotate(-1deg);
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes logo-zoom-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   LOADING BAR STYLES
   ======================================== */

.loading-bar-container {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000000;
}

.loading-bar-top {
    top: 0;
}

.loading-bar-bottom {
    bottom: 0;
}

.loading-bar {
    width: 0%;
    height: 4px;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.circular-progress-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000000;
}

.circular-progress {
    transform: rotate(-90deg);
}

.progress-ring {
    fill: none;
    stroke: #667eea;
    stroke-width: 6;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
}

/* ========================================
   SPINNER STYLES
   ======================================== */

.preloader-spinner {
    margin-bottom: 15px;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

.spinner-dots {
    display: flex;
    gap: 8px;
}

.spinner-dots div {
    width: 12px;
    height: 12px;
    background-color: currentColor;
    border-radius: 50%;
    animation: dots-bounce 1.4s infinite ease-in-out both;
}

.spinner-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

.spinner-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 40px;
}

.spinner-bars div {
    width: 6px;
    background-color: currentColor;
    animation: bars-scale 1.2s infinite ease-in-out;
}

.spinner-bars div:nth-child(1) {
    animation-delay: -0.4s;
}

.spinner-bars div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner-bars div:nth-child(3) {
    animation-delay: -0.2s;
}

.spinner-bars div:nth-child(4) {
    animation-delay: -0.1s;
}

.spinner-ring {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 50px;
}

.spinner-ring div {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid currentColor;
    border-radius: 50%;
    animation: spinner-ring-animation 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}

.spinner-dual-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: currentColor;
    border-bottom-color: currentColor;
    animation: spinner-rotate 1s linear infinite;
}

.spinner-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 20px;
}

.spinner-ellipsis div {
    position: absolute;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: currentColor;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.spinner-ellipsis div:nth-child(1) {
    left: 8px;
    animation: ellipsis1 0.6s infinite;
}

.spinner-ellipsis div:nth-child(2) {
    left: 8px;
    animation: ellipsis2 0.6s infinite;
}

.spinner-ellipsis div:nth-child(3) {
    left: 32px;
    animation: ellipsis2 0.6s infinite;
}

.spinner-ellipsis div:nth-child(4) {
    left: 56px;
    animation: ellipsis3 0.6s infinite;
}

.spinner-grid {
    display: inline-block;
    width: 50px;
    height: 50px;
}

.spinner-grid div {
    width: 33.33%;
    height: 33.33%;
    background-color: currentColor;
    float: left;
    animation: grid-scale 1.3s infinite ease-in-out;
}

.spinner-grid div:nth-child(1) {
    animation-delay: 0.2s;
}

.spinner-grid div:nth-child(2) {
    animation-delay: 0.3s;
}

.spinner-grid div:nth-child(3) {
    animation-delay: 0.4s;
}

.spinner-grid div:nth-child(4) {
    animation-delay: 0.1s;
}

.spinner-grid div:nth-child(5) {
    animation-delay: 0.2s;
}

.spinner-grid div:nth-child(6) {
    animation-delay: 0.3s;
}

.spinner-grid div:nth-child(7) {
    animation-delay: 0s;
}

.spinner-grid div:nth-child(8) {
    animation-delay: 0.1s;
}

.spinner-grid div:nth-child(9) {
    animation-delay: 0.2s;
}

/* Spinner Keyframes */
@keyframes spinner-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dots-bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bars-scale {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1);
    }
}

@keyframes spinner-ring-animation {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes grid-scale {

    0%,
    70%,
    100% {
        transform: scale3D(1, 1, 1);
    }

    35% {
        transform: scale3D(0, 0, 1);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .animated-preloader-text {
        font-size: 18px;
        padding: 0 20px;
    }

    .animated-preloader-image {
        max-width: 150px;
    }

    .animated-preloader-content {
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .animated-preloader-text {
        font-size: 16px;
        padding: 0 15px;
    }

    .animated-preloader-image {
        max-width: 100px;
    }

    .animated-preloader-content {
        gap: 10px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .animated-preloader-overlay,
    .animated-preloader-text,
    .animated-preloader-image,
    .preloader-spinner,
    .loading-bar {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .animated-preloader-overlay {
        display: none !important;
    }
}