/* ==========================================================================
   SISTEMA DE TOASTS & NOTIFICAÇÕES MODERNAS (Site & Sistema Roteiro)
   ========================================================================== */

/* Container fixo flutuante no canto inferior direito */
.toast-container-modern,
.admin-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Card individual do Toast */
.toast-item-modern,
.admin-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.toast-item-modern.show,
.admin-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Pílula / Ícone do Toast */
.toast-icon-wrapper,
.admin-toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

/* Conteúdo / Mensagem */
.toast-message-content,
.admin-toast-content {
    flex-grow: 1;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

/* Botão de Fechar */
.toast-close-btn,
.admin-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.toast-close-btn:hover,
.admin-toast-close:hover {
    color: #475569;
    transform: scale(1.1);
}

/* ---------------- Variantes de Cores por Tipo ---------------- */

/* Sucesso (Verde) */
.toast-item-modern.toast-success,
.admin-toast.toast-success {
    border-left: 4px solid #10b981;
}
.toast-item-modern.toast-success .toast-icon-wrapper,
.admin-toast.toast-success .admin-toast-icon {
    background: #d1fae5;
    color: #059669;
}

/* Alerta / Warning (Âmbar) */
.toast-item-modern.toast-warning,
.admin-toast.toast-warning {
    border-left: 4px solid #f59e0b;
}
.toast-item-modern.toast-warning .toast-icon-wrapper,
.admin-toast.toast-warning .admin-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

/* Erro (Vermelho) */
.toast-item-modern.toast-error,
.admin-toast.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-item-modern.toast-error .toast-icon-wrapper,
.admin-toast.toast-error .admin-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Informativo (Azul Institucional) */
.toast-item-modern.toast-info,
.admin-toast.toast-info {
    border-left: 4px solid #0D64AC;
}
.toast-item-modern.toast-info .toast-icon-wrapper,
.admin-toast.toast-info .admin-toast-icon {
    background: #e0f2fe;
    color: #0D64AC;
}

/* Compatibilidade retroativa para selector .notification caso exista algum resquício */
.notification {
    display: none !important;
}

/* ---------------- Responsividade Mobile ---------------- */
@media (max-width: 576px) {
    .toast-container-modern,
    .admin-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
    }
    
    .toast-item-modern,
    .admin-toast {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
}