/* Styles for the Notification Bell */
.hbn-notification-bell {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    /* Adjust as needed */
}

.hbn-notification-bell p {
    margin-top: 0;
}

.hbn-notification-bell>p {
    display: none;
}

.hbn-bell-icon {
    position: relative;
    padding: 0.75em;
    font-size: 1.1em;
    color: #333;
    cursor: pointer;
}

.hbn-unread-count {
    position: absolute;
    top: -10px;
    right: 0px;
    background-color: rgb(10, 10, 10);
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 1em;
    padding: 0.23em 0.45em;
    line-height: 1;
    min-width: 10px;
    text-align: center;
    cursor: pointer;
}

/* Styles for the Notification Dropdown */
.hbn-notification-dropdown {
    position: absolute;
    top: 3em;
    right: -1em;
    border-radius: 1.5em;
    background-color: var(--background-light);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    box-shadow: rgb(189, 184, 175) 4px 4px 0px 0px;
}

.hbn-notification-dropdown.no-access {
    gap: 1em;
    padding: 1em;
    border: 4px solid var(--background-middle);
    background-image: repeating-linear-gradient(45deg,
            var(--background-middle),
            var(--background-middle) 10px,
            var(--background-light) 10px,
            var(--background-light) 20px);
}

.hbn-notification-dropdown.no-access p {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5em 1em;
    border-radius: 0.75em;
    border: 4px solid var(--background-light);
    margin-bottom: 0;
}

.hbn-notification-dropdown.no-access .button {
    margin-top: 0.5em;
    display: block;
}

.hbn-notification-dropdown a.hbn-view-detail-button {
    text-decoration: none;
}

.hbn-notification-dropdown-content h4 {
    margin: 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.hbn-notification-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hbn-dropdown-item {
    background-color: white;
    padding: 0.75em 1.5em;
    border-radius: 1em;
}

.hbn-dropdown-item:last-child {
    border-bottom: none;
}

.hbn-dropdown-item h4 {
    margin: 0 10px 5px 0;
    font-size: 1em;
    font-weight: bold;
}

.hbn-dropdown-item p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #555;
}

.hbn-dropdown-link {
    font-size: 0.8em;
    text-decoration: none;
}

.hbn-date {
    font-size: 0.7em;
    color: #888;
    margin-top: 5px;
}

.hbn-loading {
    padding: 1em;
    text-align: center;
    font-style: italic;
    color: #888;
}

.hbn-dropdown-footer {
    padding: 0.5em;
    text-align: center;
}

/* Styles for the My Account Notifications Page */
.huertobio-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.huertobio-notification-item {
    display: flex;
    align-items: center;
    gap: 1em;
    border-radius: 2em;
    margin-bottom: 1em;
    padding: 1.25em 2em;
    background-color: #fff;
    box-shadow: 0 0px 0px rgba(255, 255, 255, 0);
}

.huertobio-notification-item,
.hbn-dropdown-item {
    transition: box-shadow 0.3s ease, margin-left 0.3s ease, margin-top 0.3s ease,
        margin-bottom 0.3s ease;
}

.huertobio-notification-item h3 {
    margin: 0;
    font-size: 1.2em;
}

.huertobio-notification-item .notification-link {
    display: inline-block;
    margin-bottom: 10px;
}

.huertobio-notification-item .notification-date {
    font-size: 0.9em;
    color: #888;
}

.huertobio-notification-item .notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    gap: 1em;
}

.huertobio-notification-item .notification-actions .hbn-button {
    border-radius: 0.3em;
    padding: 0.1em 0.5em;
    cursor: pointer;
}

.notification-actions .hbn-button svg {
    margin-right: 0.5em;
}

/* Status styles for list items */
.huertobio-notification-item.moon.status-unread:hover,
.hbn-dropdown-item.moon.status-unread:hover {
    margin-left: -5px;
    margin-top: -4px;
    margin-bottom: calc(1em + 4px);
    box-shadow: 4px 5px 0px var(--moon);
}

.huertobio-notification-item.sun.status-unread:hover,
.hbn-dropdown-item.sun.status-unread:hover {
    margin-left: -5px;
    margin-top: -4px;
    margin-bottom: calc(1em + 4px);
    box-shadow: 4px 5px 0px var(--sun);
}

.hbn-dropdown-item.sun.status-unread:hover,
.hbn-dropdown-item.moon.status-unread:hover {
    margin-bottom: 4px;
}

.huertobio-notification-item.status-read {
    opacity: 0.5;
}

.huertobio-notification-item:hover {
    opacity: 1;
}

.huertobio-notification-item.status-archived {
    display: none;
}

.huertobio-notification-detail {
    background-color: white;
    padding: 2em;
    border-radius: 1.5em;
}

.huertobio-notification-detail .notification-title {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.huertobio-notification-detail .notification-content {
    margin-bottom: 2em;
}

.huertobio-notification-detail .notification-date {
    margin-bottom: 1em;
}