/* Google Spinner Styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.google-spinner {
    width: 36px;
    height: 36px;
    position: relative;
}

.spinner-svg {
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.spinner-path {
    stroke: #4285f4;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

@keyframes color {
    100%,
    0% {
        stroke: #4285f4;
    }
    25% {
        stroke: #ea4335;
    }
    50% {
        stroke: #fbbc04;
    }
    75% {
        stroke: #34a853;
    }
}

/* Alternative Google Dots Loader */
.google-dots-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.dots-container {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    background-color: #4285f4;
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    background-color: #ea4335;
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    background-color: #fbbc04;
    animation-delay: 0s;
}

.dot:nth-child(4) {
    background-color: #34a853;
    animation-delay: 0.16s;
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Linear Progress Bar Loader */
.google-progress-loader {
    position: relative;
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    overflow: hidden;
    margin: 150px 0;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        to right,
        #4285f4 0%,
        #4285f4 25%,
        #ea4335 25%,
        #ea4335 50%,
        #fbbc04 50%,
        #fbbc04 75%,
        #34a853 75%,
        #34a853 100%
    );
    animation: progress-move 2s linear infinite;
}

@keyframes progress-move {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Circular Spinner */
.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-blade {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 50%;
    background-color: #4285f4;
    transform-origin: center bottom;
    border-radius: 4px;
    animation: spinner-fade 1.2s linear infinite;
}

.spinner-blade:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: 0s;
}

.spinner-blade:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -0.1s;
    background-color: #4285f4;
}

.spinner-blade:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.2s;
    background-color: #ea4335;
}

.spinner-blade:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.3s;
    background-color: #ea4335;
}

.spinner-blade:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.4s;
    background-color: #fbbc04;
}

.spinner-blade:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.5s;
    background-color: #fbbc04;
}

.spinner-blade:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.6s;
    background-color: #34a853;
}

.spinner-blade:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.7s;
    background-color: #34a853;
}

.spinner-blade:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.8s;
    background-color: #4285f4;
}

.spinner-blade:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.9s;
    background-color: #4285f4;
}

.spinner-blade:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -1s;
    background-color: #ea4335;
}

.spinner-blade:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: -1.1s;
    background-color: #ea4335;
}

@keyframes spinner-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.1;
    }
}