/* Custom Notifications System */

/* Toast Notifications - Type 2 (Informational) */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
    direction: rtl;
}

.toast {
    background-color: #F7F7F7;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    animation: toast-slide-in 0.3s ease forwards;
    border-right: 4px solid var(--primary-color);
    min-width: 250px;
    max-width: 100%;
}

.toast.toast-info {
    border-right-color: var(--primary-color);
    color: var(--primary-color);
}

.toast.toast-success {
    border-right-color: var(--secondary-color);
    color: var(--secondary-color);
}

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

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

.toast-content {
    flex: 1;
    font-size: 0.9rem;
}

.toast-icon {
    margin-left: 10px;
    font-size: 1.1rem;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 5px;
    padding: 0;
}

.toast-close:hover {
    color: #555;
}

.toast.toast-exit {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Confirmation Modal - Type 1 (Action Required) */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.confirm-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    direction: rtl;
    animation: modal-pop 0.3s forwards;
}

.confirm-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.confirm-icon.warning {
    color: #f39c12;
}

.confirm-icon.error {
    color: #e74c3c;
}

.confirm-icon.info {
    color: var(--primary-color);
}

.confirm-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.confirm-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    transition: all 0.2s ease;
    border: none;
}

.confirm-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.confirm-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.confirm-btn-cancel {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #ddd;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes modal-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
} 