﻿/* =====================================================
   UpdateProgress — Pantalla de carga con SVG animado
   FacilityGes | Css/AjaxProgress/UpdateProgress.css
   ===================================================== */

/* ── Overlay ─────────────────────────────────────────── */
.modalBackground {
    background-color: rgba(15, 23, 42, 0.38) !important;
}

/* ── Panel (.updateProgress = tarjeta) ───────────────── */
.updateProgress {
    background   : #ffffff !important;
    border-radius: 12px    !important;
    border       : 1px solid #c2c7d1 !important;
    box-shadow   : 0 2px 16px rgba(0, 0, 0, 0.10) !important;
    padding      : 24px    !important;
    width        : 360px   !important;
    overflow     : visible !important;
    text-align   : center  !important;
}

/* Div interno del UpdateProgress — reset */
.updateProgress > div {
    margin : 0 !important;
    padding: 0 !important;
}

/* ── Tarjeta interior (up-card) ──────────────────────── */
.up-card {
    display       : flex;
    flex-direction: column;
    align-items   : center;
    width         : 100%;
}

/* ── Area del anillo + SVG ───────────────────────────── */
.up-spinner-wrap {
    position       : relative;
    width          : 136px;
    height         : 136px;
    display        : flex;
    align-items    : center;
    justify-content: center;
    margin-bottom  : 16px;
}

/* Anillo giratorio */
.up-ring {
    position        : absolute;
    top             : 0;
    right           : 0;
    bottom          : 0;
    left            : 0;
    border-radius   : 50%;
    border          : 3px solid #004a80;
    border-top-color: transparent;
    animation       : up-ring-spin 1s linear infinite;
}

@keyframes up-ring-spin {
    to { transform: rotate(360deg); }
}

/* Contenedor del SVG */
.up-svg-box {
    position       : relative;
    z-index        : 1;
    width          : 108px;
    height         : 108px;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

.up-svg-box svg {
    width : 100%;
    height: 100%;
    display: block;
}

/* ── Textos ──────────────────────────────────────────── */
.up-text-area {
    text-align   : center;
    margin-bottom: 16px;
}

.up-label-caps {
    display       : block;
    font-size     : 11px;
    font-weight   : 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color         : #42474f;
    margin-bottom : 6px;
    line-height   : 16px;
}

.up-timer {
    font-size  : 14px;
    line-height: 20px;
    color      : #111c2d;
}

.up-bold {
    font-weight: 700;
    color      : #00335b;
}

/* ── Barra de progreso ───────────────────────────────── */
.up-progress-track {
    width        : 100%;
    height       : 6px;
    background   : #d8e3fb;
    border-radius: 9999px;
    overflow     : hidden;
}

.up-progress-fill {
    height       : 100%;
    width        : 0%;
    background   : #004a80;
    border-radius: 9999px;
    animation    : up-bar-fill 3.5s ease-in-out infinite;
}

@keyframes up-bar-fill {
    0%   { width:  0%; }
    70%  { width: 80%; }
    90%  { width: 88%; }
    100% { width: 92%; }
}

/* Ocultar imagen GIF original */
.updateProgress img {
    display: none !important;
}
