/* ==========================================
   TRENGGINAS WQMS - SPLASH SCREEN STYLES
   Universal styles untuk semua halaman
   ========================================== */

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #123F68 0%, #0a2540 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Highest z-index to overlay everything */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: splash-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.splash-text {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 40px;
}

.splash-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: splash-spin 1s linear infinite;
}

.splash-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    animation: splash-fadeInUp 0.5s ease;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes splash-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes splash-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
}

@keyframes splash-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .splash-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .splash-text {
        font-size: 24px;
    }
    
    .splash-subtitle {
        font-size: 12px;
    }
    
    .splash-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .splash-text {
        font-size: 20px;
    }
    
    .splash-loader {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}
