/**
 * Estilos customizados para as notificações da Central de Atendimento
 */

/* Container de notificações - posição no canto superior direito */
#toast-container.toast-top-right {
    top: 70px; /* Abaixo do header do CRM */
    right: 12px;
}

/* Estilo base para toasts de notificação da central */
#toast-container > .toast-info.central-notification {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #25D366; /* Verde WhatsApp */
    padding: 15px 15px 15px 50px;
    opacity: 1;
}

#toast-container > .toast-info.central-notification:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Título da notificação */
#toast-container > .toast-info .toast-title {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

/* Mensagem da notificação */
#toast-container > .toast-info .toast-message {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

#toast-container > .toast-info .toast-message strong {
    color: #333;
    font-weight: 600;
}

#toast-container > .toast-info .toast-message small {
    display: block;
    margin-top: 4px;
}

#toast-container > .toast-info .toast-message .text-muted {
    color: #999 !important;
    font-size: 11px;
}

/* Ícone da notificação */
#toast-container > .toast-info::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* Botão de fechar */
#toast-container > .toast-info .toast-close-button {
    color: #999;
    font-weight: normal;
    text-shadow: none;
    opacity: 0.7;
}

#toast-container > .toast-info .toast-close-button:hover {
    color: #333;
    opacity: 1;
}

/* Barra de progresso */
#toast-container > .toast-info .toast-progress {
    background-color: #25D366;
    opacity: 0.7;
}

/* Variações por tipo de mensageiro */
#toast-container > .toast-info.messenger-notification {
    border-left-color: #0084FF; /* Azul Messenger */
}

#toast-container > .toast-info.messenger-notification .toast-progress {
    background-color: #0084FF;
}

#toast-container > .toast-info.instagram-notification {
    border-left-color: #E1306C; /* Rosa Instagram */
}

#toast-container > .toast-info.instagram-notification .toast-progress {
    background-color: #E1306C;
}

#toast-container > .toast-info.widget-notification {
    border-left-color: #6c757d; /* Cinza Widget */
}

#toast-container > .toast-info.widget-notification .toast-progress {
    background-color: #6c757d;
}

/* Animação de entrada */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#toast-container > .toast {
    animation: slideInRight 0.3s ease-out;
}

/* Badge de quantidade */
.notification-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Indicador no menu (se necessário) */
.menu-notification-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    #toast-container.toast-top-right {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
    }
    
    #toast-container > .toast {
        width: 100%;
        max-width: none;
    }
}
