/* ===== SISTEMA DE NOTIFICACIONES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.notification.error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffafa 100%);
}

.notification.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.notification.info {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, var(--warning-color), #f1c40f);
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, var(--accent-color), #3498db);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.notification-message {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--success-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: width linear;
}

.notification.error .notification-progress {
    background: var(--danger-color);
}

.notification.warning .notification-progress {
    background: var(--warning-color);
}

.notification.info .notification-progress {
    background: var(--accent-color);
}

/* Animaciones */
@keyframes notificationSlideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(450px) scale(0.8);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-close {
        display: none;
    }
}