/* Notification Tray */
#notification_tray {
    position: relative;
    text-align: right;
}

#notification_tray .dropdown-toggle {
    position: relative;
    color: #fff;
    text-decoration: none;
}

#notification_tray .notification-bell-icon {
    font-size: 16px;
    vertical-align: middle;
}

#notification_tray .dropdown-toggle:hover,
#notification_tray .dropdown-toggle:focus,
#notification_tray.open .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    outline: 0;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1;
    padding: 3px 5px;
    min-width: 16px;
    text-align: center;
    font-weight: bold;
}

#notification_tray .notification-dropdown {
    min-width: 340px;
    max-width: 380px;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    -webkit-box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    -webkit-filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

#notification_tray .notification-dropdown .notification-dropdown-header {
    text-transform: none;
    text-align: left;
    letter-spacing: normal;
    color: #2f363d;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eee;
}

#notification_tray .notification-dropdown .notification-dropdown-header-icon {
    margin-right: 8px;
    color: #428bca;
    font-size: 14px;
}

#desktop-navbar #notification_tray a.notification-mark-all {
    float: right;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 11px;
    font-weight: normal;
    margin-right: 12px;
    color: #428bca;
    text-decoration: none;
    background-color: transparent;
}

#notification_tray .notification-mark-all:hover,
#notification_tray .notification-mark-all:focus {
    background-color: transparent !important;
    color: #2a6496;
    text-decoration: underline;
}

.notification-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.notification-list li {
    height: auto;
    overflow: visible;
    background: #fff;
    font: inherit;
    padding: 0;
}

.notification-list li:hover {
    background: #fff;
}

.notification-list li.notification-empty {
    text-align: center;
    color: #999;
    padding: 20px 10px;
    cursor: default;
}

.notification-list li.notification-empty:hover {
    background-color: #fff;
}

.notification-list li.notification-subscribe-cta,
.notification-list li.notification-empty-zero {
    padding: 28px 24px 24px;
    border-top: 0;
}

.notification-list .notification-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.notification-list .notification-cta-icon-muted {
    background: #f0f0f0;
    color: #aaa;
    box-shadow: none;
}

.notification-list .notification-cta-title {
    font-size: 15px;
    font-weight: 600;
    color: #2f363d;
    margin-bottom: 6px;
}

.notification-list .notification-cta-body {
    font-size: 12px;
    color: #888;
    line-height: 18px;
    margin-bottom: 16px;
    padding: 0 8px;
}

.notification-list li.notification-empty-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-list li.notification-empty-clickable:hover {
    background-color: #fafbfc;
}

.notification-list li.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    border-top: 1px solid #eee;
    cursor: pointer;
}

.notification-list li.notification-item.unread {
    background-color: #f4f9ff;
}

.notification-list li.notification-item.unread .notification-title {
    font-weight: 600;
    color: #2f363d;
}

.notification-list li.notification-item .notification-icon-wrap {
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 0;
}

.notification-list li.notification-item .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #eee;
    display: block;
}

.notification-list li.notification-item .notification-content {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 16px;
    color: #555;
}

.notification-list li.notification-item .notification-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2f363d;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-list li.notification-item .notification-body {
    display: -webkit-box;
    margin: 0 0 4px 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-list li.notification-item .notification-content .date {
    display: block;
    clear: both;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    font-size: 11px;
    color: #bbb;
}

.notification-list li.notification-item .notification-delete {
    color: #bbb;
    margin-left: 8px;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.notification-list li.notification-item .notification-delete:hover {
    color: #e74c3c;
}

.notification-list li.notification-item .notification-unread-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: #428bca;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: content-box;
}

.notification-list li.notification-item.read .notification-unread-dot {
    display: none;
}

.notification-list li.notification-item.unread .notification-unread-dot {
    border-color: #f4f9ff;
}
