/**
 * Notification Dropdown Styles
 */

/* Notification badge */
#notificationBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 18px;
    border-radius: 9px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Notification dropdown */
.dropdown-menu-lg {
    min-width: 380px;
}

/* Notification list */
#notificationList {
    max-height: 400px;
    overflow-y: auto;
}

/* Individual notification item */
.notify-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Unread notification indicator */
.notify-item.unread {
    background-color: #f0f7ff;
}

.notify-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background-color: #0d6efd;
    border-radius: 0 2px 2px 0;
}

/* Read notification */
.notify-item.read {
    opacity: 0.8;
}

/* Notification icon container */
.notify-item .avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notify-item .avatar-title {
    font-size: 18px;
    margin: 0;
    background: transparent !important;
}

/* Notification content */
.notify-item h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.notify-item p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notify-item small {
    font-size: 11px;
    color: #999;
}

/* Mark all read button */
#markAllReadBtn {
    cursor: pointer;
    transition: all 0.2s ease;
}

#markAllReadBtn:hover {
    background-color: #e9ecef !important;
    transform: scale(1.05);
}

/* View all notifications link */
#viewAllNotifications {
    font-weight: 600;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

#viewAllNotifications:hover {
    background-color: #f8f9fa;
    color: #0d6efd !important;
}

/* Loading spinner */
.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Empty state */
.notify-item.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.notify-item.empty-state i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 10px;
}

/* Notification type colors */
.bg-primary.bg-opacity-10 {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-secondary.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .dropdown-menu-lg {
        min-width: 320px;
        max-width: 100vw;
    }
    
    #notificationList {
        max-height: 300px;
    }
    
    .notify-item {
        padding: 10px 15px;
    }
    
    .notify-item .avatar-sm {
        width: 35px;
        height: 35px;
    }
    
    .notify-item .avatar-title {
        font-size: 16px;
    }
}

/* Scrollbar styling */
#notificationList::-webkit-scrollbar {
    width: 6px;
}

#notificationList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#notificationList::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Notification dropdown header */
.dropdown-menu .px-3.py-2.border-bottom {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Animation for new notifications */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notify-item.new {
    animation: slideIn 0.3s ease;
}

/* Notification bell icon animation */
.topbar-link:hover [data-lucide="bell"] {
    animation: ring 0.5s ease;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

