/* Splash Screen Styles for Timelsa PWA */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    position: relative;
}

.splash-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.2);
}

.splash-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: heartbeat 1.5s ease-in-out infinite;
    display: block;
}

.splash-logo-text {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #0066CC;
    animation: heartbeat 1.5s ease-in-out infinite;
    font-family: 'Cairo', sans-serif;
}

/* Heartbeat Animation (نبض مثل القلب) */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    56% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* Additional pulse effect for the circle */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 102, 204, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 102, 204, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 102, 204, 0.2);
    }
}

.splash-logo-circle {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Ensure body doesn't scroll when splash is visible */
body.splash-active {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .splash-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .splash-logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .splash-logo {
        width: 70px;
        height: 70px;
    }
}

