/* Sistema de Notificaciones Moderno */

/* Contenedor principal de notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

/* Estilos base de notificación */
.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
    padding: 0;
}

/* Contenido de la notificación */
.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2d3748;
}

.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #718096;
}

/* Barra de progreso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress linear;
    transform-origin: left;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Tipos de notificación */
.notification-success {
    border-left: 4px solid #48bb78;
    color: #48bb78;
}

.notification-success .notification-icon {
    color: #48bb78;
}

.notification-error {
    border-left: 4px solid #f56565;
    color: #f56565;
}

.notification-error .notification-icon {
    color: #f56565;
}

.notification-warning {
    border-left: 4px solid #0164a1;
    color: #0164a1;
}

.notification-warning .notification-icon {
    color: #0164a1;
}

.notification-info {
    border-left: 4px solid #4299e1;
    color: #4299e1;
}

.notification-info .notification-icon {
    color: #4299e1;
}

/* Modal de confirmación */
.notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.notification-modal-overlay.show {
    opacity: 1;
}

.notification-modal-overlay.hide {
    opacity: 0;
}

.notification-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.notification-modal-overlay.show .notification-modal {
    transform: scale(1) translateY(0);
}

.notification-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.notification-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.notification-modal-icon-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.notification-modal-icon-error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.notification-modal-icon-warning {
    background: linear-gradient(135deg, #0f547e 0%, #0164a1 100%);
    color: white;
}

.notification-modal-icon-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.notification-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.notification-modal-body {
    padding: 16px 24px;
}

.notification-modal-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #4a5568;
    text-align: center;
}

.notification-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Botones del modal */
.notification-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.notification-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-btn:active {
    transform: translateY(0);
}

.notification-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.notification-btn-secondary:hover {
    background: #cbd5e0;
}

.notification-btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.notification-btn-success:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.notification-btn-error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.notification-btn-error:hover {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.notification-btn-warning {
    background: linear-gradient(135deg, #0f547e 0%, #0164a1 100%);
    color: white;
}

.notification-btn-warning:hover {
    background: linear-gradient(135deg, #0b3d5b 0%, #014b7a 100%);
}

.notification-btn-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.notification-btn-info:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-modal {
        margin: 20px;
        max-width: none;
    }

    .notification-modal-footer {
        flex-direction: column;
    }

    .notification-btn {
        width: 100%;
    }
}

/* Animaciones adicionales */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -8px, 0);
    }

    70% {
        transform: translate3d(0, -4px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.notification-success .notification-icon {
    animation: bounce 0.6s ease-in-out;
}

/* Efectos de hover mejorados */
.notification:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification:hover .notification-close {
    opacity: 1;
}

.notification-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* Tema oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        border-color: #4a5568;
    }

    .notification-message {
        color: #e2e8f0;
    }

    .notification-modal {
        background: #2d3748;
    }

    .notification-modal-title {
        color: #e2e8f0;
    }

    .notification-modal-message {
        color: #cbd5e0;
    }
}