/* تحسينات التنبيهات - لن يؤثر على CSS الحالي */

/* تصميم الـ dropdown */
.notification-wrapper .dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-height: 70vh;
    overflow-y: auto;
}

/* عنصر التنبيه */
.notification-item {
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item:active {
    transform: scale(0.98);
}

/* النصوص */
.notification-item strong {
    font-size: 0.9rem;
}

.notification-item p.small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-item .text-muted {
    font-size: 0.75rem;
}

/* الأيقونات */
.notification-item .fa-info-circle { color: #0dcaf0; }
.notification-item .fa-check-circle { color: #198754; }
.notification-item .fa-exclamation-triangle { color: #ffc107; }
.notification-item .fa-times-circle { color: #dc3545; }

/* Badge للتنبيهات الجديدة */
.notification-wrapper .badge.bg-danger {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid white;
}

/* تأثير النبض للعداد */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-wrapper .badge.bg-danger:not(.d-none) {
    animation: pulse 2s infinite;
}

/* scrollbar */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Mobile */
@media (max-width: 768px) {
    .notification-wrapper .dropdown-menu {
        width: 90vw !important;
        max-width: 320px;
        right: 10px !important;
        left: auto !important;
    }
}