/* ================================================
   نظام الإشعارات - Toast Notifications فقط
   ملاحظة: أنماط زر الإشعارات في TopBar موجودة الآن داخل NotificationBell.razor
   ================================================ */

/* إشعارات Toast المنبثقة */
.notification-toast {
    position: fixed;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* مواقع Toast */
.notification-toast.top-left {
    top: 20px;
    left: 20px;
}

.notification-toast.top-right {
    top: 20px;
    right: 20px;
    transform: translateX(100%);
}

.notification-toast.top-right.show {
    transform: translateX(0);
}

.notification-toast.bottom-left {
    bottom: 20px;
    left: 20px;
}

.notification-toast.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: translateX(100%);
}

.notification-toast.bottom-right.show {
    transform: translateX(0);
}

/* حدود ملونة حسب الأولوية */
.notification-toast.notification-low {
    border-right: 5px solid #17a2b8;
}

.notification-toast.notification-normal {
    border-right: 5px solid #28a745;
}

.notification-toast.notification-high {
    border-right: 5px solid #ffc107;
}

.notification-toast.notification-critical {
    border-right: 5px solid #dc3545;
}

.notification-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #dee2e6;
}

.notification-icon {
    font-size: 20px;
}

.notification-type {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    flex: 1;
}

.notification-priority {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #007bff;
    color: white;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #212529;
}

.notification-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
}

.notification-footer {
    padding: 8px 16px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: left;
}

.notification-footer small {
    color: #6c757d;
    font-size: 12px;
}

/* تأثير تحميل الإشعارات */
.notification-loading {
    padding: 20px;
    text-align: center;
}

.notification-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 576px) {
    .notification-toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
    }

    .notification-toast.top-left,
    .notification-toast.top-right {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: translateY(-100%);
    }

    .notification-toast.top-left.show,
    .notification-toast.top-right.show {
        transform: translateY(0);
    }
}

/* تحسينات لتوافق RTL */
[dir="rtl"] .notification-toast {
    transform: translateX(100%);
    border-right: none;
    border-left: 5px solid;
}

[dir="rtl"] .notification-toast.show {
    transform: translateX(0);
}

/* تأثيرات إضافية */
.notification-toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* شريط التقدم للإشعار (اختياري) */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 123, 255, 0.3);
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ===============================================
   DARK MODE - دعم الوضع الليلي للـ Toast Notifications
   ملاحظة: أنماط Dark Mode لزر الإشعارات في TopBar موجودة داخل NotificationBell.razor
   =============================================== */

/* إشعارات Toast - Dark Mode */
.dark-mode .notification-toast,
[data-theme="blue"].dark-mode .notification-toast,
[data-theme="green"].dark-mode .notification-toast,
[data-theme="purple"].dark-mode .notification-toast,
[data-theme="orange"].dark-mode .notification-toast {
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark-mode .notification-header,
[data-theme="blue"].dark-mode .notification-header,
[data-theme="green"].dark-mode .notification-header,
[data-theme="purple"].dark-mode .notification-header,
[data-theme="orange"].dark-mode .notification-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-bottom-color: #475569;
}

.dark-mode .notification-type,
[data-theme="blue"].dark-mode .notification-type,
[data-theme="green"].dark-mode .notification-type,
[data-theme="purple"].dark-mode .notification-type,
[data-theme="orange"].dark-mode .notification-type {
    color: #f8fafc;
}

.dark-mode .notification-body,
[data-theme="blue"].dark-mode .notification-body,
[data-theme="green"].dark-mode .notification-body,
[data-theme="purple"].dark-mode .notification-body,
[data-theme="orange"].dark-mode .notification-body {
    color: #e2e8f0;
}

.dark-mode .notification-footer,
[data-theme="blue"].dark-mode .notification-footer,
[data-theme="green"].dark-mode .notification-footer,
[data-theme="purple"].dark-mode .notification-footer,
[data-theme="orange"].dark-mode .notification-footer {
    background: #0f172a;
    border-top-color: #475569;
}

.dark-mode .notification-footer small,
[data-theme="blue"].dark-mode .notification-footer small,
[data-theme="green"].dark-mode .notification-footer small,
[data-theme="purple"].dark-mode .notification-footer small,
[data-theme="orange"].dark-mode .notification-footer small {
    color: #94a3b8;
}

.dark-mode .notification-close,
[data-theme="blue"].dark-mode .notification-close,
[data-theme="green"].dark-mode .notification-close,
[data-theme="purple"].dark-mode .notification-close,
[data-theme="orange"].dark-mode .notification-close {
    color: #94a3b8;
}

.dark-mode .notification-close:hover,
[data-theme="blue"].dark-mode .notification-close:hover,
[data-theme="green"].dark-mode .notification-close:hover,
[data-theme="purple"].dark-mode .notification-close:hover,
[data-theme="orange"].dark-mode .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

/* شريط التمرير - Dark Mode */
.dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb,
[data-theme="blue"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb,
[data-theme="green"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb,
[data-theme="purple"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb,
[data-theme="orange"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb:hover,
[data-theme="blue"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb:hover,
[data-theme="green"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb:hover,
[data-theme="purple"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb:hover,
[data-theme="orange"].dark-mode .notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}