/* Loader of the whole screen for actions that wait for another system (wdLoader in js/wd-loader.js) */
.wd-loader { position: fixed; inset: 0; z-index: 1055; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(243, 246, 249, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; cursor: default; }
.wd-loader.is-visible { opacity: 1; visibility: visible; }
.wd-loader-card { width: 100%; max-width: 380px; background: #ffffff; border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(24, 28, 50, .12); padding: 1.75rem 1.5rem 1.5rem; text-align: center; transform: translateY(8px) scale(.98); transition: transform .2s ease; }
.wd-loader.is-visible .wd-loader-card { transform: none; }
.wd-loader-icon { position: relative; width: 64px; height: 64px; margin: 0 auto 1rem; }
.wd-loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #e1f0ff; border-top-color: #3699ff; animation: wd-loader-spin .9s linear infinite; }
.wd-loader-icon i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #3699ff; font-size: 1.6rem; }
.wd-loader-title { font-size: 1.1rem; font-weight: 600; color: #181c32; margin-bottom: .35rem; }
.wd-loader-message { color: #7e8299; font-size: .925rem; line-height: 1.45; }
.wd-loader-steps { list-style: none; margin: 1rem 0 0; padding: 0; text-align: left; }
.wd-loader-steps li { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: .6rem; background: #f3f6f9; margin-bottom: .4rem; font-size: .875rem; }
.wd-loader-steps li i { font-size: 1.25rem; color: #b5b5c3; flex: 0 0 auto; }
.wd-loader-steps li b { color: #3f4254; flex: 0 0 auto; }
.wd-loader-steps li span { color: #7e8299; margin-left: auto; text-align: right; min-width: 0; }
.wd-loader-steps li.is-running i { color: #3699ff; }
.wd-loader-steps li.is-ok { background: #e8fff3; }
.wd-loader-steps li.is-ok i, .wd-loader-steps li.is-ok span { color: #0bb783; }
.wd-loader-steps li.is-failed { background: #fff5f8; }
.wd-loader-steps li.is-failed i, .wd-loader-steps li.is-failed span { color: #f64e60; }
.wd-loader-bar { position: relative; height: 4px; border-radius: 999px; background: #f3f6f9; overflow: hidden; margin: 1.25rem 0 .6rem; }
.wd-loader-bar::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 999px; background: #3699ff; animation: wd-loader-slide 1.4s ease-in-out infinite; }
.wd-loader-time { color: #b5b5c3; font-size: .8rem; min-height: 1.2em; }
@keyframes wd-loader-spin { to { transform: rotate(360deg); } }
@keyframes wd-loader-slide { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .wd-loader-ring { animation-duration: 2.5s; }
    .wd-loader-bar::after { animation: none; left: 0; width: 100%; opacity: .35; }
}
