/* Menevo NotificationBell — R4 Sub-batch E
   Brand tokens: bg #FDF3D7, dark #003E54, accent #F9CD2D.
   Mobile-first; panel goes full-width sheet below 640px. */

.menevo-bell-root {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Avenir Next', Helvetica, Arial, sans-serif;
    color: #003E54;
}

.menevo-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 4px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    color: #003E54;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.menevo-bell:hover,
.menevo-bell:focus-visible {
    background: rgba(0, 62, 84, 0.06);
    outline: none;
}
.menevo-bell-root.is-open .menevo-bell {
    background: rgba(0, 62, 84, 0.10);
}

.menevo-bell__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #F9CD2D;
    color: #003E54;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px #FDF3D7;
}

/* Panel — desktop dropdown anchored under the bell. */
.menevo-bell__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 9000;
    width: 360px;
    max-width: 360px;
    background: transparent;
}
.menevo-bell__panel[hidden] {
    display: none;
}
.menevo-bell__panel-inner {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 62, 84, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.menevo-bell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px 16px;
    border-bottom: 1px solid #F1F1F1;
}
.menevo-bell__title {
    font-size: 16px;
    font-weight: 700;
    color: #003E54;
}
.menevo-bell__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6B7280;
    border-radius: 8px;
    cursor: pointer;
}
.menevo-bell__close:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menevo-bell__tabs {
    display: flex;
    padding: 4px 8px 0 8px;
    border-bottom: 1px solid #F1F1F1;
}
.menevo-bell__tab {
    flex: 1;
    padding: 10px 8px;
    margin: 0 4px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.menevo-bell__tab.is-active {
    color: #003E54;
    border-bottom-color: #F9CD2D;
}

.menevo-bell__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 0;
    min-height: 120px;
}
.menevo-bell__loading,
.menevo-bell__empty {
    padding: 24px 16px;
    text-align: center;
    color: #6B7280;
    font-size: 13px;
}

.menevo-bell__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #F7F7F7;
    cursor: default;
}
.menevo-bell__item:last-child {
    border-bottom: none;
}
.menevo-bell__item.is-unread {
    background: rgba(249, 205, 45, 0.06);
}
.menevo-bell__item-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #003E54;
    color: #FDF3D7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menevo-bell__item-body {
    flex: 1 1 auto;
    min-width: 0;
}
.menevo-bell__item-text {
    font-size: 13px;
    line-height: 18px;
    color: #003E54;
    word-break: break-word;
}
.menevo-bell__item-time {
    margin-top: 4px;
    font-size: 11px;
    color: #6B7280;
}
.menevo-bell__unread-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #003E54;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.menevo-bell__archive {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9CA3AF;
    border-radius: 6px;
    cursor: pointer;
}
.menevo-bell__archive:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #003E54;
}

.menevo-bell__actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.menevo-bell__btn {
    flex: 1 1 auto;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.menevo-bell__btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.menevo-bell__btn--accent {
    background: #003E54;
    color: #FFFFFF;
    border: 1px solid #003E54;
}
.menevo-bell__btn--accent:hover:not(:disabled) {
    filter: brightness(1.1);
}
.menevo-bell__btn--ghost {
    background: transparent;
    color: #003E54;
    border: 1px solid #003E54;
}
.menevo-bell__btn--ghost:hover:not(:disabled) {
    background: rgba(0, 62, 84, 0.04);
}

.menevo-bell__footer {
    padding: 10px 16px;
    border-top: 1px solid #F1F1F1;
    text-align: center;
}
.menevo-bell__see-all {
    font-size: 13px;
    font-weight: 700;
    color: #003E54;
    text-decoration: none;
}
.menevo-bell__see-all:hover {
    text-decoration: underline;
}

/* Mobile sheet: below 640px the panel becomes a full-width sheet
   anchored just under the navbar (top-positioned to viewport). */
@media (max-width: 640px) {
    .menevo-bell__panel {
        position: fixed;
        top: 64px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
    }
    .menevo-bell__panel-inner {
        max-height: calc(100vh - 96px);
    }
}

/* Toast — reused from sharing-modal styling. */
.menevo-bell-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #003E54;
    color: #FDF3D7;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Avenir Next', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 62, 84, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}
.menevo-bell-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
