/*
 * Top-bar notification bell (public/js/nova-notifications.js). Colours follow
 * Nova's own gray/dark scales so the panel sits inside the admin chrome.
 */

.wo-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wo-bell-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(107 114 128);
    cursor: pointer;
}

.wo-bell-button:hover {
    color: rgb(17 24 39);
    background: rgb(243 244 246);
}

.dark .wo-bell-button {
    color: rgb(156 163 175);
}

.dark .wo-bell-button:hover {
    color: rgb(243 244 246);
    background: rgb(31 41 55);
}

.wo-bell-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: rgb(220 38 38);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wo-bell-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 60;
    width: 20rem;
    max-width: calc(100vw - 2rem);
    padding: 0.25rem;
    background: #fff;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.dark .wo-bell-panel {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
}

.wo-bell-item {
    display: block;
    width: 100%;
    padding: 0.6rem 0.65rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(55 65 81);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dark .wo-bell-item {
    color: rgb(209 213 219);
}

.wo-bell-item:hover {
    background: rgb(243 244 246);
}

.dark .wo-bell-item:hover {
    background: rgb(55 65 81);
}

.wo-bell-item.unread {
    background: rgb(240 253 250);
}

.dark .wo-bell-item.unread {
    background: rgb(19 78 74 / 0.35);
}

.wo-bell-message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.wo-bell-item.unread .wo-bell-message {
    font-weight: 700;
}

.wo-bell-when {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.6875rem;
    color: rgb(156 163 175);
}

.wo-bell-empty {
    margin: 0;
    padding: 1.75rem 0.75rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgb(156 163 175);
}

.wo-bell-all {
    display: block;
    margin-top: 0.25rem;
    padding: 0.6rem;
    border-top: 1px solid rgb(229 231 235);
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(15 118 110);
    text-decoration: none;
}

.dark .wo-bell-all {
    border-top-color: rgb(55 65 81);
    color: rgb(94 234 212);
}
