/* نظام الإشعارات المحسن */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 5px solid;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* ألوان الإشعارات */
.notification.success {
    border-left-color: #22c55e;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}

.notification.error {
    border-left-color: #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}

.notification.warning {
    border-left-color: #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.notification.info {
    border-left-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

/* رأس الإشعار */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-title::before {
    font-family: "bootstrap-icons";
    font-size: 18px;
    font-weight: normal;
}

.notification.success .notification-title::before {
    content: "\F26B"; /* bi-check-circle-fill */
    color: #22c55e;
}

.notification.error .notification-title::before {
    content: "\F26A"; /* bi-x-circle-fill */
    color: #ef4444;
}

.notification.warning .notification-title::before {
    content: "\F26C"; /* bi-exclamation-triangle-fill */
    color: #f59e0b;
}

.notification.info .notification-title::before {
    content: "\F26D"; /* bi-info-circle-fill */
    color: #3b82f6;
}

/* رسالة الإشعار */
.notification-message {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: inherit;
    opacity: 0.9;
    font-weight: 400;
}

/* زر الإغلاق */
.notification-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* شريط التقدم */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    animation: progress 5s linear;
    border-radius: 0 0 12px 12px;
}

.notification.success .notification-progress {
    background: #22c55e;
}

.notification.error .notification-progress {
    background: #ef4444;
}

.notification.warning .notification-progress {
    background: #f59e0b;
}

.notification.info .notification-progress {
    background: #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

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

.notification.removing {
    animation: slideOut 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* RTL Support */
[dir="rtl"] .notification-container {
    right: auto;
    left: 20px;
}

[dir="rtl"] .notification {
    border-left: none;
    border-right: 5px solid;
}

[dir="rtl"] .notification.success {
    border-right-color: #22c55e;
}

[dir="rtl"] .notification.error {
    border-right-color: #ef4444;
}

[dir="rtl"] .notification.warning {
    border-right-color: #f59e0b;
}

[dir="rtl"] .notification.info {
    border-right-color: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    [dir="rtl"] .notification-container {
        right: 10px;
        left: 10px;
    }
    
    .notification {
        padding: 16px;
        border-radius: 10px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .notification {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .notification.success {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    }
    
    .notification.error {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    }
    
    .notification.warning {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    }
    
    .notification.info {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    }
} 