/* Notification specific scrollbar */
#notificationList::-webkit-scrollbar {
    width: 4px;
}

#notificationList::-webkit-scrollbar-track {
    background: transparent;
}

#notificationList::-webkit-scrollbar-thumb {
    background: #363150;
    border-radius: 4px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background: #403a5e;
}

/* Hide scrollbar for Firefox */
#notificationList {
    scrollbar-width: thin;
    scrollbar-color: #363150 transparent;
}

/* Notification dropdown animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#notificationDropdown:not(.hidden) {
    animation: slideDown 0.3s ease-out forwards;
}

/* Notification badge animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

#notificationCount:not(.hidden) {
    animation: pulse 2s infinite;
}

/* Notification specific styles */
#notificationDropdown {
    width: 380px;
    max-height: 480px;
    background: rgba(30, 27, 46, 0.95);
    border: 1px solid rgba(42, 38, 64, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: absolute;
    right: 0;
    margin-top: 0.75rem;
}

#notificationList {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(42, 38, 64, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(30, 27, 46, 0.95);
}

.notification-item:hover {
    background: rgba(42, 38, 64, 0.5);
}

.notification-header {
    padding: 0.75rem 1rem;
    background: rgba(42, 38, 64, 0.8);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 38, 64, 0.5);
}

#notificationList .timestamp {
    font-size: 0.75rem;
    color: rgba(156, 163, 175, 0.8);
}

.notification-item .unread-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

/* Notification button styles */
#notificationButton {
    background: #1E1B2E;
    color: rgb(229, 231, 235);
    border: 1px solid #2A2640;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#notificationButton:hover {
    background: #2A2640;
}

#notificationCount {
    background: linear-gradient(to right, #ef4444, #dc2626);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
    min-width: 20px;
    height: 20px;
    transform: translate(25%, -25%);
    font-weight: 600;
    padding: 0 4px;
}

#markAllRead {
    background: #1E1B2E;
    color: rgb(229, 231, 235);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

#markAllRead:hover {
    background: #363150;
}

/* Line clamp for notification messages */
.notification-item .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
