/* ========================================
   SISTEMA DE NOTIFICAÇÕES PADRONIZADO
   VICENTE - Loja de Moda Masculina
   ======================================== */

/* Container das notificações */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* Notificação individual */
.notification {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

/* Estados da notificação */
.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Tipos de notificação */
.notification-success {
    border-left: 4px solid #1e40af;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.notification-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #1d4ed8 100%);
}

.notification-error {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notification-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.notification-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.notification-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.notification-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

/* Ícones das notificações */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.notification-success .notification-icon {
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
}

.notification-error .notification-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.notification-warning .notification-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.notification-info .notification-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Conteúdo da notificação */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Botão de fechar removido - notificações fecham automaticamente */

/* Barra de progresso */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    transition: width 0.1s linear;
}

.notification-success .notification-progress {
    background: rgba(30, 64, 175, 0.2);
}

.notification-error .notification-progress {
    background: rgba(220, 38, 38, 0.2);
}

.notification-warning .notification-progress {
    background: rgba(245, 158, 11, 0.2);
}

.notification-info .notification-progress {
    background: rgba(59, 130, 246, 0.2);
}

/* Animações */
@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes notificationShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.notification-error.show {
    animation: notificationShake 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notifications-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }
    
    .notification {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .notification-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .notification-close {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
