@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
@keyframes spin {
    100% {
        transform: rotate(1turn);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes color-rotate {
    0% {
        color: #4285F4;
    }

    25% {
        color: #EA4335;
    }

    50% {
        color: #FBBC05;
    }

    75% {
        color: #34A853;
    }

    100% {
        color: #4285F4;
    }
}

/* New Spinner Style */
.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    margin: 30px auto;
    -webkit-mask: conic-gradient(from 15deg, #0000, #000);
    animation: spin 1s infinite steps(12);
}

.loader,
.loader:before,
.loader:after {
    background:
        radial-gradient(closest-side at 50% 12.5%, currentColor 96%, #0000) 50% 0/20% 80% repeat-y,
        radial-gradient(closest-side at 12.5% 50%, currentColor 96%, #0000) 0 50%/80% 20% repeat-x;
}

.loader:before,
.loader:after {
    content: '';
    grid-area: 1/1;
    transform: rotate(30deg);
}

.loader:after {
    transform: rotate(60deg);
}

.loader-container {
    text-align: center;
    min-width: 300px;
    max-width: 350px;
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.message-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.loader-message {
    font-size: 20px;
    font-weight: 500;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
    text-align: center;
    width: 100%;
    animation: color-rotate 8s infinite;
}

.loader-message.active {
    opacity: 1;
    transform: translateY(0);
}

.progress-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
    animation: progress-pulse 2s infinite, progress-move 3s infinite;
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes progress-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.status-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.completed-check {
    font-size: 80px;
    color: #34A853;
    margin-bottom: 20px;
    display: none;
    animation: float 3s ease-in-out infinite;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}