/* Notification Bell Wave Animation Container */
.notification-bell.has-unread {
    position: relative;
    overflow: visible;
}

/* Main bell pulse animation */
.notification-bell.has-unread .bi.bi-bell {
    animation: bellPulse 2s infinite;
    color: #dc3545; /* Notification red color */
    position: relative;
    z-index: 2;
}

/* Wave emanation effect using pseudo-elements */
.notification-bell.has-unread::before,
.notification-bell.has-unread::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #dc3545;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: waveEmanation 2s infinite;
    pointer-events: none;
    z-index: 1;
}

/* Second wave with delay for cascading effect */
.notification-bell.has-unread::after {
    animation-delay: 1s;
    border-color: rgba(220, 53, 69, 0.6);
}

/* Bell pulse keyframes */
@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Wave emanation keyframes */
@keyframes waveEmanation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 350px;
    max-width: 400px;
}

.notification-item {
    border-bottom: 1px solid #e9ecef;
    padding: 12px;
    transition: background-color 0.2s;
}

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

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

.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}

.notification-priority {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.notification-priority.high {
    background-color: #dc3545;
    color: white;
}

.notification-priority.medium {
    background-color: #ffc107;
    color: #212529;
}

.notification-priority.low {
    background-color: #28a745;
    color: white;
}

.notification-meta {
    font-size: 0.85em;
    color: #6c757d;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-preview {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 4px;
}

/* Mobile notification adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        min-width: 300px;
        max-width: 350px;
    }
    
    .notification-item {
        padding: 10px;
    }
}