/* SOVIA V52 — Loading System. Tidak mengubah perilaku toast atau proses backend. */
:root { --svl-color: var(--sovia-primary, var(--app-primary, #2563eb)); --svl-ink: #12345f; --svl-soft: #e8f1ff; }
.svl-overlay[hidden], .svl-progress[hidden], .svl-async[hidden] { display: none !important; }
.svl-overlay { position: fixed; inset: 0; z-index: 2050; background: rgba(245,248,255,.91); backdrop-filter: blur(5px); display: grid; place-items: center; pointer-events: auto; }
.svl-brand-box { text-align: center; padding: 30px 40px; background: #fff; border: 1px solid #e3ecfb; border-radius: 22px; box-shadow: 0 20px 80px rgba(16,48,101,.12); min-width: min(290px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.svl-brand-line { display: inline-flex; gap: 12px; align-items: center; justify-content: center; animation: svl-breathe 1.7s ease-in-out infinite; }
.svl-brand-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(135deg, #102e64, #2779d7); color: #fff; font-size: 32px; font-weight: 800; }
.svl-brand-name { color: #16356c; font-weight: 800; font-size: 25px; letter-spacing: 1px; }
.svl-brand-caption { color: #66788f; font-size: 13px; margin-top: 18px; }
.svl-dots { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 7px; }
.svl-dots i { display: block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; animation: svl-dot 1s ease-in-out infinite; }
.svl-dots i:nth-child(2) { animation-delay: .15s; } .svl-dots i:nth-child(3) { animation-delay: .3s; }
.svl-button-busy { cursor: progress !important; } .svl-button-busy .svl-dots { margin-left: 8px; }
.svl-progress { background: #f8fbff; padding: 13px 15px; border: 1px solid #dce8fb; border-radius: 12px; margin-top: 12px; max-width: 550px; color: #25436f; }
.svl-progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.svl-progress-track { height: 7px; background: #e2ebf8; border-radius: 999px; overflow: hidden; }
.svl-progress-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #155ac3, #67c7f4); transition: width .22s ease; }
.svl-progress.svl-indeterminate .svl-progress-fill { width: 38%; animation: svl-indeterminate 1.7s ease-in-out infinite; }
.svl-progress-message { color: #6b7e97; font-size: 12px; margin-top: 8px; }
.svl-skeleton { border: 1px solid #e4eaf4; background: #fff; border-radius: 12px; padding: 18px; margin: 8px 0; }
.svl-skeleton-row { display: grid; grid-template-columns: 18px minmax(80px, 1.4fr) repeat(var(--svl-extra, 3), minmax(40px, 1fr)); gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf1f7; align-items: center; }
.svl-skeleton-row:last-child { border-bottom: 0; }
.svl-skeleton-cell { height: 11px; border-radius: 6px; background: linear-gradient(100deg, #e1eaf5 8%, #f5f9ff 38%, #e1eaf5 68%); background-size: 220% 100%; animation: svl-shimmer 1.45s linear infinite; }
.svl-skeleton-cell:first-child { height: 18px; border-radius: 5px; }
.svl-async { display: block; padding: 15px 17px; margin: 12px 0 16px; background: #f8fbff; border: 1px solid #dbe7f7; border-radius: 14px; }
.svl-async-heading { font-size: 13px; font-weight: 700; color: #173d72; margin-bottom: 12px; }
.svl-async-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.svl-async-step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7b879a; }
.svl-async-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #e6ecf4; color: #8191a6; display: grid; place-items: center; font-size: 11px; font-weight: 750; }
.svl-async-step.is-complete .svl-async-mark { background: #dcfce7; color: #15803d; }
.svl-async-step.is-active { color: #1650a9; font-weight: 700; }
.svl-async-step.is-active .svl-async-mark { border: 2px solid #bad6ff; background: #fff; }
.svl-async-step.is-active .svl-async-mark::after { content: ''; width: 11px; height: 11px; border: 2px solid transparent; border-top-color: #2563eb; border-right-color: #2563eb; border-radius: 50%; animation: svl-spin .85s linear infinite; }
.svl-async-step.is-failed { color: #b91c1c; } .svl-async-step.is-failed .svl-async-mark { background: #fee2e2; color: #b91c1c; }
.svl-async-step.is-paused { color: #a16207; } .svl-async-step.is-paused .svl-async-mark { background: #fef3c7; color: #a16207; }
.svl-async-step.is-uncertain { color: #a16207; } .svl-async-step.is-uncertain .svl-async-mark { background: #fef3c7; color: #a16207; }
.svl-progress.svl-progress-error { border-color: #fecaca; }
.svl-async-caption { font-size: 12px; color: #5d7091; margin-top: 10px; }
/* Penyesuaian progress real upload Repository yang sudah ada */
.repo-main .upload-progress-wrap { border-radius: 12px; background: #f8fbff; border-color: #dbe7f7; }
.repo-main .upload-progress-track { height: 8px; background: #e2ebf8; }
.repo-main .upload-progress-bar { background: linear-gradient(90deg, #155ac3, #67c7f4); }
@keyframes svl-spin { to { transform: rotate(360deg); } }
@keyframes svl-breathe { 50% { opacity: .55; transform: scale(1.04); } }
@keyframes svl-dot { 0%,70%,100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
@keyframes svl-shimmer { to { background-position-x: -220%; } }
@keyframes svl-indeterminate { from { transform: translateX(-110%); } to { transform: translateX(270%); } }
@media (max-width: 600px) { .svl-async-steps { grid-template-columns: 1fr; gap: 9px; } .svl-brand-box { padding: 27px 22px; } .svl-skeleton-row { grid-template-columns: 18px minmax(70px,1.5fr) 1fr; } .svl-skeleton-cell:nth-child(n+4){display:none;} }
@media (prefers-reduced-motion: reduce) { .svl-brand-line, .svl-dots i, .svl-progress-fill, .svl-skeleton-cell, .svl-async-mark::after { animation: none !important; } }

/* Satukan splash awal PWA dengan pilihan Brand Pulse. */
.sovia-pwa-splash-card .sovia-pwa-splash-logo { animation: svl-breathe 1.7s ease-in-out infinite; }
