/* ============================================================
   NOTIFICACIONES TOAST — S-CORE Yaracuy v2.0 ULTRA-DEFENSIVO
   Usa !important en TODO para vencer a Tailwind y frameworks
   ============================================================ */

/* ========== TOAST PRINCIPAL ========== */
div.score-notif {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: stretch !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    min-width: 340px !important;
    max-width: 400px !important;
    opacity: 0 !important;
    transform: translateX(48px) scale(0.95) !important;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

div.score-notif.show {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* Colores por tipo - shadows */
div.score-notif.score-notif-success {
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.22), 0 2px 8px rgba(0,0,0,0.08) !important;
}
div.score-notif.score-notif-error {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.22), 0 2px 8px rgba(0,0,0,0.08) !important;
}
div.score-notif.score-notif-warning {
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.22), 0 2px 8px rgba(0,0,0,0.08) !important;
}
div.score-notif.score-notif-info {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.22), 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* ========== PANEL LATERAL CON COLOR ========== */
div.score-notif > div.score-notif-panel {
    width: 58px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 58px !important;
    min-height: 100% !important;
}

div.score-notif > div.score-notif-panel::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 60%) !important;
    pointer-events: none !important;
}

/* Gradientes del panel por tipo */
div.score-notif.score-notif-success > div.score-notif-panel {
    background: linear-gradient(160deg, #059669 0%, #0d9488 100%) !important;
}
div.score-notif.score-notif-error > div.score-notif-panel {
    background: linear-gradient(160deg, #dc2626 0%, #9333ea 100%) !important;
}
div.score-notif.score-notif-warning > div.score-notif-panel {
    background: linear-gradient(160deg, #d97706 0%, #ea580c 100%) !important;
}
div.score-notif.score-notif-info > div.score-notif-panel {
    background: linear-gradient(160deg, #7c3aed 0%, #2563eb 100%) !important;
}

/* Icono SVG dentro del panel */
div.score-notif > div.score-notif-panel > svg {
    width: 22px !important;
    height: 22px !important;
    position: relative !important;
    z-index: 1 !important;
    stroke-width: 2.5 !important;
    color: #ffffff !important;
    fill: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* ========== CUERPO DE LA NOTIFICACION ========== */
div.score-notif > div.score-notif-body {
    flex: 1 !important;
    padding: 12px 14px 10px 14px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    margin: 0 !important;
}

div.score-notif > div.score-notif-body > div.score-notif-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 5px !important;
}

/* Pill de tipo */
div.score-notif > div.score-notif-body > div.score-notif-top > span.score-notif-pill {
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 2px 8px !important;
    border-radius: 99px !important;
    line-height: 1.6 !important;
    display: inline-block !important;
}

div.score-notif.score-notif-success > div.score-notif-body > div.score-notif-top > span.score-notif-pill {
    background: #ecfdf5 !important;
    color: #065f46 !important;
}
div.score-notif.score-notif-error > div.score-notif-body > div.score-notif-top > span.score-notif-pill {
    background: #fef2f2 !important;
    color: #991b1b !important;
}
div.score-notif.score-notif-warning > div.score-notif-body > div.score-notif-top > span.score-notif-pill {
    background: #fffbeb !important;
    color: #92400e !important;
}
div.score-notif.score-notif-info > div.score-notif-body > div.score-notif-top > span.score-notif-pill {
    background: #f5f3ff !important;
    color: #4c1d95 !important;
}

/* Boton cerrar */
div.score-notif > div.score-notif-body > div.score-notif-top > button.score-notif-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #cbd5e1 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
    margin: 0 !important;
    font-family: inherit !important;
}
div.score-notif > div.score-notif-body > div.score-notif-top > button.score-notif-close:hover {
    color: #475569 !important;
}

/* Titulo */
div.score-notif > div.score-notif-body > div.score-notif-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    flex: 1 !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.01em !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Barra de progreso - TRACK */
div.score-notif > div.score-notif-body > div.score-notif-track {
    height: 3px !important;
    background: #f1f5f9 !important;
    border-radius: 99px !important;
    overflow: hidden !important;
}

/* Barra de progreso - BAR (animacion aplicada por JS inline y corregida con transform-origin) */
div.score-notif > div.score-notif-body > div.score-notif-track > div.score-notif-bar {
    height: 100% !important;
    border-radius: 99px !important;
    width: 100% !important;
    transform-origin: left !important;
}

div.score-notif.score-notif-success > div.score-notif-body > div.score-notif-track > div.score-notif-bar {
    background: #34d399 !important;
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.5) !important;
}
div.score-notif.score-notif-error > div.score-notif-body > div.score-notif-track > div.score-notif-bar {
    background: #f87171 !important;
    box-shadow: 0 0 6px rgba(220, 38, 38, 0.5) !important;
}
div.score-notif.score-notif-warning > div.score-notif-body > div.score-notif-track > div.score-notif-bar {
    background: #fbbf24 !important;
    box-shadow: 0 0 6px rgba(217, 119, 6, 0.5) !important;
}
div.score-notif.score-notif-info > div.score-notif-body > div.score-notif-track > div.score-notif-bar {
    background: #a78bfa !important;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.5) !important;
}

/* === KEYFRAMES DE LA ANIMACION CORREGIDA === */
@keyframes scoreNotifProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ============================================================
   MODAL DE CONFIRMACION — S-CORE Yaracuy
   ============================================================ */
div.score-confirm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 100000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
div.score-confirm-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

div.score-confirm-overlay > div.score-confirm-modal {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    max-width: 400px !important;
    width: 90% !important;
    text-align: center !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.25) !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
div.score-confirm-overlay.show > div.score-confirm-modal {
    transform: scale(1) translateY(0) !important;
}

div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-icon {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
    color: #ffffff !important;
}
div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-icon > svg {
    width: 32px !important;
    height: 32px !important;
    stroke-width: 2 !important;
    color: #ffffff !important;
    fill: none !important;
    display: block !important;
}

div.score-confirm-overlay > div.score-confirm-modal > h3.score-confirm-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

div.score-confirm-overlay > div.score-confirm-modal > p.score-confirm-msg {
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
}

div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions > button.score-confirm-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions > button.score-confirm-cancel {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}
div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions > button.score-confirm-cancel:hover {
    background: #e5e7eb !important;
}
div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions > button.score-confirm-ok {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
}
div.score-confirm-overlay > div.score-confirm-modal > div.score-confirm-actions > button.score-confirm-ok:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}