﻿.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    padding: 0;
    transition: background .15s ease, transform .15s ease;
}

    .notification-bell:hover {
        background: rgba(255,255,255,.16);
        transform: translateY(-1px);
    }

.notification-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--bs-body-bg, #fff);
}

.notification-dropdown {
    width: 380px;
    max-width: calc(100vw - 1rem);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
}

.notification-dropdown-header {
    background: rgba(44,119,68,.06);
}

.notification-dropdown-body {
    max-height: min(440px, 70vh);
    overflow-y: auto;
}

.notification-item,
.notification-page-item {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: var(--bs-body-bg, #fff);
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 14px 16px 14px 18px;
    transition: background .15s ease, transform .15s ease;
}

    .notification-item:hover,
    .notification-page-item:hover {
        background: rgba(44,119,68,.05);
    }

    .notification-item.unread,
    .notification-page-item.unread {
        background: rgba(44,119,68,.08);
    }

        .notification-item.unread::before,
        .notification-page-item.unread::before {
            content: "";
            position: absolute;
            left: 7px;
            top: 16px;
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: var(--sheep-green, #2c7744);
        }

.notification-item-title {
    font-weight: 800;
    margin-bottom: 3px;
    color: var(--bs-body-color, #212529);
    line-height: 1.25;
}

.notification-item-body {
    font-size: .92rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.notification-item-time {
    font-size: .78rem;
    color: var(--bs-secondary-color, #6c757d);
}

.notification-page-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.notification-page-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(44,119,68,.1);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.notification-page-item-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
}

.notification-page-title {
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: .25rem;
}

.notification-page-body {
    color: var(--bs-secondary-color, #6c757d);
    font-size: .95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.notification-page-time {
    font-size: .8rem;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .notification-dropdown {
        position: fixed !important;
        inset: 70px .75rem auto .75rem !important;
        width: auto;
        max-width: none;
        transform: none !important;
    }

    .notification-page-item {
        padding: 16px 16px 16px 20px;
    }

    .notification-page-item-inner {
        grid-template-columns: 1fr;
    }

    .notification-page-time {
        white-space: normal;
    }
}

[data-theme="dark"] .notification-dropdown,
[data-theme="dark"] .notification-page-card {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

[data-theme="dark"] .notification-item,
[data-theme="dark"] .notification-page-item {
    border-color: rgba(255,255,255,.08);
}

    [data-theme="dark"] .notification-item.unread,
    [data-theme="dark"] .notification-page-item.unread {
        background: rgba(44,119,68,.18);
    }
