/* Notification Styles */

.notification-item {
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--bs-body-bg) !important;
}

.notification-item.bg-body-highlight {
    border-left: 3px solid var(--bs-primary);
}

.notification-dropdown-menu {
    width: 380px;
    max-width: 90vw;
}

@media (max-width: 576px) {
    .notification-dropdown-menu {
        width: 320px;
    }
}

/* Notification badge styling - Phoenix style */
#notificationBadge {
    min-width: 18px;
    height: 18px;
    font-size: 10px !important;
    line-height: 1.6;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bs-body-bg);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    /* Better positioning relative to bell icon */
    transform: translate(-50%, -50%) translateX(-2px) translateY(2px);
}

#notificationBadge .badge-label {
    font-weight: 600;
}

/* Reduce padding on notification dropdown to bring badge closer */
#notificationDropdown {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Subtle hover effect for notification bell */
#notificationDropdown:hover #notificationBadge {
    transform: scale(1.05);
}

/* Animation for new notifications */
@keyframes notificationPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#notificationBadge.new-notification {
    animation: notificationPulse 0.6s ease-in-out;
}

/* Unread notification indicator */
.notification-unread-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--bs-primary);
    border-radius: 50%;
}

/* Loading spinner for notifications */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Empty state styling */
.notification-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-body-color);
}

.notification-empty-state .fa-bell {
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Notification type badges */
.notification-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-item {
        padding: 1rem !important;
    }
    
    .notification-item .avatar {
        width: 2rem;
        height: 2rem;
    }
    
    .notification-item .fs-9 {
        font-size: 0.8rem !important;
    }
    
    .notification-item .fs-10 {
        font-size: 0.75rem !important;
    }
}