/* تنسيقات الإشعارات */
.toast-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast-notification {
    background-color: #ffffff;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    direction: rtl;
    border-right: 4px solid var(--primary-color);
    position: relative; /* حتى يظهر شريط التقدم بداخله */
}


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

.toast-notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast-notification .toast-icon {
    margin-left: 12px;
    color: var(--primary-color);
    font-size: 20px;
}

.toast-notification .toast-content {
    flex-grow: 1;
}

.toast-notification .toast-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 3px;
}

.toast-notification .toast-message {
    font-size: 14px;
    color: #666;
}

.toast-notification .toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background: var(--primary-color, #2ecc71);
    border-radius: 0 0 8px 8px;
    transition: width 4s linear;
    z-index: 2;
    opacity: 1;
}


.toast-notification.success .toast-progress {
    background: #2ecc71;
}
.toast-notification.error .toast-progress {
    background: #e74c3c;
}
.toast-notification.warning .toast-progress {
    background: #f39c12;
}
.toast-notification.info .toast-progress {
    background: #3498db;
}


/* أنواع الإشعارات */
.toast-notification.success {
    border-right-color: #2ecc71;
}

.toast-notification.success .toast-icon {
    color: #2ecc71;
}

.toast-notification.error {
    border-right-color: #e74c3c;
}

.toast-notification.error .toast-icon {
    color: #e74c3c;
}

.toast-notification.warning {
    border-right-color: #f39c12;
}

.toast-notification.warning .toast-icon {
    color: #f39c12;
}

.toast-notification.info {
    border-right-color: #3498db;
}

.toast-notification.info .toast-icon {
    color: #3498db;
}
