/* Notification bell dropdown — plain CSS (Filament does not compile custom Tailwind in widgets) */

.wg-notify {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: middle;
}

.wg-notify__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.wg-notify__btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.wg-notify__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.wg-notify__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    z-index: 60;
    width: 20rem;
    max-width: calc(100vw - 1.5rem);
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.wg-notify__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.625rem 0.75rem;
}

.wg-notify__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.wg-notify__mark-all {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.wg-notify__mark-all:hover {
    text-decoration: underline;
}

.wg-notify__list {
    max-height: 16rem;
    overflow-y: auto;
}

.wg-notify__empty {
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.wg-notify__item {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    border: none;
    border-bottom: 1px solid #f9fafb;
    padding: 0.75rem;
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s;
}

.wg-notify__item:hover {
    background: #f9fafb;
}

.wg-notify__item--unread {
    background: #f5f3ff;
}

.wg-notify__item--unread:hover {
    background: #ede9fe;
}

.wg-notify__icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.wg-notify__body {
    min-width: 0;
    flex: 1;
}

.wg-notify__item-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wg-notify__item-text {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wg-notify__item-time {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.wg-notify__dot {
    margin-top: 0.25rem;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #7c3aed;
}

.wg-notify__footer {
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    padding: 0.625rem;
    text-align: center;
}

.wg-notify__footer a {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
}

.wg-notify__footer a:hover {
    color: #6d28d9;
}

.wg-notify__loading {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

/* Dark mode (Filament dark panel) */
.dark .wg-notify__btn {
    color: #9ca3af;
}

.dark .wg-notify__btn:hover {
    background: rgb(255 255 255 / 0.05);
    color: #e5e7eb;
}

.dark .wg-notify__dropdown {
    border-color: #374151;
    background: #111827;
}

.dark .wg-notify__header {
    border-color: #1f2937;
}

.dark .wg-notify__title {
    color: #e5e7eb;
}

.dark .wg-notify__item {
    border-color: #1f2937;
    background: #111827;
    color: #e5e7eb;
}

.dark .wg-notify__item:hover {
    background: rgb(255 255 255 / 0.05);
}

.dark .wg-notify__item--unread {
    background: rgb(124 58 237 / 0.15);
}

.dark .wg-notify__item-title {
    color: #f3f4f6;
}

.dark .wg-notify__item-text {
    color: #9ca3af;
}

.dark .wg-notify__footer {
    border-color: #1f2937;
    background: rgb(31 41 55 / 0.5);
}
