/* ==========================================
   PENYEMPURNAAN UI/UX: SPLASH SCREEN PREMIUM
   ========================================== */
.splash-screen {
    position: fixed;
    inset: 0;
    background-color: #f8fafc; /* Latar terang default */
    z-index: 999999; /* Memastikan berada di layer paling atas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Penyesuaian Latar Belakang Splash saat Mode Gelap Aktif */
body.dark-theme .splash-screen {
    background-color: #0f172a; /* Latar gelap Slate 900 */
}

.splash-logo-container {
    position: relative;
    margin-bottom: 1.5rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

.splash-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #10b981); /* Gradasi warna primer & aksen */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

body.dark-theme .splash-circle {
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.5);
}

/* Cincin Putar Loading */
.splash-ring-spinner {
    position: absolute;
    inset: -8px;
    border: 3px solid transparent;
    border-top-color: #2563eb;
    border-bottom-color: #10b981;
    border-radius: 50%;
    animation: spinLoader 1.2s linear infinite;
}

.splash-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

body.dark-theme .splash-text {
    color: #f8fafc;
}

.splash-subtext {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.dark-theme .splash-subtext {
    color: #94a3b8;
}

/* Animasi Progress Bar Tak Hingga (Infinite Indeterminate) */
.splash-progress-track {
    width: 140px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    margin-top: 1.25rem;
    overflow: hidden;
    position: relative;
}

body.dark-theme .splash-progress-track {
    background-color: #334155;
}

.splash-progress-bar {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #2563eb;
    border-radius: 9999px;
    animation: slideProgressBar 1.4s infinite ease-in-out;
}

/* Keyframes Animasi */
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
}

@keyframes slideProgressBar {
    0% { left: -40%; width: 30%; }
    50% { width: 40%; }
    100% { left: 110%; width: 20%; }
}