/**
 * Content Notification Styles
 */

/* Menu item override to ensure dropdown visibility */

li.menu-item.menu-item-notification {
    overflow: visible;
}

.menu-item-notification {
    position: relative;
}

/* Dropdown visibility */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99999; /* Very high z-index to ensure it's above everything */
    display: none;
    margin-top: 5px;
    opacity: 1;
    visibility: visible;
    height: auto;
    min-width: unset;
    transform: none;
    transition: none;
}

.notification-dropdown.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Basic notification container */
.content-notification-container {
    position: relative;
    display: inline-block;
}

/* Bell icon styling */
.content-notification-bell {
    position: relative;
    display: inline-block;
    color: inherit;
    font-size: 1.2rem;
    padding: 0.5rem;
    text-decoration: none;
}


.content-notification-bell .fa-bell {
    font-size: 1.4rem;
}

/* Notification count badge */
.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e03e2d;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 1.2rem;
    height: 1.2rem;
    line-height: 1.2rem;
    text-align: center;
    border-radius: 50%;
    padding: 0 0.2rem;
}

/* Dropdown content styles */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.notification-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.notification-header a {
    font-size: 0.8rem;
    color: #777;
    text-decoration: none;
}

.notification-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* Empty state */
.no-notifications {
    margin: 0;
    color: #777;
    text-align: center;
    font-style: italic;
}

/* Notification items */
.notification-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Theme override for menu notification items */
.menu-item-notification ul.notification-items {
    opacity: 1;
    height: 100%;
    box-shadow: none;
    position: relative;
    display: block;
    visibility: visible;
    left: auto;
    top: auto;
    width: 100%;
    min-width: unset;
    transform: none;
}

.notification-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
    padding-bottom: 8px;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    height: auto;
}

.menu-item-notification .notification-item {
    float: none;
    width: 100%;
    background: transparent;
}

.notification-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.notification-item a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 5px;
    border-radius: 3px;
}

/* Notification item content */
.notification-category {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.notification-title {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-date {
    display: block;
    font-size: 0.75rem;
    color: #777;
}

/* View all link */
.view-all-link {
    display: block;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 10px;
}

#mark-as-read {
    color: #333;
}

.view-all-link:hover {
    background: #eee;
}

/* Mobile styles */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 280px;
        max-width: 90vw;
    }
}