.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-icon.success {
    background-color: rgba(10, 102, 46, 0.1);
    color: var(--success);
}

.modal-icon.error {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.modal-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.modal-icon.info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.modal-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.modal-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: break-spaces;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.modal-actions button {
    min-width: 100px;
}

/* برای زمانی که فقط یک دکمه داریم */
.modal-actions.single {
    justify-content: center;
}

/* برای زمانی که دو دکمه داریم */
.modal-actions.double {
    justify-content: space-between;
}