/* Message and Notification Bell Styles */
.message-bell, .notification-bell {
    background: none;
    border: none;
    color: #2c5aa0;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.message-bell:hover, .notification-bell:hover {
    background: rgba(44, 90, 160, 0.1);
    transform: scale(1.1);
}

/* Badge Styles */
#headerMessageCount, #notificationCount {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#headerMessageCount {
    background: #28a745;
}

/* Notification Dropdown */
#headerNotificationDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
}

/* Notification Header */
#headerNotificationDropdown > div:first-child {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Mark All Read Button */
#headerNotificationDropdown button {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#headerNotificationDropdown button:hover {
    background: #1e3d6f;
}

/* Notification List */
#headerNotificationList {
    max-height: 300px;
    overflow-y: auto;
}

/* Notification Items */
.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 3px solid #2c5aa0;
}

.notification-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 0.9rem;
}

.notification-item p {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.notification-item small {
    color: #999;
    font-size: 0.75rem;
}

/* Empty State */
.notification-empty {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #headerNotificationDropdown {
        right: -100px;
        width: 280px;
    }
    
    .message-bell, .notification-bell {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    #headerMessageCount, #notificationCount {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}