/* Enhanced Notification Bell Styling */
.notification-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, var(--warm-primary), #ff4757);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    line-height: 18px;
    padding: 0;
}

/* Urgent notification pulsing animation */
.notification-bell-badge.pulse-urgent {
    animation: pulseUrgent 1s infinite;
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseUrgent {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 8px rgba(255, 71, 87, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
}

/* Enhanced notification dropdown styling */
.notification-dropdown {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.notification-item {
    border: none !important;
    padding: 12px 16px;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(2px);
}

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

.notification-item h6 {
    font-size: 0.85rem;
    line-height: 1.2;
}

.notification-item p {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Role-based notification styling */
.notification-item[data-type="urgent"] {
    border-left: 4px solid #ff4757;
}

.notification-item[data-type="admin"] {
    border-left: 4px solid #2f3542;
}

.notification-item[data-type="teamleader"] {
    border-left: 4px solid #3742fa;
}

.notification-item[data-type="assignment"] {
    border-left: 4px solid #2ed573;
}

/* Priority badges */
.badge.bg-danger {
    background: linear-gradient(135deg, #ff4757, #ff3742) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffa502, #ff9500) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #3742fa, #2f3dd6) !important;
}

.notification-item .badge {
    font-size: 0.7rem;
}

/* Toast notifications for real-time updates */
#toast-container {
    z-index: 1060;
}

.toast {
    min-width: 300px;
    margin-bottom: 10px;
}

/* Notification filter styles */
.notification-filter {
    color: #6c757d;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.notification-filter.active {
    background-color: var(--warm-primary);
    color: white;
}

/* Enhanced dropdown header */
.dropdown-header {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    padding: 12px 16px 8px;
}

/* Notification type icons */
.notification-item .bi {
    font-size: 0.9rem;
}

/* Animation for notification bell */
@keyframes bellShake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.notification-bell-animate {
    animation: bellShake 0.8s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 100vw !important;
        max-width: 350px;
        left: -250px !important;
    }
    
    .notification-bell-badge {
        top: -6px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* Loading animation */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.notification-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top: 2px solid var(--warm-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
