.navbar__notification {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--global-palette3);
}

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

.notification-bell:hover {
    color: var(--global-palette2);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 40%;
    line-height: 1;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: -4px;
    background-color: var(--global-palette9);
    border: 1px solid var(--outline-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
    width: 300px;
    max-height: 400px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
}

.navbar__notification.open .notification-dropdown {
    display: flex;
}

.notification-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    background-color: var(--global-palette8);
    border-bottom: 1px solid var(--outline-color);
    flex: 0 0 auto;
}

.notification-dropdown__header .mark-all-read {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--global-palette2);
    background: none;
    border: none;
    cursor: pointer;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.notification-list .notification-item:not(:last-child) {
    border-bottom: 1px solid var(--outline-color);
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 15px;
    background-color: var(--global-palette9);
    text-decoration: none;
    margin: 0;
}

.notification-text {
    color: var(--global-palette3) !important;
}

.notification-item.unread {
    background-color: var(--global-palette8);
}

.notification-item:hover {
    background-color: var(--global-palette7);
}

.notification-checkbox {
    flex-shrink: 0;
}

.notification-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.notification-text {
    font-size: 0.85rem;
    text-wrap: wrap;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--global-palette5);
}

.notification-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.notification-dropdown__footer {
    display: flex;
    justify-content: end;
    padding: 10px 15px;
    background: var(--global-palette8);
    border-top: 1px solid var(--outline-color);
    flex: 0 0 auto;
}

.view-all-notifications {
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--global-palette2) !important;
}

.view-all-notifications:hover {
    text-decoration: underline;
}
