/* Notification System Styles */

/* Badge Animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-badge-pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Dropdown Animation */
@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#notificationDropdown:not(.hidden) {
    animation: dropdown-in 0.2s ease-out;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar for notification list */
#notificationList::-webkit-scrollbar {
    width: 6px;
}

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

#notificationList::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.3);
    border-radius: 3px;
}

#notificationList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 0.5);
}

/* Dark mode scrollbar */
.dark #notificationList::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.3);
}

.dark #notificationList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.5);
}

/* Notification Popup (for browser notification fallback) */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

.dark .notification-popup {
    background: rgb(30, 41, 59);
    border: 1px solid rgb(51, 65, 85);
}

@keyframes slideIn {
    from {
        transform: translateX(340px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(340px);
        opacity: 0;
    }
}

.notification-popup .notification-header {
    padding: 16px;
    background: linear-gradient(to right, rgb(79, 70, 229), rgb(124, 58, 237));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-popup .notification-title {
    font-weight: 600;
    font-size: 14px;
}

.notification-popup .notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.notification-popup .notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-popup .notification-body {
    padding: 16px;
    color: rgb(71, 85, 105);
    font-size: 14px;
    line-height: 1.5;
}

.dark .notification-popup .notification-body {
    color: rgb(203, 213, 225);
}

.notification-popup .notification-time {
    padding: 0 16px 16px;
    color: rgb(148, 163, 184);
    font-size: 12px;
}

/* Sound toggle indicator */
.sound-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgb(148, 163, 184);
}

.sound-indicator.active {
    color: rgb(34, 197, 94);
}

.sound-indicator.muted {
    color: rgb(239, 68, 68);
}
