/**
 * أنماط نظام الإشعارات
 */

/* تأثير النبض للـ Badge */
@keyframes pulse {
    0% {
        transform: scale(1) translate(50%, -50%);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.1) translate(50%, -50%);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1) translate(50%, -50%);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

#notification-badge.pulse {
    animation: pulse 1s ease-in-out;
}

/* تحسين مظهر Badge */
#notification-badge {
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* تحسين مظهر القائمة المنسدلة */
#notification-dropdown {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

/* تحسين مظهر عناصر الإشعارات */
.notification-item {
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    border: 1px solid #f1f1f4;
    margin-bottom: 10px;
}

.notification-item:hover {
    background: #f8f9fa;
    border-color: #e4e6ef;
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notification-item:last-child {
    margin-bottom: 0;
}

/* رابط الإشعار */
.notification-link {
    text-decoration: none;
    color: inherit;
}

.notification-link:hover {
    text-decoration: none;
}

/* زر تحديد كمقروء */
.mark-read-btn {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.mark-read-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Scrollbar للقائمة */
#notification-list::-webkit-scrollbar {
    width: 6px;
}

#notification-list::-webkit-scrollbar-track {
    background: #f1f1f4;
    border-radius: 10px;
}

#notification-list::-webkit-scrollbar-thumb {
    background: #b5b5c3;
    border-radius: 10px;
}

#notification-list::-webkit-scrollbar-thumb:hover {
    background: #7e8299;
}

/* تحسين رموز الأولوية */
.symbol-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* تأثير عند فتح القائمة */
#notification-dropdown.show {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    #notification-dropdown {
        width: 300px !important;
    }

    .notification-item {
        padding: 10px;
    }
}

/* حالة فارغة */
.notification-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #a1a5b7;
}

.notification-empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}
