/* PWA Splash Screen */
#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pwa-bg-color, #ffffff);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#pwa-splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.pwa-splash-container {
    text-align: center;
    max-width: 300px;
    width: 100%;
    padding: 20px;
}

/* Logo Animation */
.pwa-logo-animation {
    margin: 0 auto 30px;
    width: 150px;
    height: 150px;
}

.pwa-logo-svg {
    width: 100%;
    height: 100%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.circle-1 {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    animation: draw-circle-1 1.5s ease-out forwards;
}

@keyframes draw-circle-1 {
    to {
        stroke-dashoffset: 0;
    }
}

.circle-2 {
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
    animation: draw-circle-2 1.5s ease-out 0.5s forwards;
}

@keyframes draw-circle-2 {
    to {
        stroke-dashoffset: 0;
    }
}

.circle-3 {
    opacity: 0;
    animation: fade-in-circle 0.5s ease-out 1.5s forwards;
}

@keyframes fade-in-circle {
    to {
        opacity: 1;
    }
}

/* Loading Dots */
.pwa-loading {
    margin: 20px 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pwa-theme-color, #2196F3);
    opacity: 0.6;
}

.dot-1 {
    animation: bounce 1.4s infinite;
}

.dot-2 {
    animation: bounce 1.4s infinite 0.2s;
}

.dot-3 {
    animation: bounce 1.4s infinite 0.4s;
}

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* Text Styles */
.pwa-app-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    animation: fade-in 0.8s ease-out 0.8s both;
}

.pwa-loading-text {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    animation: fade-in 0.8s ease-out 1s both;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #pwa-splash-screen {
        background: #121212;
    }

    .pwa-app-name {
        color: #ffffff;
    }

    .pwa-loading-text {
        color: #b0b0b0;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .pwa-logo-animation {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .pwa-app-name {
        font-size: 20px;
    }
}