/* ===== NOTIFICATIONS STYLES ===== */
/* أنماط الإشعارات للقالب الجديد */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
}

.notification-message {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

/* أنواع الإشعارات */
.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-message {
    color: #155724;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-message {
    color: #721c24;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning .notification-message {
    color: #856404;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-message {
    color: #0c5460;
}

/* تأثيرات إضافية */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .notification-content {
        padding: 12px 16px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Animation for multiple notifications */
.notification + .notification {
    top: calc(20px + 80px);
}

.notification + .notification + .notification {
    top: calc(20px + 160px);
}

@media (max-width: 768px) {
    .notification + .notification {
        top: calc(10px + 70px);
    }
    
    .notification + .notification + .notification {
        top: calc(10px + 140px);
    }
}

/* Stack animation */
@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.slide-in {
    animation: slideIn 0.3s ease forwards;
}

.notification.slide-out {
    animation: slideOut 0.3s ease forwards;
}

/* Mobile slide animations */
@media (max-width: 768px) {
    @keyframes slideInMobile {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutMobile {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }
    
    .notification.slide-in {
        animation: slideInMobile 0.3s ease forwards;
    }
    
    .notification.slide-out {
        animation: slideOutMobile 0.3s ease forwards;
    }
}









