body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
}

/* Estilo para simular o 'toast' de notificação */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

/* Estilo do Spinner de Carregamento */
#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: none; /* O padrão agora é 'none' */
    justify-content: center;
    align-items: center;
}

#spinner {
    border: 5px solid #f3f3f3; /* Cinza claro */
    border-top: 5px solid #e73a8c; /* Rosa */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Botão de login com spinner */
.btn-loading {
    position: relative;
    color: transparent !important; /* Esconde o texto */
    cursor: not-allowed;
}

.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -12px; /* Metade da largura */
    margin-top: -12px; /* Metade da altura */
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Estilos das Abas */
.tab-button {
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    cursor: pointer;
    background-color: #e5e7eb; /* bg-gray-200 */
    color: #4b5563; /* text-gray-600 */
    transition: background-color 0.2s, color 0.2s;
}
.tab-button.active {
    background-color: #ffffff; /* bg-white */
    color: #e73a8c; /* text-pink-600 */
    border-bottom: 2px solid #e73a8c;
    margin-bottom: -1px; /* Alinha com a borda do container */
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ======== INÍCIO: Estilos de Notificação ======== */

/* Posição do Botão e Badge */
#notification-button {
    position: relative; /* Contexto para o badge */
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; /* Largura mínima */
    height: 22px;
    padding: 0 6px; /* Espaçamento horizontal se o número for grande */
    font-size: 12px;
    font-weight: 600;
    color: white;
    background-color: #e63946; /* Vermelho forte */
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Lista de Notificações (Popover e Página) */
.notification-item {
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9fafb; /* bg-gray-50 */
}

.notification-item.unread {
    background-color: #fdf2f8; /* bg-pink-50 */
    border-left: 4px solid #e73a8c; /* Borda rosa */
    padding-left: calc(1rem - 4px); /* Ajusta o padding */
}

.notification-item p {
    font-size: 0.9rem; /* 14px */
    color: #374151; /* text-gray-700 */
    line-height: 1.4;
}

.notification-item .notification-meta {
    font-size: 0.75rem; /* 12px */
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.25rem;
}

/* Ícones por tipo */
.notification-item .fa-bell { color: #3b82f6; } /* Azul (Parto) */
.notification-item .fa-birthday-cake { color: #ec4899; } /* Rosa (Aniversário) */
.notification-item .fa-shipping-fast { color: #8b5cf6; } /* Roxo (Transferência) */
.notification-item .fa-file-invoice { color: #f59e0b; } /* Amarelo (Guia) */
.notification-item .fa-file-alt { color: #ef4444; } /* Vermelho (Doc Pendente) */
.notification-item .fa-whatsapp { color: #25D366; } /* Verde (Novo Lead) */

/* ======== FIM: Estilos de Notificação ======== */


/* ======== INÍCIO: Estilos Leads do Bot ======== */

.lead-item {
    padding: 1rem 1.5rem;
    transition: background-color 0.2s;
}

.lead-item:hover {
    background-color: #f9fafb; /* bg-gray-50 */
}

/* Botão WhatsApp */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: white;
    background-color: #25D366; /* Verde WhatsApp */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}
.whatsapp-button:hover {
    background-color: #1DA851;
}
.whatsapp-button i {
    margin-right: 0.5rem; /* mr-2 */
}

/* Botão Converter */
.convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: white;
    background-color: #e73a8c; /* Rosa do App */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}
.convert-button:hover {
    background-color: #c02a70;
}
.convert-button i {
    margin-right: 0.5rem; /* mr-2 */
}

/* Filtros Leads do Bot */
.lead-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* semibold */
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid #D1D5DB; /* border-gray-300 */
    background-color: #FFFFFF; /* bg-white */
    color: #4B5563; /* text-gray-600 */
    cursor: pointer;
    transition: all 0.2s;
}
.lead-filter-btn:hover {
    background-color: #F9FAFB; /* bg-gray-50 */
}
.lead-filter-btn.active {
    background-color: #FDF2F8; /* bg-pink-50 */
    border-color: #e73a8c; /* border-pink-600 */
    color: #e73a8c; /* text-pink-600 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Botão Perder Lead (NOVO) */
.perder-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* medium */
    color: #dc2626; /* text-red-600 */
    background-color: #FEF2F2; /* bg-red-50 */
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid #FCA5A5; /* border-red-300 */
    transition: background-color 0.2s;
}
.perder-button:hover {
    background-color: #FEE2E2; /* bg-red-100 */
}
.perder-button i {
    margin-right: 0.5rem; /* mr-2 */
}

/* Item de Lead Perdido (NOVO) */
.lead-item-perdido {
    padding: 1rem 1.5rem;
    background-color: #F9FAFB; /* bg-gray-50 */
    opacity: 0.8;
}
.lead-item-perdido .lead-motivo {
    color: #dc2626; /* text-red-600 */
    font-style: italic;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* ======== FIM: Estilos Leads do Bot ======== */