/* Sino global de notificação WhatsApp ─────────────────────────────────── */

.wa-bell-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.wa-bell-btn {
    background: transparent;
    border: 0;
    color: #495057;
    font-size: 1.25rem;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    position: relative;
}

.wa-bell-btn:hover {
    background: rgba(0, 0, 0, .06);
    color: #25D366;
}

.wa-bell-btn.has-new {
    color: #25D366;
    animation: wa-bell-shake 1s cubic-bezier(.36, .07, .19, .97) infinite;
}

.wa-bell-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
    animation: wa-bell-pulse 1.5s infinite;
}

.wa-bell-badge.show {
    display: inline-flex;
}

.wa-bell-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    min-width: 320px;
    max-width: 380px;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.wa-bell-dropdown.show {
    display: block;
}

.wa-bell-dropdown-header {
    padding: 12px 16px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-bell-dropdown-body {
    padding: 16px;
    font-size: .85rem;
}

.wa-bell-dropdown-empty {
    text-align: center;
    color: #6c757d;
    padding: 24px 0;
    font-size: .85rem;
}

.wa-bell-msg-from {
    font-weight: 600;
    color: #25D366;
    margin-bottom: 4px;
}

.wa-bell-msg-preview {
    color: #495057;
    margin-bottom: 4px;
    line-height: 1.4;
}

.wa-bell-msg-when {
    color: #6c757d;
    font-size: .75rem;
}

.wa-bell-dropdown-footer {
    padding: 10px 16px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.wa-bell-dropdown-footer a {
    color: #25D366;
    font-weight: 600;
    font-size: .8rem;
    text-decoration: none;
}

.wa-bell-dropdown-footer a:hover {
    text-decoration: underline;
}

/* Animações ───────────────────────────────────────────────────────────── */

@keyframes wa-bell-shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

@keyframes wa-bell-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(220, 53, 69, .7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(220, 53, 69, 0); }
}

/* Dark mode (caso o painel tenha) ─────────────────────────────────────── */
.dark-mode .wa-bell-btn { color: #adb5bd; }
.dark-mode .wa-bell-btn:hover { background: rgba(255, 255, 255, .08); }
.dark-mode .wa-bell-dropdown { background: #343a40; border-color: rgba(255, 255, 255, .1); }
.dark-mode .wa-bell-dropdown-body { color: #e9ecef; }
.dark-mode .wa-bell-msg-preview { color: #ced4da; }
.dark-mode .wa-bell-dropdown-footer { background: #2b3035; }
