/* Sino de notificações + dropdown */
/* O backdrop-filter do header cria um stacking context próprio — sem elevar o
   header, o conteúdo da página cobre o dropdown (popup "cortado"). */
header:has(.header-notif) { position: relative; z-index: 200; }
.header-ctx { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-notif {
    position: relative;
    display: flex;
    align-items: center;
}
.btn-notif-bell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    text-decoration: none;
}
.btn-notif-bell:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.notif-bell-wrap {
    position: relative;
}
.notif-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--warning);
    color: var(--bg);
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1000;
    display: none;
}
.notif-dropdown.ativo { display: block; }
.notif-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.notif-item:hover { background: var(--bg-overlay); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; }
.notif-text { flex: 1; min-width: 0; font-size: 0.9rem; }
.notif-text strong { display: block; margin-bottom: 0.15rem; }
.notif-meta { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.nav-badge-lotes { margin-left: 0.35rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: var(--info-soft); color: var(--info); }
/* Círculo de "não visto" ao lado de Leads em stage (novo lote / leads para processar) */
.nav-dot-unseen {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning, #eab308);
    margin-left: 0.35rem;
    flex-shrink: 0;
    vertical-align: middle;
}
.nav-dot-unseen.ativo { display: inline-block; }
.lotes-recentes-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; text-decoration: none; color: inherit; transition: all 0.2s; }
.lotes-recentes-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.lotes-recentes-card .nome { font-weight: 600; }
.lotes-recentes-card .meta { font-size: 0.85rem; color: var(--text-muted); }
.lotes-recentes-card .leads { font-size: 0.9rem; color: var(--accent); font-weight: 600; }
