/* ============================================
   LOADING OVERLAY — CV. Sapta Karya Group
   ============================================ */
#app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#app-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    animation: logoPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
}

.loading-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: logoPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.15));
}

@keyframes logoPulse {
    0%   { transform: scale(1);    }
    50%  { transform: scale(1.07); }
    100% { transform: scale(1);    }
}

.loading-bar-wrap {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    border-radius: 9999px;
    animation: loadBar 1.2s ease-in-out infinite;
}

@keyframes loadBar {
    0%   { width: 0%;  margin-left: 0%; }
    50%  { width: 60%; margin-left: 20%; }
    100% { width: 0%;  margin-left: 100%; }
}

.loading-text {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.75rem;
    animation: textBlink 1.2s ease-in-out infinite;
}

@keyframes textBlink {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1;   }
}
