/* 
 * Sistema de Notificação Toast - Adaptado para "quem-disse-isso"
 * Posicionamento: Canto Superior Direito
 * Baseado no sistema original do voalle-shortcuts
 */

/* Notification Styles - Adaptado para canto superior direito */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    /* Mudança principal: right em vez de left + transform */
    transform: translateX(100px);
    /* Inicia fora da tela pela direita */
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #10b981;
    min-width: 280px;
    /* Largura mínima para consistência */
    max-width: 400px;
    /* Largura máxima */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
    /* Desliza para a posição final */
}

/* Tipos de notificação */
.notification.notification-success {
    border-left-color: #10b981;
    color: #065f46;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.notification.notification-success i {
    color: #10b981;
    font-size: 18px;
}

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

.notification.notification-info i {
    color: #3b82f6;
    font-size: 18px;
}

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

.notification.notification-warning i {
    color: #f59e0b;
    font-size: 18px;
}

.notification.notification-error {
    border-left-color: #ef4444;
    color: #991b1b;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notification.notification-error i {
    color: #ef4444;
    font-size: 18px;
}

/* Hover effect para interação */
.notification:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-5px) scale(1.02);
}

/* Animação de saída */
.notification.notification-exit {
    transform: translateX(100px);
    opacity: 0;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
        /* No mobile, desliza de cima */
        padding: 14px 16px;
        font-size: 14px;
    }

    .notification.show {
        transform: translateY(0);
    }

    .notification:hover {
        transform: translateY(0) scale(1.01);
    }

    .notification.notification-exit {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Animação de entrada mais suave */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Para dispositivos móveis */
@keyframes slideInTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutTop {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100px);
        opacity: 0;
    }
}

/* Texto da notificação */
.notification span {
    flex: 1;
    line-height: 1.4;
    font-size: 14px;
}

/* Ícone da notificação */
.notification i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Container para múltiplas notificações */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: none;
}

.notifications-container .notification {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 10px;
    pointer-events: all;
}

@media (max-width: 768px) {
    .notifications-container {
        right: 10px;
        left: 10px;
    }
}