/* استایل‌های اضافی برای Bootstrap Notification Dropdown */

/* آیکون زنگ نوتیفیکیشن */
.notification-bell {
    position: relative;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

/* Badge تعداد نوتیفیکیشن‌ها */
.notification-badge {
    top: 8px !important;
    left: 8px !important;
    font-size: 0.6rem !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* منوی dropdown */
.notification-dropdown-menu {
    border: 1px solid #e7eaf3;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Header dropdown */
.notification-dropdown-menu .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #495057;
}

/* دکمه علامت‌گذاری همه */
.btn-mark-all-read {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* آیتم‌های نوتیفیکیشن */
.notification-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
    border-color: #e9ecef;
    transform: translateY(-1px);
}

.notification-item.bg-light {
    background-color: #e3f2fd !important;
    border-left: 3px solid #2196f3;
}

/* آیکون نوتیفیکیشن */
.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-item.bg-light .notification-icon {
    background-color: #bbdefb;
}

/* محتوای نوتیفیکیشن */
.notification-title {
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-message {
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* حالت خالی */
.notification-empty {
    padding: 2rem 1rem;
}

.notification-empty i {
    opacity: 0.5;
}

/* حالت خطا */
.notification-error {
    padding: 1.5rem 1rem;
}

/* Loading */
.notification-loading {
    padding: 1.5rem 1rem;
}

/* Footer dropdown */
.notification-dropdown-menu .dropdown-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.notification-dropdown-menu .dropdown-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notification-dropdown-menu .dropdown-footer a:hover {
    color: #0a58ca;
    background-color: transparent;
}

/* Responsive */
@media (max-width: 576px) {
    .notification-dropdown-menu {
        width: 300px !important;
        max-width: calc(100vw - 20px);
    }
    
    .notification-item {
        padding: 0.75rem !important;
    }
    
    .notification-title {
        font-size: 0.8rem;
    }
    
    .notification-message {
        font-size: 0.7rem;
    }
}

/* انیمیشن برای نمایش dropdown */
.notification-dropdown-menu {
    animation: fadeInDown 0.3s ease;
}

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

/* Scrollbar سفارشی برای dropdown */
.notification-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

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

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

.notification-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#notification-container{
    width: 100%;
    z-index: 999;
    position: absolute;
}