/**
 * أنماط الإشعارات وحالة الاتصال
 */



/* الإشعارات */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #2196F3;
    font-family: 'DroidKufi', Arial, sans-serif;
}

.notification.success {
    border-left-color: #4CAF50;
}

.notification.warning {
    border-left-color: #ff9800;
}

.notification.error {
    border-left-color: #f44336;
}

.notification.info {
    border-left-color: #2196F3;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.notification-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.notification-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-header button:hover {
    background-color: #f5f5f5;
    color: #666;
}

.notification-body {
    padding: 12px 16px;
}

.notification-body p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* رسوم متحركة */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* مؤشر التحميل */
.loading-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}





/* تحسينات للموبايل */
@media (max-width: 768px) {
    .notification {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    

}

/* أنماط للوضع المظلم */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        color: #e2e8f0;
        border-left-color: #4299e1;
    }
    
    .notification-header {
        border-bottom-color: #4a5568;
    }
    
    .notification-header h4 {
        color: #e2e8f0;
    }
    
    .notification-body p {
        color: #a0aec0;
    }
    
    .notification-header button {
        color: #a0aec0;
    }
    
    .notification-header button:hover {
        background-color: #4a5568;
        color: #e2e8f0;
    }
} 