feat(sinpe): modal de validación en tiempo real con animación, sondeo de 18s y cero alertas nativas
This commit is contained in:
@@ -4578,3 +4578,241 @@ body.dark-mode .parent-subview-back-btn:hover {
|
||||
color: #38bdf8;
|
||||
border-color: #38bdf8;
|
||||
}
|
||||
|
||||
/* ========================================================
|
||||
MODAL DE VALIDACIÓN Y ESTADO SINPE EN TIEMPO REAL
|
||||
======================================================== */
|
||||
.modal-sinpe-backdrop {
|
||||
z-index: 9999 !important;
|
||||
}
|
||||
|
||||
.modal-sinpe-card {
|
||||
max-width: 420px !important;
|
||||
width: 92% !important;
|
||||
border-radius: 24px !important;
|
||||
padding: 26px 20px !important;
|
||||
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
|
||||
position: relative !important;
|
||||
text-align: center !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.modal-sinpe-close-btn {
|
||||
position: absolute;
|
||||
top: 14px;
|
||||
right: 14px;
|
||||
background: rgba(100, 116, 139, 0.12);
|
||||
border: none;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: #64748b;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.modal-sinpe-close-btn:hover {
|
||||
background: rgba(100, 116, 139, 0.25);
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.sinpe-spinner-container {
|
||||
position: relative;
|
||||
width: 84px;
|
||||
height: 84px;
|
||||
margin: 0 auto 12px auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sinpe-pulse-ring {
|
||||
position: absolute;
|
||||
inset: -6px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid #86efac;
|
||||
opacity: 0.8;
|
||||
animation: sinpePulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
|
||||
}
|
||||
|
||||
@keyframes sinpePulseRing {
|
||||
0% { transform: scale(0.85); opacity: 0.9; }
|
||||
50% { transform: scale(1.18); opacity: 0.3; }
|
||||
100% { transform: scale(1.35); opacity: 0; }
|
||||
}
|
||||
|
||||
.sinpe-icon-badge {
|
||||
width: 76px;
|
||||
height: 76px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.sinpe-icon-badge.loading {
|
||||
background: #f0fdf4;
|
||||
border: 2px solid #86efac;
|
||||
}
|
||||
|
||||
.sinpe-icon-badge.success {
|
||||
background: #dcfce7;
|
||||
border: 2.5px solid #86efac;
|
||||
animation: sinpePopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
|
||||
.sinpe-icon-badge.pending {
|
||||
background: #fef3c7;
|
||||
border: 2.5px solid #fde68a;
|
||||
animation: sinpePopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
|
||||
.sinpe-icon-badge.error {
|
||||
background: #fee2e2;
|
||||
border: 2.5px solid #fca5a5;
|
||||
animation: sinpePopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
|
||||
.sinpe-spin-svg {
|
||||
animation: sinpeSpin 1.1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes sinpeSpin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@keyframes sinpePopIn {
|
||||
0% { transform: scale(0.6); opacity: 0; }
|
||||
100% { transform: scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
.sinpe-progress-track {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
background: #e2e8f0;
|
||||
border-radius: 99px;
|
||||
overflow: hidden;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.sinpe-progress-bar {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background: linear-gradient(90deg, #16a34a, #22c55e);
|
||||
border-radius: 99px;
|
||||
transition: width 0.15s linear;
|
||||
}
|
||||
|
||||
.sinpe-info-summary {
|
||||
background: #f8fafc;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
padding: 10px 14px;
|
||||
margin-top: 14px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sinpe-card-receipt {
|
||||
background: #f0fdf4;
|
||||
border: 1.5px solid #86efac;
|
||||
border-radius: 16px;
|
||||
padding: 14px 16px;
|
||||
margin: 14px 0 16px 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sinpe-info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 0.82rem;
|
||||
margin-bottom: 5px;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.sinpe-info-row:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.btn-sinpe-action {
|
||||
width: 100%;
|
||||
padding: 13px 18px;
|
||||
border-radius: 12px;
|
||||
font-weight: 800;
|
||||
font-size: 0.95rem;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
transition: transform 0.15s, opacity 0.15s;
|
||||
}
|
||||
|
||||
.btn-sinpe-action:hover {
|
||||
transform: translateY(-1px);
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.btn-sinpe-action:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.btn-sinpe-success {
|
||||
background: linear-gradient(135deg, #16a34a, #15803d);
|
||||
color: white;
|
||||
box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
|
||||
}
|
||||
|
||||
.btn-sinpe-pending {
|
||||
background: linear-gradient(135deg, #d97706, #b45309);
|
||||
color: white;
|
||||
box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
|
||||
}
|
||||
|
||||
.btn-sinpe-error {
|
||||
background: linear-gradient(135deg, #dc2626, #b91c1c);
|
||||
color: white;
|
||||
box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
|
||||
}
|
||||
|
||||
body.dark-mode .modal-sinpe-card {
|
||||
background: #0f172a !important;
|
||||
color: #f8fafc !important;
|
||||
border: 1px solid #334155 !important;
|
||||
}
|
||||
|
||||
body.dark-mode .modal-sinpe-close-btn {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
body.dark-mode .modal-sinpe-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
body.dark-mode .sinpe-info-summary {
|
||||
background: #1e293b;
|
||||
border-color: #334155;
|
||||
}
|
||||
|
||||
body.dark-mode .sinpe-info-row {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
body.dark-mode .sinpe-card-receipt {
|
||||
background: #064e3b;
|
||||
border-color: #059669;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user