/* ============================================
   SISTEMA DE NOTIFICAÇÕES TOAST - EFFEXLOG
   ============================================ */

/* Container dos toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* Toast individual */
.toast-notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
    position: relative;
    min-width: 300px;
}

/* Animação de entrada */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animação de saída */
.toast-notification.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Cores dos toasts baseadas no tipo */
.toast-notification.success {
    border-left-color: #22c55e;
}

.toast-notification.error,
.toast-notification.danger {
    border-left-color: #ef4444;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-notification.info {
    border-left-color: #3b82f6;
}

/* Ícone do toast */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.toast-notification.success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-notification.error .toast-icon,
.toast-notification.danger .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-notification.warning .toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.toast-notification.info .toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* Conteúdo do toast */
.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    font-weight: 500;
}

/* Botão de fechar */
.toast-close {
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

/* Barra de progresso */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 5s linear;
    border-bottom-left-radius: 12px;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .toast-notification {
        min-width: auto;
    }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 400px) {
    .toast-notification {
        padding: 12px 16px;
    }
    
    .toast-content {
        font-size: 13px;
    }
    
    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}