/* Notification Bell */
.notification-bell-container {
    position: relative;
}

.notification-bell-container > a.notification-bell-toggle {
    cursor: pointer;
    position: relative;
    display: block;
    padding: 14px 15px 14px 15px;
    color: #777;
    line-height: 22px;
}

.notification-bell-container > a.notification-bell-toggle:hover,
.notification-bell-container > a.notification-bell-toggle:focus {
    color: #333;
    background-color: #e7e7e7;
    text-decoration: none;
}

.notification-bell-toggle .glyphicon-bell {
    font-size: 17px;
    vertical-align: middle;
}

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

/* Notification Sidebar */
.notification-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-sidebar.open {
    right: 0;
}

.notification-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
}

.notification-sidebar-header h4 {
    margin: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.notification-sidebar-header a {
    margin-left: 10px;
    font-size: 13px;
}

.notification-sidebar-header #close-notification-sidebar {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    line-height: 1;
}

.notification-sidebar-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-item.unread {
    background-color: #f0f7ff;
    border-left: 3px solid #337ab7;
}

.notification-item .notification-subject {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: #333;
}

.notification-item .notification-body {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.notification-item .notification-body a {
    color: #337ab7;
}

.notification-item .notification-time {
    font-size: 11px;
    color: #999;
}

.notification-item .notification-mark-read {
    float: right;
    font-size: 11px;
    color: #337ab7;
    cursor: pointer;
}

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

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Overlay */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}

.notification-overlay.open {
    display: block;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .notification-sidebar {
        width: 100%;
        right: -100%;
    }
}
